sdl.video
Class SDLPalette

java.lang.Object
  |
  +--sdl.video.SDLPalette

public class SDLPalette
extends java.lang.Object

Represents a palette for low bpp color formats.


Field Summary
 SDLColor[] m_Colors
          The actual palette.
 int m_NColors
          Number of colors in the palette.
 
Constructor Summary
SDLPalette(int handle)
          called by the SDLPixelFormat constructor, should not be used otherwise.
 
Method Summary
 void freePalette()
          Free the low level palette buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_NColors

public int m_NColors
Number of colors in the palette. hmm.. couldn't just use m_Colors.length instead?


m_Colors

public SDLColor[] m_Colors
The actual palette.

Constructor Detail

SDLPalette

public SDLPalette(int handle)
called by the SDLPixelFormat constructor, should not be used otherwise. should this be non-public?

Method Detail

freePalette

public void freePalette()
Free the low level palette buffer. Should be called before SDLPalette is garbage collected?