public abstract class

RectangularShape

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

Class Overview

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

Summary

[Expand]
Inherited Constants
From class org.anddev.andengine.entity.shape.Shape
Fields
protected float mBaseHeight
protected float mBaseWidth
protected float mHeight
protected final VertexBuffer mVertexBuffer
protected float mWidth
[Expand]
Inherited Fields
From class org.anddev.andengine.entity.shape.Shape
From class org.anddev.andengine.entity.Entity
Public Constructors
RectangularShape(float pX, float pY, float pWidth, float pHeight, VertexBuffer pVertexBuffer)
Public Methods
boolean collidesWith(IShape pOtherShape)
boolean contains(float pX, float pY)
float getBaseHeight()
float getBaseWidth()
float getHeight()
float[] getSceneCenterCoordinates()
VertexBuffer getVertexBuffer()
float getWidth()
void reset()
void setBaseSize()
void setHeight(float pHeight)
void setSize(float pWidth, float pHeight)
void setWidth(float pWidth)
Protected Methods
void drawVertices(GL10 pGL, Camera pCamera)
boolean isCulled(Camera pCamera)
Will only be performed if isCullingEnabled() is true.
[Expand]
Inherited Methods
From class org.anddev.andengine.entity.shape.Shape
From class org.anddev.andengine.entity.Entity
From class java.lang.Object
From interface org.anddev.andengine.engine.handler.IUpdateHandler
From interface org.anddev.andengine.entity.IEntity
From interface org.anddev.andengine.entity.scene.Scene.ITouchArea
From interface org.anddev.andengine.entity.shape.IShape
From interface org.anddev.andengine.opengl.IDrawable

Fields

protected float mBaseHeight

protected float mBaseWidth

protected float mHeight

protected final VertexBuffer mVertexBuffer

protected float mWidth

Public Constructors

public RectangularShape (float pX, float pY, float pWidth, float pHeight, VertexBuffer pVertexBuffer)

Public Methods

public boolean collidesWith (IShape pOtherShape)

public boolean contains (float pX, float pY)

public float getBaseHeight ()

public float getBaseWidth ()

public float getHeight ()

public float[] getSceneCenterCoordinates ()

public VertexBuffer getVertexBuffer ()

public float getWidth ()

public void reset ()

public void setBaseSize ()

public void setHeight (float pHeight)

public void setSize (float pWidth, float pHeight)

public void setWidth (float pWidth)

Protected Methods

protected void drawVertices (GL10 pGL, Camera pCamera)

protected boolean isCulled (Camera pCamera)

Will only be performed if isCullingEnabled() is true.

Returns
  • true when this object is visible by the Camera, false otherwise.