Re: [Alephmodular-devel] Drawing Contexts - CDContext
Status: Pre-Alpha
Brought to you by:
brefin
From: Br'fin <br...@ma...> - 2003-07-30 19:57:49
|
On Monday, July 28, 2003, at 10:14 PM, Alexander Strange wrote: > > On Monday, July 28, 2003, at 06:24 PM, Br'fin wrote: > >> Yes, I know it's old and crusty in here. But I never know quite what >> to do aside from occasionally making some headway on the Display >> Abstraction. >> >> The general business I see CDContext dealing with will mainly be >> drawing lines, text, and filling areas. As such it will provide the >> support/features needed and provided by screen_drawing.cpp. As well >> as other areas where direct drawing commands are done upon a buffer. >> (For instance, asking a buffer to be erased/filled to a color) > > It would be useful if it also supported basic transforms like scaling > (so we can read terminals comfortably at high screen resolutions, > although we may not want to scale the pictures); Quartz and OpenGL > will handle this for you in OSX. > >> But that is probably fairly rare to begin with. And in the future may >> allow us to shift to a Quartz based drawing scheme. (Heh, >> anti-aliased text and map lines?) > > I would definetely recommend starting out with Quartz/CoreGraphics > instead of a QuickDraw API. > Mmm, point on the scaling or handling of terminals. I admit I haven't put much thought into other resolutions yet. I want to keep it in mind, but haven't done anything about it yet. I'm more likely to lean towards the first implementation using the QuickDraw API just because that's what all of the existing code tends to expect. Once the code is encapsulated then the work of pushing it towards Quartz would be clearer. Especially if I'm the one who has to code things :) -Jeremy Parsons |