org.jagatoo.loaders.textures.formats
Class TextureImageFormatLoaderPCX.PCXPalette

java.lang.Object
  extended by org.jagatoo.loaders.textures.formats.TextureImageFormatLoaderPCX.PCXPalette
Enclosing class:
TextureImageFormatLoaderPCX

public static class TextureImageFormatLoaderPCX.PCXPalette
extends java.lang.Object


Constructor Summary
TextureImageFormatLoaderPCX.PCXPalette(byte[] data)
          Creates new PCX Palette
 
Method Summary
 void getColor(int index, byte[] pixel)
          Get a color by a specified index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextureImageFormatLoaderPCX.PCXPalette

public TextureImageFormatLoaderPCX.PCXPalette(byte[] data)
Creates new PCX Palette

Parameters:
data - the byte-data of the input
Method Detail

getColor

public final void getColor(int index,
                           byte[] pixel)
Get a color by a specified index.

Parameters:
index - The index of the color to retrieve