From 9682c8870b8ff5e4ac2e4c70b759f791c6f38c1f Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Mon, 9 Jul 2012 11:27:07 -0700 Subject: Import SDL release-1.2.15 Change-Id: I505c4aea24325cad475f217db5589814b4c75dbf --- distrib/sdl-1.2.15/docs/html/sdlpalette.html | 301 +++++++++++++++++++++++++++ 1 file changed, 301 insertions(+) create mode 100644 distrib/sdl-1.2.15/docs/html/sdlpalette.html (limited to 'distrib/sdl-1.2.15/docs/html/sdlpalette.html') diff --git a/distrib/sdl-1.2.15/docs/html/sdlpalette.html b/distrib/sdl-1.2.15/docs/html/sdlpalette.html new file mode 100644 index 0000000..6498ac4 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlpalette.html @@ -0,0 +1,301 @@ +SDL_Palette
SDL Library Documentation
PrevNext

SDL_Palette

Name

SDL_Palette -- Color palette for 8-bit pixel formats

Structure Definition

typedef struct{
+  int ncolors;
+  SDL_Color *colors;
+} SDL_Palette;

Structure Data

ncolorsNumber of colors used in this palette
colorsPointer to SDL_Color structures that make up the palette.

Description

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.

See Also

SDL_Color, +SDL_Surface, +SDL_SetColors +SDL_SetPalette


PrevHomeNext
SDL_ColorUpSDL_PixelFormat
\ No newline at end of file -- cgit v1.1