X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-Palette.html-inc;fp=pages%2FSDL-Palette.html-inc;h=417a2d655e60e1effade20211f1c265ab5652387;hb=fb9a1059a3ae94fef524dd61166ec3e7f8f5a6ef;hp=b74bc6d32ad28474ccbc6743dd7b2ee36a5802e8;hpb=15c551d8d343305c6a28bd6b9813c63b8420b954;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL-Palette.html-inc b/pages/SDL-Palette.html-inc index b74bc6d..417a2d6 100644 --- a/pages/SDL-Palette.html-inc +++ b/pages/SDL-Palette.html-inc @@ -3,12 +3,12 @@
SDL::Palette - a perl extension
+SDL::Palette -- Color palette for 8-bit pixel formats
+ +Core, Video, Structure
SDL::Palette provides an interface to the SDL_Palette
structures,
-and can be used to set the color values of an existing palette's indexes.
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::Surface
's palette can be set with the SDL::Video::set_colors
.
Fetches the SDL_Color at the provide index in palette
-Returns the size of the palette.
- - - - - -SDL::Color SDL::Surface