sdljava.video
Class SDLPalette
java.lang.Object
sdljava.video.SDLPalette
public class SDLPalette
- extends java.lang.Object
Color palette for 8-bit pixel formats
NOTE: 8-bit pixel formats are not yet supported!
Each pixel in an 8-bit surface is an index into the colors field of
the SDL_Palette structure store in SDL_PixelFormat. A SDL_Palette should
never need to be created manually. It is automatically created when SDL
allocates a SDL_PixelFormat for a surface. The colors values of a SDL_Surfaces
palette can be set with the SDL_SetColors.
Also see the documentation here:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
swigPalette
SDL_Palette swigPalette
SDLPalette
protected SDLPalette(SDL_Palette swigPalette)
- Creates a new
SDLPalette
instance.