public class Rectangle extends RectangularShape
IUpdateHandler.IUpdateHandlerMatcherIDisposable.AlreadyDisposedExceptionITouchArea.ITouchAreaMatcher| Modifier and Type | Field and Description |
|---|---|
static int |
COLOR_INDEX |
protected IRectangleVertexBufferObject |
mRectangleVertexBufferObject |
static int |
RECTANGLE_SIZE |
static int |
VERTEX_INDEX_X |
static int |
VERTEX_INDEX_Y |
static int |
VERTEX_SIZE |
static VertexBufferObjectAttributes |
VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT |
static int |
VERTICES_PER_RECTANGLE |
mHeight, mWidthmBlendFunctionDestination, mBlendFunctionSource, mBlendingEnabled, mShaderProgrammChildren, mChildrenIgnoreUpdate, mChildrenSortPending, mChildrenVisible, mColor, mCullingEnabled, mDisposed, mIgnoreUpdate, mRotation, mRotationCenterX, mRotationCenterY, mScaleCenterX, mScaleCenterY, mScaleX, mScaleY, mSkewCenterX, mSkewCenterY, mSkewX, mSkewY, mTag, mVisible, mX, mY, mZIndexBLENDFUNCTION_DESTINATION_DEFAULT, BLENDFUNCTION_DESTINATION_PREMULTIPLYALPHA_DEFAULT, BLENDFUNCTION_SOURCE_DEFAULT, BLENDFUNCTION_SOURCE_PREMULTIPLYALPHA_DEFAULTTAG_INVALID| Constructor and Description |
|---|
Rectangle(float pX,
float pY,
float pWidth,
float pHeight,
IRectangleVertexBufferObject pRectangleVertexBufferObject) |
Rectangle(float pX,
float pY,
float pWidth,
float pHeight,
VertexBufferObjectManager pVertexBufferObjectManager)
Uses a default
HighPerformanceRectangleVertexBufferObject in DrawType.STATIC with the VertexBufferObjectAttributes: VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT. |
Rectangle(float pX,
float pY,
float pWidth,
float pHeight,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType)
Uses a default
HighPerformanceRectangleVertexBufferObject with the VertexBufferObjectAttributes: VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
draw(GLState pGLState,
Camera pCamera) |
IRectangleVertexBufferObject |
getVertexBufferObject() |
protected void |
onUpdateColor() |
protected void |
onUpdateVertices() |
protected void |
postDraw(GLState pGLState,
Camera pCamera) |
protected void |
preDraw(GLState pGLState,
Camera pCamera) |
collidesWith, contains, getHeight, getHeightScaled, getSceneCenterCoordinates, getSceneCenterCoordinates, getWidth, getWidthScaled, isCulled, reset, resetRotationCenter, resetScaleCenter, resetSkewCenter, setHeight, setSize, setWidthdispose, getBlendFunctionDestination, getBlendFunctionSource, getShaderProgram, getVertexBufferObjectManager, initBlendFunction, initBlendFunction, initBlendFunction, isBlendingEnabled, onAreaTouched, setBlendFunction, setBlendFunctionDestination, setBlendFunctionSource, setBlendingEnabled, setShaderProgramapplyRotation, applyScale, applySkew, applyTranslation, attachChild, callOnChildren, callOnChildren, clearEntityModifiers, clearUpdateHandlers, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, detachChild, detachChild, detachChild, detachChildren, detachChildren, detachSelf, finalize, getAlpha, getBlue, getChildByIndex, getChildByMatcher, getChildByTag, getChildCount, getColor, getEntityModifierCount, getFirstChild, getGreen, getLastChild, getLocalToParentTransformation, getLocalToSceneTransformation, getParent, getParentToLocalTransformation, getRed, getRotation, getRotationCenterX, getRotationCenterY, getScaleCenterX, getScaleCenterY, getScaleX, getScaleY, getSceneToLocalTransformation, getSkewCenterX, getSkewCenterY, getSkewX, getSkewY, getTag, getUpdateHandlerCount, getUserData, getX, getY, getZIndex, hasParent, isChildrenIgnoreUpdate, isChildrenVisible, isCullingEnabled, isDisposed, isIgnoreUpdate, isRotated, isRotatedOrScaledOrSkewed, isScaled, isSkewed, isVisible, onApplyTransformations, onAttached, onDetached, onDraw, onManagedDraw, onManagedUpdate, onUpdate, query, query, queryFirst, queryFirstForSubclass, queryForSubclass, queryForSubclass, registerEntityModifier, registerUpdateHandler, setAlpha, setBlue, setChildrenIgnoreUpdate, setChildrenVisible, setColor, setColor, setColor, setCullingEnabled, setGreen, setIgnoreUpdate, setParent, setPosition, setPosition, setRed, setRotation, setRotationCenter, setRotationCenterX, setRotationCenterY, setScale, setScale, setScaleCenter, setScaleCenterX, setScaleCenterY, setScaleX, setScaleY, setSkew, setSkew, setSkewCenter, setSkewCenterX, setSkewCenterY, setSkewX, setSkewY, setTag, setUserData, setVisible, setX, setY, setZIndex, sortChildren, sortChildren, sortChildren, toString, toString, unregisterEntityModifier, unregisterEntityModifiers, unregisterUpdateHandler, unregisterUpdateHandlersclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBlendFunctionDestination, getBlendFunctionSource, getShaderProgram, getVertexBufferObjectManager, isBlendingEnabled, setBlendFunction, setBlendFunctionDestination, setBlendFunctionSource, setBlendingEnabled, setShaderProgramattachChild, callOnChildren, callOnChildren, clearEntityModifiers, clearUpdateHandlers, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, detachChild, detachChild, detachChild, detachChildren, detachChildren, detachSelf, getAlpha, getBlue, getChildByIndex, getChildByMatcher, getChildByTag, getChildCount, getColor, getEntityModifierCount, getFirstChild, getGreen, getLastChild, getLocalToParentTransformation, getLocalToSceneTransformation, getParent, getParentToLocalTransformation, getRed, getRotation, getRotationCenterX, getRotationCenterY, getScaleCenterX, getScaleCenterY, getScaleX, getScaleY, getSceneToLocalTransformation, getSkewCenterX, getSkewCenterY, getSkewX, getSkewY, getTag, getUpdateHandlerCount, getUserData, getX, getY, getZIndex, hasParent, isChildrenIgnoreUpdate, isChildrenVisible, isCullingEnabled, isIgnoreUpdate, isRotated, isRotatedOrScaledOrSkewed, isScaled, isSkewed, isVisible, onAttached, onDetached, query, query, queryFirst, queryFirstForSubclass, queryForSubclass, queryForSubclass, registerEntityModifier, registerUpdateHandler, setAlpha, setBlue, setChildrenIgnoreUpdate, setChildrenVisible, setColor, setColor, setColor, setCullingEnabled, setGreen, setIgnoreUpdate, setParent, setPosition, setPosition, setRed, setRotation, setRotationCenter, setRotationCenterX, setRotationCenterY, setScale, setScale, setScaleCenter, setScaleCenterX, setScaleCenterY, setScaleX, setScaleY, setSkew, setSkew, setSkewCenter, setSkewCenterX, setSkewCenterY, setSkewX, setSkewY, setTag, setUserData, setVisible, setX, setY, setZIndex, sortChildren, sortChildren, sortChildren, toString, unregisterEntityModifier, unregisterEntityModifiers, unregisterUpdateHandler, unregisterUpdateHandlersonDrawonUpdatedispose, isDisposedconvertLocalToSceneCoordinates, convertSceneToLocalCoordinates, onAreaTouchedpublic static final int VERTEX_INDEX_X
public static final int VERTEX_INDEX_Y
public static final int COLOR_INDEX
public static final int VERTEX_SIZE
public static final int VERTICES_PER_RECTANGLE
public static final int RECTANGLE_SIZE
public static final VertexBufferObjectAttributes VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT
protected final IRectangleVertexBufferObject mRectangleVertexBufferObject
public Rectangle(float pX,
float pY,
float pWidth,
float pHeight,
VertexBufferObjectManager pVertexBufferObjectManager)
HighPerformanceRectangleVertexBufferObject in DrawType.STATIC with the VertexBufferObjectAttributes: VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT.public Rectangle(float pX,
float pY,
float pWidth,
float pHeight,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType)
HighPerformanceRectangleVertexBufferObject with the VertexBufferObjectAttributes: VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT.public Rectangle(float pX,
float pY,
float pWidth,
float pHeight,
IRectangleVertexBufferObject pRectangleVertexBufferObject)
public IRectangleVertexBufferObject getVertexBufferObject()
protected void onUpdateColor()
onUpdateColor in class Entityprotected void onUpdateVertices()
onUpdateVertices in class Shape