Implementing a paletteless video driver

Hi,

I’m presently implementing a new video driver for SDL, which I’ve got
the ground-work done on, and it works find with true-colour visuals.
However, my output method does not support using a palette.

There are mentions in the documentation that if a video driver does not
support palettes, SDL will emulate one with a shadow surface[1].
However I’m not sure what I need to report in my video driver to tell
SDL that I don’t support colour palettes.

I’ve started out by using the dummy output module, however this lies to
the program and says it always supports the use of a colour palette.

Cheers,

–Michael

References:
[1]: http://sdl.beuc.net/sdl.wiki/SDL_SetVideoMode

This should actually be pretty easy, just don’t advertise any palette
support or 8 bit modes and you should be fine.On Sun, Feb 14, 2010 at 11:27 PM, Michael Farrell <micolous+sdl at gmail.com> wrote:

Hi,

I’m presently implementing a new video driver for SDL, which I’ve got
the ground-work done on, and it works find with true-colour visuals.
However, my output method does not support using a palette.

There are mentions in the documentation that if a video driver does not
support palettes, SDL will emulate one with a shadow surface[1].
However I’m not sure what I need to report in my video driver to tell
SDL that I don’t support colour palettes.

I’ve started out by using the dummy output module, however this lies to
the program and says it always supports the use of a colour palette.

Cheers,

–Michael

References:
[1]: http://sdl.beuc.net/sdl.wiki/SDL_SetVideoMode


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC