Hi.
I?ll would like to know the diferences for thas functions, because they
seem pretty similar to me, Both set the colormap/palette for a surface,
with the exception of SDL_Palette, which can set the logical and the
physical pallete using the flags.
Maybe I misunderstood, but, I ?ve been searchign the web (google) and it
seems that palette and colormap are the same concept. Is that correct?
Thanks in advance
Ricardo Amores Hern?ndez escribi?:
Hi.
I?ll would like to know the diferences for thas functions, because
they seem pretty similar to me, Both set the colormap/palette for a
surface, with the exception of SDL_Palette, which can set the logical
and the physical pallete using the flags.
Maybe I misunderstood, but, I ?ve been searchign the web (google) and
it seems that palette and colormap are the same concept. Is that correct?
Thanks in advance
Ok, I?ve used the Source and found my answer:
int SDL_SetColors(SDL_Surface *screen, SDL_Color *colors, int
firstcolor, int ncolors)
{
return SDL_SetPalette(screen, SDL_LOGPAL | SDL_PHYSPAL, colors,
firstcolor, ncolors);
}
See you!