sdljava.video

Class SDLPalette

public class SDLPalette extends 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: Version: $Id: SDLPalette.java,v 1.9 2004/12/24 17:32:17 ivan_ganza Exp $

Author: Ivan Z. Ganza

UNKNOWN: Finish SWIG integration

Field Summary
SDL_PaletteswigPalette
Constructor Summary
protected SDLPalette(SDL_Palette swigPalette)
Creates a new SDLPalette instance.

Field Detail

swigPalette

SDL_Palette swigPalette

Constructor Detail

SDLPalette

protected SDLPalette(SDL_Palette swigPalette)
Creates a new SDLPalette instance.