Video format question

Hi,

My SDL game asks for a screen (fullscreen) with 320x200 pixel and 15bit
depth. This funnily works well on all platform that I’ve tested.

I’m wondering if some platforms in reality are not supporting a 15bit
screen but SDL is instead emulating one for me.

Is it right that SDL will emulate a 15 bit screen if none is supported?

Cheers
Gunnar

Hi,

My SDL game asks for a screen (fullscreen) with 320x200 pixel and 15bit
depth. This funnily works well on all platform that I’ve tested.

I’m wondering if some platforms in reality are not supporting a 15bit
screen but SDL is instead emulating one for me.

SDL may well be emulating it for you. SDL will emulate if you ask for a
format that is not available on a given computer.

Is it right that SDL will emulate a 15 bit screen if none is supported?

Is it “right” as in right and wrong? Good question. I asked Sam pretty
much the same question a short while ago and volunteered to rip the
emulation code out of SDL. He talked my out of it. :slight_smile:

I object to code doing things like that for me. I would rather have it
fail and force me to adapt to the hardware I have. I also object to the
extra complexity added to SDL to support emulation. OTOH, It is really
handy if you are doing cross development and want to test your code on
your desktop while optimizing for a specific device. It is also very
helpful when you need to port existing code that is optimized for a
specific video format to other machines/platforms. I have used it to
develop and test graphics code for 8, 15, 16, 24, and 32 bit graphics
hardware.

So, right or wrong? This one depends on your point of view. Since it is
SDL you can query the actual depth of the frame buffer and adapt to what
you get instead of asking for 15 bits and having SDL emulate it for you.

	Bob PendletonOn Mon, 2006-03-27 at 04:23 +0200, Gunnar von Boehn wrote:

Cheers
Gunnar


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


±-------------------------------------+