Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.libsdl.video
Class SDLPalette  view SDLPalette download SDLPalette.java

java.lang.Object
  extended byorg.libsdl.SDLStruct
      extended byorg.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$

Field Summary
 
Fields inherited from class org.libsdl.SDLStruct
pointer
 
Constructor Summary
protected SDLPalette(int l)
           
 
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
 

Constructor Detail

SDLPalette

protected SDLPalette(int l)
Method Detail

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.