residualvm/residualvm — pull request #479 by giucam (2012-01-16 16:27:38+00:00)
Title: TinyGL: Support for different color modes, first part.

This is a working draft of different color modes support in TinyGL. It's not complete and maybe won't work on big endian machines, however the main things are there.
The core of the patch is the PixelBuffer class, which, together with PixelFormat, allows me to swap easily back and forth between the color modes.

You can change the color mode by changing the bpp on backends/graphics/surfacesdl/surfacesdl-graphics.cpp:137.

I'd like to know if you think the direction i've taken is good. Any comment is welcome. :)