Top Description Fields Methods
org.lwjgl.util

public Interface ReadableColor

Known Direct Implementers
org.lwjgl.util.Color
Imports
java.nio.ByteBuffer

Readonly interface for Colors
Author
$Author$
Version
$Revision$ $Id$

Field Summary

Modifier and TypeField and Description
public static final ReadableColor
public static final ReadableColor
public static final ReadableColor
public static final ReadableColor
public static final ReadableColor
public static final ReadableColor
public static final ReadableColor
public static final ReadableColor
public static final ReadableColor
public static final ReadableColor
public static final ReadableColor
public static final ReadableColor

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

int
getAlpha
()

Return the red component (0..255)

public byte

Returns:

int
getAlphaByte
()

Return the red component

public int

Returns:

int
getBlue
()

Return the red component (0..255)

public byte

Returns:

int
getBlueByte
()

Return the red component

public int

Returns:

int
getGreen
()

Return the red component (0..255)

public byte

Returns:

int
getGreenByte
()

Return the red component

public int

Returns:

int
getRed
()

Return the red component (0..255)

public byte

Returns:

int
getRedByte
()

Return the red component

public void
writeABGR(ByteBuffer
the buffer to write to
dest
)

Write the ABGR color directly out to a ByteBuffer

public void
writeARGB(ByteBuffer
the buffer to write to
dest
)

Write the ARGB color directly out to a ByteBuffer

public void
writeBGR(ByteBuffer
the buffer to write to
dest
)

Write the BGR color directly out to a ByteBuffer

public void
writeBGRA(ByteBuffer
the buffer to write to
dest
)

Write the BGRA color directly out to a ByteBuffer

public void
writeRGB(ByteBuffer
the buffer to write to
dest
)

Write the RGB color directly out to a ByteBuffer

public void
writeRGBA(ByteBuffer
the buffer to write to
dest
)

Write the RGBA color directly out to a ByteBuffer

Field Detail

BLACKback to summary
public static final ReadableColor BLACK
BLUEback to summary
public static final ReadableColor BLUE
CYANback to summary
public static final ReadableColor CYAN
DKGREYback to summary
public static final ReadableColor DKGREY
GREENback to summary
public static final ReadableColor GREEN
GREYback to summary
public static final ReadableColor GREY
LTGREYback to summary
public static final ReadableColor LTGREY
ORANGEback to summary
public static final ReadableColor ORANGE
PURPLEback to summary
public static final ReadableColor PURPLE
REDback to summary
public static final ReadableColor RED
WHITEback to summary
public static final ReadableColor WHITE
YELLOWback to summary
public static final ReadableColor YELLOW

Method Detail

getAlphaback to summary
public int getAlpha()

Return the red component (0..255)

Returns:int

int

getAlphaByteback to summary
public byte getAlphaByte()

Return the red component

Returns:byte

int

getBlueback to summary
public int getBlue()

Return the red component (0..255)

Returns:int

int

getBlueByteback to summary
public byte getBlueByte()

Return the red component

Returns:byte

int

getGreenback to summary
public int getGreen()

Return the red component (0..255)

Returns:int

int

getGreenByteback to summary
public byte getGreenByte()

Return the red component

Returns:byte

int

getRedback to summary
public int getRed()

Return the red component (0..255)

Returns:int

int

getRedByteback to summary
public byte getRedByte()

Return the red component

Returns:byte

int

writeABGRback to summary
public void writeABGR(ByteBuffer dest)

Write the ABGR color directly out to a ByteBuffer

Parameters
dest:ByteBuffer

the buffer to write to

writeARGBback to summary
public void writeARGB(ByteBuffer dest)

Write the ARGB color directly out to a ByteBuffer

Parameters
dest:ByteBuffer

the buffer to write to

writeBGRback to summary
public void writeBGR(ByteBuffer dest)

Write the BGR color directly out to a ByteBuffer

Parameters
dest:ByteBuffer

the buffer to write to

writeBGRAback to summary
public void writeBGRA(ByteBuffer dest)

Write the BGRA color directly out to a ByteBuffer

Parameters
dest:ByteBuffer

the buffer to write to

writeRGBback to summary
public void writeRGB(ByteBuffer dest)

Write the RGB color directly out to a ByteBuffer

Parameters
dest:ByteBuffer

the buffer to write to

writeRGBAback to summary
public void writeRGBA(ByteBuffer dest)

Write the RGBA color directly out to a ByteBuffer

Parameters
dest:ByteBuffer

the buffer to write to