public abstract class Shape extends Entity implements IShape
IUpdateHandler.IUpdateHandlerMatcherIDisposable.AlreadyDisposedExceptionITouchArea.ITouchAreaMatcher| Modifier and Type | Field and Description |
|---|---|
protected int |
mBlendFunctionDestination |
protected int |
mBlendFunctionSource |
protected boolean |
mBlendingEnabled |
protected ShaderProgram |
mShaderProgram |
mChildren, 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 |
|---|
Shape(float pX,
float pY,
ShaderProgram pShaderProgram) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
int |
getBlendFunctionDestination() |
int |
getBlendFunctionSource() |
ShaderProgram |
getShaderProgram() |
VertexBufferObjectManager |
getVertexBufferObjectManager() |
protected void |
initBlendFunction(ITexture pTexture) |
protected void |
initBlendFunction(ITextureRegion pTextureRegion) |
protected void |
initBlendFunction(TextureOptions pTextureOptions) |
boolean |
isBlendingEnabled() |
boolean |
onAreaTouched(TouchEvent pSceneTouchEvent,
float pTouchAreaLocalX,
float pTouchAreaLocalY)
This method only fires if this
ITouchArea is registered to the Scene via Scene.registerTouchArea(ITouchArea). |
protected abstract void |
onUpdateVertices() |
protected void |
postDraw(GLState pGLState,
Camera pCamera) |
protected void |
preDraw(GLState pGLState,
Camera pCamera) |
void |
reset() |
void |
setBlendFunction(int pBlendFunctionSource,
int pBlendFunctionDestination) |
void |
setBlendFunctionDestination(int pBlendFunctionDestination) |
void |
setBlendFunctionSource(int pBlendFunctionSource) |
void |
setBlendingEnabled(boolean pBlendingEnabled) |
void |
setShaderProgram(ShaderProgram pShaderProgram) |
applyRotation, applyScale, applySkew, applyTranslation, attachChild, callOnChildren, callOnChildren, clearEntityModifiers, clearUpdateHandlers, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, detachChild, detachChild, detachChild, detachChildren, detachChildren, detachSelf, draw, 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, onUpdateColor, 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, waitcollidesWith, getVertexBufferObjectattachChild, 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, unregisterUpdateHandlersonDrawonUpdateisDisposedcontains, convertLocalToSceneCoordinates, convertSceneToLocalCoordinatesprotected int mBlendFunctionSource
protected int mBlendFunctionDestination
protected boolean mBlendingEnabled
protected ShaderProgram mShaderProgram
public Shape(float pX,
float pY,
ShaderProgram pShaderProgram)
public boolean isBlendingEnabled()
isBlendingEnabled in interface IShapepublic void setBlendingEnabled(boolean pBlendingEnabled)
setBlendingEnabled in interface IShapepublic int getBlendFunctionSource()
getBlendFunctionSource in interface IShapepublic void setBlendFunctionSource(int pBlendFunctionSource)
setBlendFunctionSource in interface IShapepublic int getBlendFunctionDestination()
getBlendFunctionDestination in interface IShapepublic void setBlendFunctionDestination(int pBlendFunctionDestination)
setBlendFunctionDestination in interface IShapepublic void setBlendFunction(int pBlendFunctionSource,
int pBlendFunctionDestination)
setBlendFunction in interface IShapepublic ShaderProgram getShaderProgram()
getShaderProgram in interface IShapepublic void setShaderProgram(ShaderProgram pShaderProgram)
setShaderProgram in interface IShapepublic VertexBufferObjectManager getVertexBufferObjectManager()
getVertexBufferObjectManager in interface IShapeprotected abstract void onUpdateVertices()
public boolean onAreaTouched(TouchEvent pSceneTouchEvent, float pTouchAreaLocalX, float pTouchAreaLocalY)
ITouchAreaITouchArea is registered to the Scene via Scene.registerTouchArea(ITouchArea).onAreaTouched in interface ITouchAreatrue if the event was handled (that means IOnAreaTouchListener of the Scene will not be fired!), otherwise false.public void reset()
reset in interface IUpdateHandlerreset in class Entitypublic void dispose()
dispose in interface IDisposabledispose in class Entityprotected void initBlendFunction(ITextureRegion pTextureRegion)
protected void initBlendFunction(ITexture pTexture)
protected void initBlendFunction(TextureOptions pTextureOptions)