Re: [Alephmodular-devel] CoreGraphics work
Status: Pre-Alpha
Brought to you by:
brefin
|
From: Br'fin <br...@ma...> - 2005-07-08 00:18:13
|
On Jul 7, 2005, at 7:47 PM, Alexei Svitkine wrote: >> especially since we're trying to abstract the core away from the >> OS interfaces as much as possible anyway. >> > > Wouldn't it better to just draw to an in-memory buffer for the > whole screen and then use the minimal OS calls to transfer that as > a whole bitmap (or parts that changed since last frame) to the > screen? It seems integrating it closely with the OS isn't a very > modular thing to do. ;) > > -Myrd I admit that I have a lot of respect for whoever did the corresponding SDL calls in A1. They may have cribbed from SDL drawing methodology, but the full set of code for rasterizing lines and polygons and such is setup in the A1 code base. I have a lot of respect for whoever put them there, and don't begrudge them doing it either. That said, these drawing operations are already split out from the M2 specific code. I'm also kind of curious what some things like the map and terminals might look like with system provided anti-aliasing :) On the flip side, the OS provided calls for transferring the whole bitmap to the screen are extremely minimal indeed. (There seems to be absolutely nothing that is directly comparable to classic copybits for instance.) -Jeremy Parsons http://alephmodular.sourceforge.net/ |