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, mZ
FLIP_X, FLIP_Y
ALL, 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, validate
public 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 Displayable
update
in class BaseDisplayObject
protected void drawStart(GLState glState)
drawStart
in class BaseDisplayObject
protected 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 BaseDisplayObject
protected void drawWireframe(GLState glState)
drawWireframe
in class BaseDisplayObject
public void dispose()
dispose
in interface Displayable
dispose
in class BaseDisplayObject
public void flipTextureCoordBuffer(int flips)
flips
- can be #DisplayObject.FLIP_X and/or #DisplayObject.FLIP_Y#DisplayObject
public void setXMLAttributes(XmlPullParser xmlParser, UIManager manager)
setXMLAttributes
in interface DisplayObject
setXMLAttributes
in class BaseDisplayObject
public void onAdded(Container parent)
BaseDisplayObject
onAdded
in interface DisplayObject
onAdded
in class BaseDisplayObject
protected void onTextureLoaded(Texture texture)