Package org.lwjgl.util
Interface WritableColor
-
- All Known Implementing Classes:
Color
public interface WritableColorWrite interface for Colors- Version:
- $Revision$ $Id$
- Author:
- $Author$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidreadABGR(ByteBuffer src)Read a color from a byte buffervoidreadARGB(ByteBuffer src)Read a color from a byte buffervoidreadBGR(ByteBuffer src)Read a color from a byte buffervoidreadBGRA(ByteBuffer src)Read a color from a byte buffervoidreadRGB(ByteBuffer src)Read a color from a byte buffervoidreadRGBA(ByteBuffer src)Read a color from a byte buffervoidset(byte r, byte g, byte b)Set a colorvoidset(byte r, byte g, byte b, byte a)Set a colorvoidset(int r, int g, int b)Set a colorvoidset(int r, int g, int b, int a)Set a colorvoidsetAlpha(byte alpha)Set the Alpha componentvoidsetAlpha(int alpha)Set the Alpha componentvoidsetBlue(byte blue)Set the Blue componentvoidsetBlue(int blue)Set the Blue componentvoidsetColor(ReadableColor src)Set this color's color by copying another colorvoidsetGreen(byte green)Set the Green componentvoidsetGreen(int green)Set the Green componentvoidsetRed(byte red)Set the Red componentvoidsetRed(int red)Set the Red component
-
-
-
Method Detail
-
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
void readRGBA(ByteBuffer src)
Read a color from a byte buffer- Parameters:
src- The source buffer
-
readRGB
void readRGB(ByteBuffer src)
Read a color from a byte buffer- Parameters:
src- The source buffer
-
readARGB
void readARGB(ByteBuffer src)
Read a color from a byte buffer- Parameters:
src- The source buffer
-
readBGRA
void readBGRA(ByteBuffer src)
Read a color from a byte buffer- Parameters:
src- The source buffer
-
readBGR
void readBGR(ByteBuffer src)
Read a color from a byte buffer- Parameters:
src- The source buffer
-
readABGR
void readABGR(ByteBuffer src)
Read a color from a byte buffer- Parameters:
src- The source buffer
-
setColor
void setColor(ReadableColor src)
Set this color's color by copying another color- Parameters:
src- The source color
-
-