Loading .PAL files

I wrote an addon so that SDL can support loading microsoft .PAL palette
files into an SDL_Palette, the functions work just like SDL_LoadBMP. I
figured many developers who write palettized sprite games might appreciate
this since then they can divorce their palettes from their images. It
would be cool if it was put in the next release of SDL.
I have documentation on how to do it in C++ here:
http://home.comcast.net/~willperone/Codetips/readingpal.html

And my SDL addon is here (it’s coded in SDL compliant C):
http://home.comcast.net/~willperone/Code/SDL_Pal.zip

  • Will

That would be very useful, if it weren’t for the fact that any
color-paletted game out there will (or should) have created all of
their sprites USING the palette they intend on ultimately using in
their game, and it’s currently very easy in SDL to set the color
palette according to the palette of an image loaded from disk.On Jul 27, 2004, at 6:57 PM, wrote:

I wrote an addon so that SDL can support loading microsoft .PAL palette
files into an SDL_Palette, the functions work just like SDL_LoadBMP. I
figured many developers who write palettized sprite games might
appreciate
this since then they can divorce their palettes from their images. It
would be cool if it was put in the next release of SDL.
I have documentation on how to do it in C++ here:
http://home.comcast.net/~willperone/Codetips/readingpal.html

And my SDL addon is here (it’s coded in SDL compliant C):
http://home.comcast.net/~willperone/Code/SDL_Pal.zip

  • Will

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

  • Donny Viszneki

That would be very useful, if it weren’t for the fact that any
color-paletted game out there will (or should) have created all of
their sprites USING the palette they intend on ultimately using in
their game, and it’s currently very easy in SDL to set the color
palette according to the palette of an image loaded from disk.

There are many situations where you want to use multiple palettes or do
palette swapping. Take for example a simple NES megaman style game,
rather than having a seperate set of images for each color scheme for
megaman, you just load up a different .PAL file and set the palette.

  • Will

I wrote an addon so that SDL can support loading microsoft .PAL palette
files into an SDL_Palette, the functions work just like SDL_LoadBMP. I
figured many developers who write palettized sprite games might appreciate
this since then they can divorce their palettes from their images. It
would be cool if it was put in the next release of SDL.
I have documentation on how to do it in C++ here:
http://home.comcast.net/~willperone/Codetips/readingpal.html

And my SDL addon is here (it’s coded in SDL compliant C):
http://home.comcast.net/~willperone/Code/SDL_Pal.zip

Go ahead and add this to the SDL demos or libraries page!
http://www.libsdl.org/faq.php?action=listentries&category=1#60

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment