public class Background extends java.lang.Object implements IBackground
IUpdateHandler.IUpdateHandlerMatcher| Modifier | Constructor and Description |
|---|---|
protected |
Background() |
|
Background(Color pColor) |
|
Background(float pRed,
float pGreen,
float pBlue) |
|
Background(float pRed,
float pGreen,
float pBlue,
float pAlpha) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearBackgroundModifiers() |
boolean |
isColorEnabled() |
void |
onDraw(GLState pGLState,
Camera pCamera) |
void |
onUpdate(float pSecondsElapsed) |
void |
registerBackgroundModifier(IModifier<IBackground> pBackgroundModifier) |
void |
reset() |
void |
setColor(Color pColor) |
void |
setColor(float pRed,
float pGreen,
float pBlue)
Sets the color using the arithmetic scheme (0.0f - 1.0f RGB triple).
|
void |
setColor(float pRed,
float pGreen,
float pBlue,
float pAlpha)
Sets the color using the arithmetic scheme (0.0f - 1.0f RGBA quadruple).
|
void |
setColorEnabled(boolean pColorEnabled) |
boolean |
unregisterBackgroundModifier(IModifier<IBackground> pBackgroundModifier) |
protected Background()
public Background(float pRed,
float pGreen,
float pBlue)
public Background(float pRed,
float pGreen,
float pBlue,
float pAlpha)
public Background(Color pColor)
public void setColor(float pRed,
float pGreen,
float pBlue)
setColor in interface IBackgroundpRed - 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 setColor(float pRed,
float pGreen,
float pBlue,
float pAlpha)
setColor in interface IBackgroundpRed - 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(Color pColor)
setColor in interface IBackgroundpublic boolean isColorEnabled()
isColorEnabled in interface IBackgroundpublic void setColorEnabled(boolean pColorEnabled)
setColorEnabled in interface IBackgroundpublic void registerBackgroundModifier(IModifier<IBackground> pBackgroundModifier)
registerBackgroundModifier in interface IBackgroundpublic boolean unregisterBackgroundModifier(IModifier<IBackground> pBackgroundModifier)
unregisterBackgroundModifier in interface IBackgroundpublic void clearBackgroundModifiers()
clearBackgroundModifiers in interface IBackgroundpublic void onUpdate(float pSecondsElapsed)
onUpdate in interface IUpdateHandlerpublic void onDraw(GLState pGLState, Camera pCamera)
onDraw in interface IDrawHandlerpublic void reset()
reset in interface IUpdateHandler