Hi I’d like to know how SDL handles 8bit color depths.
I mean, let’s say I’m in a 8bit video mode and all the images
I have to load and display are in a .bmp indexed mode (not RGB)
also these images don’t have a common palette.
Can I safely ignore all of the palette things and just load and
display the images, or should I set the display colors in someway ?
Another question that maybe slightly OT:
When should I load all the images I need for a game or an app ?
It’s better to load all the images (even the ones you are not
going to use that much, like menus screen or scoreboard …)
at the beginning of the application and free them at exit.
It’s better to load an image only when you need it and free it
as soon you’re done with it, even if you’re going to reuse it later.
Just load and free when you’re done all the images that are used the
less in the game/application, (menu screen, score screenn…, title)
but keep in memory all the images you need in your game loop.
what else ?
I’m sorry if I said something stupid, but I’m not that expert in such