Top Description Methods
org.lwjgl.util

public Interface WritableColor

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

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

Method Summary

Modifier and TypeMethod and Description
public void
readABGR(ByteBuffer
The source buffer
src
)

Read a color from a byte buffer

public void
readARGB(ByteBuffer
The source buffer
src
)

Read a color from a byte buffer

public void
readBGR(ByteBuffer
The source buffer
src
)

Read a color from a byte buffer

public void
readBGRA(ByteBuffer
The source buffer
src
)

Read a color from a byte buffer

public void
readRGB(ByteBuffer
The source buffer
src
)

Read a color from a byte buffer

public void
readRGBA(ByteBuffer
The source buffer
src
)

Read a color from a byte buffer

public void
set(int r, int g, int b, int a)

Set a color

public void
set(byte r, byte g, byte b, byte a)

Set a color

public void
set(int r, int g, int b)

Set a color

public void
set(byte r, byte g, byte b)

Set a color

public void
setAlpha(int alpha)

Set the Alpha component

public void
setAlpha(byte alpha)

Set the Alpha component

public void
setBlue(int blue)

Set the Blue component

public void
setBlue(byte blue)

Set the Blue component

public void
setColor(ReadableColor
The source color
src
)

Set this color's color by copying another color

public void
setGreen(int green)

Set the Green component

public void
setGreen(byte green)

Set the Green component

public void
setRed(int red)

Set the Red component

public void
setRed(byte red)

Set the Red component

Method Detail

readABGRback to summary
public void readABGR(ByteBuffer src)

Read a color from a byte buffer

Parameters
src:ByteBuffer

The source buffer

readARGBback to summary
public void readARGB(ByteBuffer src)

Read a color from a byte buffer

Parameters
src:ByteBuffer

The source buffer

readBGRback to summary
public void readBGR(ByteBuffer src)

Read a color from a byte buffer

Parameters
src:ByteBuffer

The source buffer

readBGRAback to summary
public void readBGRA(ByteBuffer src)

Read a color from a byte buffer

Parameters
src:ByteBuffer

The source buffer

readRGBback to summary
public void readRGB(ByteBuffer src)

Read a color from a byte buffer

Parameters
src:ByteBuffer

The source buffer

readRGBAback to summary
public void readRGBA(ByteBuffer src)

Read a color from a byte buffer

Parameters
src:ByteBuffer

The source buffer

setback to summary
public void set(int r, int g, int b, int a)

Set a color

setback to summary
public void set(byte r, byte g, byte b, byte a)

Set a color

setback to summary
public void set(int r, int g, int b)

Set a color

setback to summary
public void set(byte r, byte g, byte b)

Set a color

setAlphaback to summary
public void setAlpha(int alpha)

Set the Alpha component

setAlphaback to summary
public void setAlpha(byte alpha)

Set the Alpha component

setBlueback to summary
public void setBlue(int blue)

Set the Blue component

setBlueback to summary
public void setBlue(byte blue)

Set the Blue component

setColorback to summary
public void setColor(ReadableColor src)

Set this color's color by copying another color

Parameters
src:ReadableColor

The source color

setGreenback to summary
public void setGreen(int green)

Set the Green component

setGreenback to summary
public void setGreen(byte green)

Set the Green component

setRedback to summary
public void setRed(int red)

Set the Red component

setRedback to summary
public void setRed(byte red)

Set the Red component