Package org.lwjgl.util
Interface ReadableColor
- All Known Implementing Classes:
Color
public interface ReadableColor
Readonly interface for Colors
- Version:
- $Revision$ $Id$
- Author:
- $Author$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReadableColor
static final ReadableColor
static final ReadableColor
static final ReadableColor
static final ReadableColor
static final ReadableColor
static final ReadableColor
static final ReadableColor
static final ReadableColor
static final ReadableColor
static final ReadableColor
static final ReadableColor
-
Method Summary
Modifier and TypeMethodDescriptionint
getAlpha()
Return the red component (0..255)byte
Return the red componentint
getBlue()
Return the red component (0..255)byte
Return the red componentint
getGreen()
Return the red component (0..255)byte
Return the red componentint
getRed()
Return the red component (0..255)byte
Return the red componentvoid
writeABGR
(ByteBuffer dest) Write the ABGR color directly out to a ByteBuffervoid
writeARGB
(ByteBuffer dest) Write the ARGB color directly out to a ByteBuffervoid
writeBGR
(ByteBuffer dest) Write the BGR color directly out to a ByteBuffervoid
writeBGRA
(ByteBuffer dest) Write the BGRA color directly out to a ByteBuffervoid
writeRGB
(ByteBuffer dest) Write the RGB color directly out to a ByteBuffervoid
writeRGBA
(ByteBuffer dest) Write the RGBA color directly out to a ByteBuffer
-
Field Details
-
RED
-
ORANGE
-
YELLOW
-
GREEN
-
CYAN
-
BLUE
-
PURPLE
-
WHITE
-
BLACK
-
LTGREY
-
DKGREY
-
GREY
-
-
Method Details
-
getRed
int getRed()Return the red component (0..255)- Returns:
- int
-
getGreen
int getGreen()Return the red component (0..255)- Returns:
- int
-
getBlue
int getBlue()Return the red component (0..255)- Returns:
- int
-
getAlpha
int getAlpha()Return the red component (0..255)- Returns:
- int
-
getRedByte
byte getRedByte()Return the red component- Returns:
- int
-
getGreenByte
byte getGreenByte()Return the red component- Returns:
- int
-
getBlueByte
byte getBlueByte()Return the red component- Returns:
- int
-
getAlphaByte
byte getAlphaByte()Return the red component- Returns:
- int
-
writeRGBA
Write the RGBA color directly out to a ByteBuffer- Parameters:
dest
- the buffer to write to
-
writeRGB
Write the RGB color directly out to a ByteBuffer- Parameters:
dest
- the buffer to write to
-
writeABGR
Write the ABGR color directly out to a ByteBuffer- Parameters:
dest
- the buffer to write to
-
writeBGR
Write the BGR color directly out to a ByteBuffer- Parameters:
dest
- the buffer to write to
-
writeBGRA
Write the BGRA color directly out to a ByteBuffer- Parameters:
dest
- the buffer to write to
-
writeARGB
Write the ARGB color directly out to a ByteBuffer- Parameters:
dest
- the buffer to write to
-