public abstract class

Shape

extends Entity
implements IShape
java.lang.Object
   ↳ org.andengine.entity.Entity
     ↳ org.andengine.entity.shape.Shape
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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

Summary

[Expand]
Inherited Constants
From interface org.andengine.entity.shape.IShape
Fields
protected boolean mBlendingEnabled
protected int mDestinationBlendFunction
protected ShaderProgram mShaderProgram
protected int mSourceBlendFunction
[Expand]
Inherited Fields
From class org.andengine.entity.Entity
Public Constructors
Shape(float pX, float pY, ShaderProgram pShaderProgram)
Public Methods
void dispose()
int getDestinationBlendFunction()
ShaderProgram getShaderProgram()
int getSourceBlendFunction()
VertexBufferObjectManager getVertexBufferObjectManager()
boolean isBlendingEnabled()
boolean onAreaTouched(TouchEvent pSceneTouchEvent, float pTouchAreaLocalX, float pTouchAreaLocalY)
This method only fires if this Scene.ITouchArea is registered to the Scene via registerTouchArea(ITouchArea).
void reset()
void setBlendFunction(int pSourceBlendFunction, int pDestinationBlendFunction)
void setBlendingEnabled(boolean pBlendingEnabled)
void setShaderProgram(ShaderProgram pShaderProgram)
Protected Methods
void initBlendFunction(TextureOptions pTextureOptions)
void initBlendFunction(ITexture pTexture)
void initBlendFunction(ITextureRegion pTextureRegion)
abstract void onUpdateVertices()
void postDraw(GLState pGLState, Camera pCamera)
void preDraw(GLState pGLState, Camera pCamera)
[Expand]
Inherited Methods
From class org.andengine.entity.Entity
From class java.lang.Object
From interface org.andengine.engine.handler.IDrawHandler
From interface org.andengine.engine.handler.IUpdateHandler
From interface org.andengine.entity.IEntity
From interface org.andengine.entity.scene.Scene.ITouchArea
From interface org.andengine.entity.shape.IShape
From interface org.andengine.util.IDisposable

Fields

protected boolean mBlendingEnabled

protected int mDestinationBlendFunction

protected ShaderProgram mShaderProgram

protected int mSourceBlendFunction

Public Constructors

public Shape (float pX, float pY, ShaderProgram pShaderProgram)

Public Methods

public void dispose ()

public int getDestinationBlendFunction ()

public ShaderProgram getShaderProgram ()

public int getSourceBlendFunction ()

public VertexBufferObjectManager getVertexBufferObjectManager ()

public boolean isBlendingEnabled ()

public boolean onAreaTouched (TouchEvent pSceneTouchEvent, float pTouchAreaLocalX, float pTouchAreaLocalY)

This method only fires if this Scene.ITouchArea is registered to the Scene via registerTouchArea(ITouchArea).

Returns

public void reset ()

public void setBlendFunction (int pSourceBlendFunction, int pDestinationBlendFunction)

public void setBlendingEnabled (boolean pBlendingEnabled)

public void setShaderProgram (ShaderProgram pShaderProgram)

Protected Methods

protected void initBlendFunction (TextureOptions pTextureOptions)

protected void initBlendFunction (ITexture pTexture)

protected void initBlendFunction (ITextureRegion pTextureRegion)

protected abstract void onUpdateVertices ()

protected void postDraw (GLState pGLState, Camera pCamera)

Parameters
pGLState the currently active GLState i.e. to apply transformations to.
pCamera the currently active Camera i.e. to be used for culling.

protected void preDraw (GLState pGLState, Camera pCamera)

Parameters
pGLState the currently active GLState i.e. to apply transformations to.
pCamera the currently active Camera i.e. to be used for culling.