public class

ColorBackground

extends BaseBackground
java.lang.Object
   ↳ org.anddev.andengine.entity.scene.background.BaseBackground
     ↳ org.anddev.andengine.entity.scene.background.ColorBackground
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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

Summary

Public Constructors
ColorBackground(float pRed, float pGreen, float pBlue)
ColorBackground(float pRed, float pGreen, float pBlue, float pAlpha)
Protected Constructors
ColorBackground()
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)
[Expand]
Inherited Methods
From class org.anddev.andengine.entity.scene.background.BaseBackground
From class java.lang.Object
From interface org.anddev.andengine.engine.handler.IUpdateHandler
From interface org.anddev.andengine.entity.scene.background.IBackground
From interface org.anddev.andengine.opengl.IDrawable

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 onDraw (GL10 pGL, Camera pCamera)

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)