gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clean up of backend code


From: Adam Fedor
Subject: Re: Clean up of backend code
Date: Fri, 01 Mar 2002 22:13:04 -0700
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.7) Gecko/20020120

Fred Kiefer wrote:

Hi Adam,

before starting the MS Windows backend I would like to clean up the code
of your current backend a bit, to make it easier to extract the common
code from the xgps backend. Your last changes here where a big help in
that regard. I would like to go even further and remove the drawing
engine file. In the xgps backend the remaing methods here could be
merged into the XGContext.m file (The NSBeep method should go in to
SharedX/XGContextWindow.m and the frame link functions should be
deleted)
If the implementation of NSCopyBits is correct than this should be a
function in the frontend and for the xdps implementation that code
should be moved into DPSComposite. To implement NSCopyBitmapFromGState
we need another drawing interface in NSGraphicContext, propably
something similar to the interface we need for the new NSImage drawing
methods.



Most of that sounds good, although the xdps does things a bit differently, we could probably figure out a way to make the implementation more like xgps. Also there are still a few functions that don't really belong anywhere, although I could look at trying to integrate them better into XGContext and/or the backend interface.

I'm also trying to look at implementing drawing with OpenGL or perhaps gslib (or maybe both) such that it is backend independant, but it might still have to be in the backend due to how it would have to be linked. That could take a while...





reply via email to

[Prev in Thread] Current Thread [Next in Thread]