public interface ReadableColor
Modifier and Type | Field and Description |
---|---|
static ReadableColor |
BLACK |
static ReadableColor |
BLUE |
static ReadableColor |
CYAN |
static ReadableColor |
DKGREY |
static ReadableColor |
GREEN |
static ReadableColor |
GREY |
static ReadableColor |
LTGREY |
static ReadableColor |
ORANGE |
static ReadableColor |
PURPLE |
static ReadableColor |
RED |
static ReadableColor |
WHITE |
static ReadableColor |
YELLOW |
Modifier and Type | Method and Description |
---|---|
int |
getAlpha()
Return the red component (0..255)
|
byte |
getAlphaByte()
Return the red component
|
int |
getBlue()
Return the red component (0..255)
|
byte |
getBlueByte()
Return the red component
|
int |
getGreen()
Return the red component (0..255)
|
byte |
getGreenByte()
Return the red component
|
int |
getRed()
Return the red component (0..255)
|
byte |
getRedByte()
Return the red component
|
void |
writeABGR(java.nio.ByteBuffer dest)
Write the ABGR color directly out to a ByteBuffer
|
void |
writeARGB(java.nio.ByteBuffer dest)
Write the ARGB color directly out to a ByteBuffer
|
void |
writeBGR(java.nio.ByteBuffer dest)
Write the BGR color directly out to a ByteBuffer
|
void |
writeBGRA(java.nio.ByteBuffer dest)
Write the BGRA color directly out to a ByteBuffer
|
void |
writeRGB(java.nio.ByteBuffer dest)
Write the RGB color directly out to a ByteBuffer
|
void |
writeRGBA(java.nio.ByteBuffer dest)
Write the RGBA color directly out to a ByteBuffer
|
static final ReadableColor RED
static final ReadableColor ORANGE
static final ReadableColor YELLOW
static final ReadableColor GREEN
static final ReadableColor CYAN
static final ReadableColor BLUE
static final ReadableColor PURPLE
static final ReadableColor WHITE
static final ReadableColor BLACK
static final ReadableColor LTGREY
static final ReadableColor DKGREY
static final ReadableColor GREY
int getRed()
int getGreen()
int getBlue()
int getAlpha()
byte getRedByte()
byte getGreenByte()
byte getBlueByte()
byte getAlphaByte()
void writeRGBA(java.nio.ByteBuffer dest)
dest
- the buffer to write tovoid writeRGB(java.nio.ByteBuffer dest)
dest
- the buffer to write tovoid writeABGR(java.nio.ByteBuffer dest)
dest
- the buffer to write tovoid writeBGR(java.nio.ByteBuffer dest)
dest
- the buffer to write tovoid writeBGRA(java.nio.ByteBuffer dest)
dest
- the buffer to write tovoid writeARGB(java.nio.ByteBuffer dest)
dest
- the buffer to write toCopyright © 2002-2009 lwjgl.org. All Rights Reserved.