Package org.lwjgl.util
Interface WritableColor
- All Known Implementing Classes:
Color
public interface WritableColor
Write interface for Colors
- Version:
- $Revision$ $Id$
- Author:
- $Author$
-
Method Summary
Modifier and TypeMethodDescriptionvoid
readABGR
(ByteBuffer src) Read a color from a byte buffervoid
readARGB
(ByteBuffer src) Read a color from a byte buffervoid
readBGR
(ByteBuffer src) Read a color from a byte buffervoid
readBGRA
(ByteBuffer src) Read a color from a byte buffervoid
readRGB
(ByteBuffer src) Read a color from a byte buffervoid
readRGBA
(ByteBuffer src) Read a color from a byte buffervoid
set
(byte r, byte g, byte b) Set a colorvoid
set
(byte r, byte g, byte b, byte a) Set a colorvoid
set
(int r, int g, int b) Set a colorvoid
set
(int r, int g, int b, int a) Set a colorvoid
setAlpha
(byte alpha) Set the Alpha componentvoid
setAlpha
(int alpha) Set the Alpha componentvoid
setBlue
(byte blue) Set the Blue componentvoid
setBlue
(int blue) Set the Blue componentvoid
setColor
(ReadableColor src) Set this color's color by copying another colorvoid
setGreen
(byte green) Set the Green componentvoid
setGreen
(int green) Set the Green componentvoid
setRed
(byte red) Set the Red componentvoid
setRed
(int red) Set the Red component
-
Method Details
-
set
void set(int r, int g, int b, int a) Set a color -
set
void set(byte r, byte g, byte b, byte a) Set a color -
set
void set(int r, int g, int b) Set a color -
set
void set(byte r, byte g, byte b) Set a color -
setRed
void setRed(int red) Set the Red component -
setGreen
void setGreen(int green) Set the Green component -
setBlue
void setBlue(int blue) Set the Blue component -
setAlpha
void setAlpha(int alpha) Set the Alpha component -
setRed
void setRed(byte red) Set the Red component -
setGreen
void setGreen(byte green) Set the Green component -
setBlue
void setBlue(byte blue) Set the Blue component -
setAlpha
void setAlpha(byte alpha) Set the Alpha component -
readRGBA
Read a color from a byte buffer- Parameters:
src
- The source buffer
-
readRGB
Read a color from a byte buffer- Parameters:
src
- The source buffer
-
readARGB
Read a color from a byte buffer- Parameters:
src
- The source buffer
-
readBGRA
Read a color from a byte buffer- Parameters:
src
- The source buffer
-
readBGR
Read a color from a byte buffer- Parameters:
src
- The source buffer
-
readABGR
Read a color from a byte buffer- Parameters:
src
- The source buffer
-
setColor
Set this color's color by copying another color- Parameters:
src
- The source color
-