java.lang.Object
org.libsdl.SDLStruct
org.libsdl.video.SDLPalette
- public class SDLPalette
- extends org.libsdl.SDLStruct
The SDLPalette class represents an SDL_Palette C struct.
The class extends SDLStruct and thus represents a native
C structure. The C structure is basically an array of colors that make
up a palette.
- Version:
- $revision$
|
Method Summary |
SDLColor |
getColor(int index)
Get a specific color from the palette. |
int |
numColors()
Get the number of colors in this palette. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SDLPalette
protected SDLPalette(int l)
numColors
public int numColors()
- Get the number of colors in this palette.
getColor
public SDLColor getColor(int index)
- Get a specific color from the palette.