public class Shape extends BaseDisplayObject
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ATT_ASYNC |
protected static java.lang.String |
ATT_SOURCE |
protected ColorBuffer |
mColorBuffer |
protected Texture |
mTexture |
protected TextureCoordBuffer |
mTextureCoordBuffer |
protected TextureCoordBuffer |
mTextureCoordBufferScaled |
protected VertexBuffer |
mVertexBuffer |
static java.lang.String |
TAG |
ATT_ALPHA, ATT_ANIMATOR, ATT_BLEND_MODE, ATT_COLOR, ATT_DEBUG, ATT_ORIGIN_AT_CENTER, ATT_ROTATION, ATT_VISIBLE, mAlive, mAlpha, mAlphaTestEnabled, mAutoUpdateBounds, mBlendFunc, mBounds, mBypassCameraClipping, mColor, mDebugFlags, mFrameDuration, mHasTransformValues, mId, mInvalidateFlags, mManipulators, mMask, mMatrix, mNumManipulators, mOrigin, mParent, mPerspectiveEnabled, mPivot, mPosition, mRotation, mRotationVectorX, mRotationVectorY, mRotationVectorZ, mScale, mScene, mSceneSize, mSize, mSkew, mTransformMatrix, mTransformMatrixValues, mUIConstraint, mVisible, mZFLIP_X, FLIP_YALL, ALPHA, BLEND, BOUNDS, CACHE, CHILDREN, COLOR, DEPTH, FRAME, ORIGIN, PARENT, PARENT_BOUNDS, PERSPECTIVE, PIVOT, POSITION, ROTATION, SCALE, SIZE, SKEW, TEXTURE, TEXTURE_COORDS, TRANSFORM_MATRIX, VERTICES, VISIBILITY, VISUAL| Constructor and Description |
|---|
Shape() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
protected boolean |
drawChildren(GLState glState) |
protected void |
drawStart(GLState glState) |
protected void |
drawWireframe(GLState glState) |
void |
flipTextureCoordBuffer(int flips) |
ColorBuffer |
getColorBuffer() |
Texture |
getTexture() |
TextureCoordBuffer |
getTextureCoordBuffer() |
VertexBuffer |
getVertexBuffer() |
void |
onAdded(Container parent)
This is called after this object is added to a Container
|
protected void |
onTextureLoaded(Texture texture) |
void |
setColorBuffer(ColorBuffer buffer) |
void |
setTexture(Texture texture) |
protected boolean |
setTextureCoordBuffer(float[] values) |
void |
setTextureCoordBuffer(TextureCoordBuffer coords) |
void |
setVertexBuffer(VertexBuffer buffer) |
void |
setXMLAttributes(XmlPullParser xmlParser,
UIManager manager) |
boolean |
update(int deltaTime) |
protected void |
validateTextureCoordBuffer()
validate texture coords
|
addManipulator, draw, drawBounds, drawEnd, getAlpha, getBlendFunc, getBounds, getColor, getDebugFlags, getFps, getGlobalPosition, getHeight, getId, getInheritedBlendFunc, getInheritedColor, getManipulator, getMask, getMatrix, getNumManipulators, getObjectTree, getOrigin, getParent, getParentMatrix, getPivot, getPosition, getRotation, getScale, getScene, getSceneSize, getSize, getSkew, getUIConstraint, getWidth, getX, getY, getZ, globalToLocal, invalidate, invalidate, isAlive, isAlphaTestEnabled, isAutoUpdateBounds, isBypassCameraClipping, isOriginAtCenter, isPerspectiveEnabled, isVisible, localToGlobal, move, moveTo, onAddedToScene, onCreateChildren, onPreConcatParentMatrix, onRemoved, onRemovedFromScene, queueEvent, removeAllManipulators, removeFromParent, removeManipulator, rotate, setAlive, setAlpha, setAlphaTestEnabled, setAutoUpdateBounds, setBlendFunc, setBypassCameraClipping, setColor, setDebugFlags, setFps, setId, setMask, setOrigin, setOrigin, setOriginAtCenter, setPerspectiveEnabled, setPivot, setPivot, setPivotAtCenter, setPosition, setPosition, setRotation, setRotationVector, setScale, setScale, setSize, setSize, setSkew, setUIConstraint, setVisible, setX, setY, setZ, shouldDraw, toString, updateBounds, updateChildren, validatepublic static final java.lang.String TAG
protected static final java.lang.String ATT_ASYNC
protected static final java.lang.String ATT_SOURCE
protected VertexBuffer mVertexBuffer
protected Texture mTexture
protected TextureCoordBuffer mTextureCoordBuffer
protected TextureCoordBuffer mTextureCoordBufferScaled
protected ColorBuffer mColorBuffer
public void setVertexBuffer(VertexBuffer buffer)
public VertexBuffer getVertexBuffer()
public Texture getTexture()
public void setTexture(Texture texture)
texture - the texture to setpublic boolean update(int deltaTime)
update in interface Displayableupdate in class BaseDisplayObjectprotected void drawStart(GLState glState)
drawStart in class BaseDisplayObjectprotected void validateTextureCoordBuffer()
protected boolean setTextureCoordBuffer(float[] values)
public void setTextureCoordBuffer(TextureCoordBuffer coords)
public TextureCoordBuffer getTextureCoordBuffer()
public void setColorBuffer(ColorBuffer buffer)
public ColorBuffer getColorBuffer()
protected boolean drawChildren(GLState glState)
drawChildren in class BaseDisplayObjectprotected void drawWireframe(GLState glState)
drawWireframe in class BaseDisplayObjectpublic void dispose()
dispose in interface Displayabledispose in class BaseDisplayObjectpublic void flipTextureCoordBuffer(int flips)
flips - can be #DisplayObject.FLIP_X and/or #DisplayObject.FLIP_Y#DisplayObjectpublic void setXMLAttributes(XmlPullParser xmlParser,
UIManager manager)
setXMLAttributes in interface DisplayObjectsetXMLAttributes in class BaseDisplayObjectpublic void onAdded(Container parent)
BaseDisplayObjectonAdded in interface DisplayObjectonAdded in class BaseDisplayObjectprotected void onTextureLoaded(Texture texture)