Known Direct Subclasses
|
Known Indirect Subclasses
|
Class Overview
(c) 2010 Nicolas Gramlich
(c) 2011 Zynga Inc.
Summary
Public Methods |
boolean
|
isColorEnabled()
|
void
|
onDraw(GL10 pGL, Camera pCamera)
|
void
|
setColor(float pRed, float pGreen, float pBlue, float pAlpha)
Sets the color using the arithmetic scheme (0.0f - 1.0f RGB quadruple).
|
void
|
setColor(int pRed, int pGreen, int pBlue, int pAlpha)
Sets the color using the digital 8-bit per channel scheme (0 - 255 RGB quadruple).
|
void
|
setColor(int pRed, int pGreen, int pBlue)
Sets the color using the digital 8-bit per channel scheme (0 - 255 RGB triple).
|
void
|
setColor(float pRed, float pGreen, float pBlue)
Sets the color using the arithmetic scheme (0.0f - 1.0f RGB triple).
|
void
|
setColorEnabled(boolean pColorEnabled)
|
Public Constructors
public
ColorBackground
(float pRed, float pGreen, float pBlue)
public
ColorBackground
(float pRed, float pGreen, float pBlue, float pAlpha)
Protected Constructors
protected
ColorBackground
()
Public Methods
public
boolean
isColorEnabled
()
public
void
setColor
(float pRed, float pGreen, float pBlue, float pAlpha)
Sets the color using the arithmetic scheme (0.0f - 1.0f RGB quadruple).
Parameters
pRed
| The red color value. Should be between 0.0 and 1.0, inclusive. |
pGreen
| The green color value. Should be between 0.0 and 1.0, inclusive. |
pBlue
| The blue color value. Should be between 0.0 and 1.0, inclusive. |
pAlpha
| The alpha color value. Should be between 0.0 and 1.0, inclusive.
|
public
void
setColor
(int pRed, int pGreen, int pBlue, int pAlpha)
Sets the color using the digital 8-bit per channel scheme (0 - 255 RGB quadruple).
Parameters
pRed
| The red color value. Should be between 0 and 255, inclusive. |
pGreen
| The green color value. Should be between 0 and 255, inclusive. |
pBlue
| The blue color value. Should be between 0 and 255, inclusive.
|
public
void
setColor
(int pRed, int pGreen, int pBlue)
Sets the color using the digital 8-bit per channel scheme (0 - 255 RGB triple).
Parameters
pRed
| The red color value. Should be between 0 and 255, inclusive. |
pGreen
| The green color value. Should be between 0 and 255, inclusive. |
pBlue
| The blue color value. Should be between 0 and 255, inclusive.
|
public
void
setColor
(float pRed, float pGreen, float pBlue)
Sets the color using the arithmetic scheme (0.0f - 1.0f RGB triple).
Parameters
pRed
| The red color value. Should be between 0.0 and 1.0, inclusive. |
pGreen
| The green color value. Should be between 0.0 and 1.0, inclusive. |
pBlue
| The blue color value. Should be between 0.0 and 1.0, inclusive.
|
public
void
setColorEnabled
(boolean pColorEnabled)