Hi there!
I’d like to know how to acess the palette of a surface. I did not find
anything about it.
I want to make a palette-animation / rotation.
thanks
Daniel Stiefelmaier
Hi there!
I’d like to know how to acess the palette of a surface. I did not find
anything about it.
I want to make a palette-animation / rotation.
thanks
Daniel Stiefelmaier
I’d like to know how to acess the palette of a surface. I did not find
anything about it.
http://sdldoc.csn.ul.ie/sdlsetpalette.php
Mike.
Hi!
http://sdldoc.csn.ul.ie/sdlsetpalette.php
You should be able to work it out from there, if not give us another buzz
Yes, SDL_SetPalette() works great, thanks.
I’m missing SDL_GetPalette()
I think, for all transformations of a palette (cycle or blend…) you need
the original values.
What about adding a this function to SDL 1.3?
greets, Daniel
“Daniel Stiefelmaier” wrote:
I’m missing SDL_GetPalette()
I think, for all transformations of a palette (cycle or blend…) you need
the original values.
you can remember what you set the palette to yourself. Or you could
look directly in surface->format->palette. See the testpalette.c
program for a small demo
I’m missing SDL_GetPalette()
I think, for all transformations of a palette (cycle or blend…) you
needthe original values.
you can remember what you set the palette to yourself. Or you could
Of course i can… if i set them! But i load images and rotate their
palette.
So i have to get the original values
look directly in surface->format->palette.
I already did. But i thougt, would not be a bad idea to include a function
for this.
Daniel