public class

Background

extends Object
implements IBackground
java.lang.Object
   ↳ org.andengine.entity.scene.background.Background
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

Summary

Public Constructors
Background(float pRed, float pGreen, float pBlue)
Background(float pRed, float pGreen, float pBlue, float pAlpha)
Background(Color pColor)
Protected Constructors
Background()
Public Methods
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, float pAlpha)
Sets the color using the arithmetic scheme (0.0f - 1.0f RGBA quadruple).
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)
boolean unregisterBackgroundModifier(IModifier<IBackground> pBackgroundModifier)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.andengine.engine.handler.IDrawHandler
From interface org.andengine.engine.handler.IUpdateHandler
From interface org.andengine.entity.scene.background.IBackground

Public Constructors

public Background (float pRed, float pGreen, float pBlue)

public Background (float pRed, float pGreen, float pBlue, float pAlpha)

public Background (Color pColor)

Protected Constructors

protected Background ()

Public Methods

public void clearBackgroundModifiers ()

public boolean isColorEnabled ()

public void onDraw (GLState pGLState, Camera pCamera)

public void onUpdate (float pSecondsElapsed)

public void registerBackgroundModifier (IModifier<IBackground> pBackgroundModifier)

public void reset ()

public void setColor (Color pColor)

public void setColor (float pRed, float pGreen, float pBlue, float pAlpha)

Sets the color using the arithmetic scheme (0.0f - 1.0f RGBA 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 (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)

public boolean unregisterBackgroundModifier (IModifier<IBackground> pBackgroundModifier)