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
Fields Modifier and Type Field 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
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getAlpha()
Return the red component (0..255)byte
getAlphaByte()
Return the red componentint
getBlue()
Return the red component (0..255)byte
getBlueByte()
Return the red componentint
getGreen()
Return the red component (0..255)byte
getGreenByte()
Return the red componentint
getRed()
Return the red component (0..255)byte
getRedByte()
Return the red componentvoid
writeABGR(java.nio.ByteBuffer dest)
Write the ABGR color directly out to a ByteBuffervoid
writeARGB(java.nio.ByteBuffer dest)
Write the ARGB color directly out to a ByteBuffervoid
writeBGR(java.nio.ByteBuffer dest)
Write the BGR color directly out to a ByteBuffervoid
writeBGRA(java.nio.ByteBuffer dest)
Write the BGRA color directly out to a ByteBuffervoid
writeRGB(java.nio.ByteBuffer dest)
Write the RGB color directly out to a ByteBuffervoid
writeRGBA(java.nio.ByteBuffer dest)
Write the RGBA color directly out to a ByteBuffer
-
-
-
Field Detail
-
RED
static final ReadableColor RED
-
ORANGE
static final ReadableColor ORANGE
-
YELLOW
static final ReadableColor YELLOW
-
GREEN
static final ReadableColor GREEN
-
CYAN
static final ReadableColor CYAN
-
BLUE
static final ReadableColor BLUE
-
PURPLE
static final ReadableColor PURPLE
-
WHITE
static final ReadableColor WHITE
-
BLACK
static final ReadableColor BLACK
-
LTGREY
static final ReadableColor LTGREY
-
DKGREY
static final ReadableColor DKGREY
-
GREY
static final ReadableColor GREY
-
-
Method Detail
-
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
void writeRGBA(java.nio.ByteBuffer dest)
Write the RGBA color directly out to a ByteBuffer- Parameters:
dest
- the buffer to write to
-
writeRGB
void writeRGB(java.nio.ByteBuffer dest)
Write the RGB color directly out to a ByteBuffer- Parameters:
dest
- the buffer to write to
-
writeABGR
void writeABGR(java.nio.ByteBuffer dest)
Write the ABGR color directly out to a ByteBuffer- Parameters:
dest
- the buffer to write to
-
writeBGR
void writeBGR(java.nio.ByteBuffer dest)
Write the BGR color directly out to a ByteBuffer- Parameters:
dest
- the buffer to write to
-
writeBGRA
void writeBGRA(java.nio.ByteBuffer dest)
Write the BGRA color directly out to a ByteBuffer- Parameters:
dest
- the buffer to write to
-
writeARGB
void writeARGB(java.nio.ByteBuffer dest)
Write the ARGB color directly out to a ByteBuffer- Parameters:
dest
- the buffer to write to
-
-