Re: [Alephmodular-devel] More to muse over. Display Abstraction
Status: Pre-Alpha
Brought to you by:
brefin
From: Br'fin <br...@ma...> - 2003-03-09 22:43:39
|
CPixelDoubledClippedBuffer is now in my code. In game graphics are much the same as before my fixups now. I do still need to work on the menus and screens though. On a lark, I tried 256 color mode, and now that messes up in a different way. Seeing as how everything that works with the prior back buffer of world_pixels is now directly manipulating bits of an OSX buffered window. Everything gets squeezed off to the left. I'm going to guess that when forced to 256 color mode, then all window back buffers end up defaulting to millions. No idea if display sprockets would help with this :) -Jeremy Parsons On Saturday, March 8, 2003, at 02:47 PM, Br'fin wrote: > Ok, I think the entirety of your description (observers, readonly > bitmaps) is much like one of my overblown efforts. However, I think > your base idea is workable. > > As I was reading your message I'd been thinking 'what if pixel > doubling was an attribute of a bitmap.' But, as I thought that > through, that would require checks wherever in buffer or what not for > this attribute, perhaps building concealed clipping buffers or > something. And no, no, that was too much in a different direction. > > However, if there was a CDoublingBuffer, and itself was a descendant > of CClippingBuffer, then it could accept an input area that's > divisible by 2, clip itself even more heavilly, and when it unlocks > its pixels, it could inflate them. > > This also allows the buffer to position the original clipping > optimally for not mis-overwriting when inflating. > > ... Hmm, currently to get a clipping buffer, you request one from the > current buffer... guess you could add an attribute to that call. > > CClippedBuffer::Ptr (auto_ptr) CBuffer::get_clipped_buffer( > dimensions, attr = CBuffer::PixelStandard) > > But attr could also be CBuffer::PixelQuadruple which would switch it > to be allocating a doubling buffer instead of a normal clipped buffer. > > -Jeremy Parsons > |