Moved old SDL::Palette to SDL::Game::Palette.
[sdlgit/SDL_perl.git] / lib / SDL / Palette.pm
1 #!perl
2 package SDL::Palette;
3 use strict;
4 use warnings;
5 require Exporter;
6 require DynaLoader;
7 our @ISA = qw(Exporter DynaLoader);
8 bootstrap SDL::Palette;
9
10 1;
11
12 __END__
13
14 =pod
15
16 =head1 NAME
17
18 SDL::Palette - a perl extension
19
20 =head1 DESCRIPTION
21
22 L<SDL::Palette> provides an interface to the C<SDL_Palette> structures,
23 and can be used to set the color values of an existing palette's indexes.
24
25 =head1 METHODS
26
27 =head2 ncolors ( )
28
29 Fetches the number of colors in palette
30
31 =head2 colors ( index )
32
33 Fetches an array of colors in palette
34
35 =head2 color_index ( index )
36
37 Fetches the SDL_Color at the provide index in palette
38
39 =head2 size
40
41 Returns the size of the palette.
42
43
44 =head1 SEE ALSO
45
46 L<SDL::Color> L<SDL::Surface>
47
48 =cut