public class Mesh extends Shape
IUpdateHandler.IUpdateHandlerMatcherIDisposable.AlreadyDisposedExceptionITouchArea.ITouchAreaMatcher| Modifier and Type | Field and Description |
|---|---|
static int |
COLOR_INDEX |
protected IMeshVertexBufferObject |
mMeshVertexBufferObject |
static int |
VERTEX_INDEX_X |
static int |
VERTEX_INDEX_Y |
static int |
VERTEX_SIZE |
static VertexBufferObjectAttributes |
VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT |
mBlendFunctionDestination, 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 |
|---|
Mesh(float pX,
float pY,
float[] pBufferData,
int pVertexCount,
DrawMode pDrawMode,
VertexBufferObjectManager pVertexBufferObjectManager)
Uses a default
HighPerformanceMeshVertexBufferObject in DrawType.STATIC with the VertexBufferObjectAttributes: VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT. |
Mesh(float pX,
float pY,
float[] pBufferData,
int pVertexCount,
DrawMode pDrawMode,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType)
Uses a default
HighPerformanceMeshVertexBufferObject with the VertexBufferObjectAttributes: VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT. |
Mesh(float pX,
float pY,
int pVertexCount,
DrawMode pDrawMode,
IMeshVertexBufferObject pMeshVertexBufferObject) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
collidesWith(IShape pOtherShape) |
boolean |
contains(float pX,
float pY)
Deprecated.
|
protected void |
draw(GLState pGLState,
Camera pCamera) |
float[] |
getBufferData() |
IMeshVertexBufferObject |
getVertexBufferObject() |
protected void |
onUpdateColor() |
protected void |
onUpdateVertices() |
protected void |
postDraw(GLState pGLState,
Camera pCamera) |
protected void |
preDraw(GLState pGLState,
Camera pCamera) |
void |
setDrawMode(DrawMode pDrawMode) |
void |
setVertexCountToDraw(int pVertexCountToDraw) |
dispose, getBlendFunctionDestination, getBlendFunctionSource, getShaderProgram, getVertexBufferObjectManager, initBlendFunction, initBlendFunction, initBlendFunction, isBlendingEnabled, onAreaTouched, reset, 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, getSceneCenterCoordinates, getSceneCenterCoordinates, getSceneToLocalTransformation, getSkewCenterX, getSkewCenterY, getSkewX, getSkewY, getTag, getUpdateHandlerCount, getUserData, getX, getY, getZIndex, hasParent, isChildrenIgnoreUpdate, isChildrenVisible, isCulled, 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, waitattachChild, 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, getSceneCenterCoordinates, getSceneCenterCoordinates, getSceneToLocalTransformation, getSkewCenterX, getSkewCenterY, getSkewX, getSkewY, getTag, getUpdateHandlerCount, getUserData, getX, getY, getZIndex, hasParent, isChildrenIgnoreUpdate, isChildrenVisible, isCulled, 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, unregisterUpdateHandlersonDrawonUpdateisDisposedconvertLocalToSceneCoordinates, convertSceneToLocalCoordinatespublic 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 VertexBufferObjectAttributes VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT
protected final IMeshVertexBufferObject mMeshVertexBufferObject
public Mesh(float pX,
float pY,
float[] pBufferData,
int pVertexCount,
DrawMode pDrawMode,
VertexBufferObjectManager pVertexBufferObjectManager)
HighPerformanceMeshVertexBufferObject in DrawType.STATIC with the VertexBufferObjectAttributes: VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT.public Mesh(float pX,
float pY,
float[] pBufferData,
int pVertexCount,
DrawMode pDrawMode,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType)
HighPerformanceMeshVertexBufferObject with the VertexBufferObjectAttributes: VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT.public Mesh(float pX,
float pY,
int pVertexCount,
DrawMode pDrawMode,
IMeshVertexBufferObject pMeshVertexBufferObject)
public float[] getBufferData()
public void setVertexCountToDraw(int pVertexCountToDraw)
public void setDrawMode(DrawMode pDrawMode)
public IMeshVertexBufferObject getVertexBufferObject()
protected void onUpdateColor()
onUpdateColor in class Entityprotected void onUpdateVertices()
onUpdateVertices in class Shape@Deprecated
public boolean contains(float pX,
float pY)
public boolean collidesWith(IShape pOtherShape)