From: Tobias Leich SDL::Palette - a perl extension SDL::Palette -- Color palette for 8-bit pixel formats Core, Video, Structure SDL::Palette provides an interface to the Each pixel in an 8-bit surface is an index into the colors field of the Index
NAME
CATEGORY
+DESCRIPTION
SDL_Palette
structures,
-and can be used to set the color values of an existing palette's indexes.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
.METHODS
@@ -46,15 +52,6 @@ and can be used to set the color values of an existing palette's indexes.
Fetches the SDL_Color at the provide index in palette
-Returns the size of the palette.
- - - - - -SDL::Color SDL::Surface
diff --git a/pages/documentation.html-inc b/pages/documentation.html-inc index a427aea..133b069 100644 --- a/pages/documentation.html-inc +++ b/pages/documentation.html-inc @@ -1,2 +1,2 @@Core | ||
SDL | Simple DirectMedia Layer for Perl |
Structure | ||
SDL::AudioCVT | - Audio Conversion Structure | |
SDL::AudioSpec | - SDL Bindings for structure SDL::AudioSpec |
CDROM | ||
SDL::CDROM | - SDL Bindings for the CDROM device |
Structure | ||
SDL::CD | - SDL Bindings for structure SDL_CD | |
SDL::CDTrack | - SDL Bindings for structure SDL_CDTrack |
Events | ||
SDL::Events | Bindings to the Events Category in SDL API |
Structure | ||
SDL::Event | General event structure |
Joystick | ||
SDL::Joystick | - SDL Bindings for the Joystick device |
Structure | ||
SDL::Mixer::MixChunk | - SDL Bindings for structure SDL_MixChunk |
Mouse | ||
SDL::Mouse | - SDL Bindings for the Mouse device |
Structure | ||
SDL::Cursor | - Mouse cursor structure |
MultiThread | ||
SDL::MultiThread | Bindings to the MultiThread category in SDL API |
Structure | ||
SDL::Version | - SDL Bindings for structure SDL_Version |
Video | ||
SDL::Video | Bindings to the video category in SDL API |
Structure | ||
SDL::Color | Format independent color description | |
SDL::Overlay | YUV Video overlay | |
SDL::PixelFormat | Stores surface format information | |
SDL::Rect | Defines a rectangular area | |
SDL::Surface | ||
SDL::VideoInfo | Video Target Information |
Cookbook | ||
SDL::Cookbook | ||
SDL::Cookbook::PDL |
Extension | ||
SDL::App | a SDL perl extension |
Mixer | ||
SDL::Mixer | a SDL perl extension |
TODO |
Core |
Audio | ||
SDL::Audio | - SDL Bindings for Audio |
Structure | ||
SDL::Mixer::MixMusic | - SDL Bindings for structure SDL_MixMusic |
Structure | ||
SDL::RWOps | - SDL Bindings to SDL_RWOPs |
Tutorials | ||
SDL::Tutorial | introduction to Perl SDL | |
SDL::Tutorial::Animation | ||
SDL::Tutorial::Images | ||
SDL::Tutorial::LunarLander | a small tutorial on Perl SDL | |
SDL::Tutorial::Pong | ||
SDL::Tutorial::Tetris |
UNCATEGORIZED | ||
SDL::Font | a SDL perl extension | |
SDL::Game::Palette | a perl extension | |
SDL::MPEG | a SDL perl extension | |
SDL::Music | a perl extension | |
SDL::OpenGL | a perl extension | |
SDL::Palette | a perl extension | |
SDL::SFont | a perl extension | |
SDL::SMPEG | a SDL perl extension | |
SDL::Sound | a perl extension | |
SDL::TTFont | a SDL perl extension | |
SDL::Timer | a SDL perl extension for managing timers. | |
SDL::Tool::Font | a perl extension | |
SDL::Tool::Graphic | ||
SDL::old-cdrom | a SDL perl extension for managing CD-ROM drives |
Core | ||
SDL | - Simple DirectMedia Layer for Perl |
Structure | ||
SDL::AudioCVT | - Audio Conversion Structure | |
SDL::AudioSpec | - SDL Bindings for structure SDL::AudioSpec |
CDROM | ||
SDL::CDROM | - SDL Bindings for the CDROM device |
Structure | ||
SDL::CD | - SDL Bindings for structure SDL_CD | |
SDL::CDTrack | - SDL Bindings for structure SDL_CDTrack |
Events | ||
SDL::Events | - Bindings to the Events Category in SDL API |
Structure | ||
SDL::Event | - General event structure |
Joystick | ||
SDL::Joystick | - SDL Bindings for the Joystick device |
Structure | ||
SDL::Mixer::MixChunk | - SDL Bindings for structure SDL_MixChunk |
Mouse | ||
SDL::Mouse | - SDL Bindings for the Mouse device |
Structure | ||
SDL::Cursor | - Mouse cursor structure |
MultiThread | ||
SDL::MultiThread | - Bindings to the MultiThread category in SDL API |
Structure | ||
SDL::Version | - SDL Bindings for structure SDL_Version |
Video | ||
SDL::Video | - Bindings to the video category in SDL API |
Structure | ||
SDL::Color | - Format independent color description | |
SDL::Overlay | - YUV Video overlay | |
SDL::Palette | - Color palette for 8-bit pixel formats | |
SDL::PixelFormat | - Stores surface format information | |
SDL::Rect | - Defines a rectangular area | |
SDL::Surface | ||
SDL::VideoInfo | - Video Target Information |
Cookbook | ||
SDL::Cookbook | ||
SDL::Cookbook::PDL |
Extension | ||
SDL::App | - a SDL perl extension |
Mixer | ||
SDL::Mixer | - a SDL perl extension |
TODO |
Core |
Audio | ||
SDL::Audio | - SDL Bindings for Audio |
Structure | ||
SDL::Mixer::MixMusic | - SDL Bindings for structure SDL_MixMusic |
Structure | ||
SDL::RWOps | - SDL Bindings to SDL_RWOPs |
Tutorials | ||
SDL::Tutorial | - introduction to Perl SDL | |
SDL::Tutorial::Animation | ||
SDL::Tutorial::Images | ||
SDL::Tutorial::LunarLander | - a small tutorial on Perl SDL | |
SDL::Tutorial::Pong | ||
SDL::Tutorial::Tetris |
UNCATEGORIZED | ||
SDL::Font | - a SDL perl extension | |
SDL::Game::Palette | - a perl extension | |
SDL::MPEG | - a SDL perl extension | |
SDL::Music | - a perl extension | |
SDL::OpenGL | - a perl extension | |
SDL::SFont | - a perl extension | |
SDL::SMPEG | - a SDL perl extension | |
SDL::Sound | - a perl extension | |
SDL::TTFont | - a SDL perl extension | |
SDL::Timer | - a SDL perl extension for managing timers. | |
SDL::Tool::Font | - a perl extension | |
SDL::Tool::Graphic | ||
SDL::old-cdrom | - a SDL perl extension for managing CD-ROM drives |