public class Line extends Shape
IUpdateHandler.IUpdateHandlerMatcherIDisposable.AlreadyDisposedExceptionITouchArea.ITouchAreaMatcher| Modifier and Type | Field and Description |
|---|---|
static int |
COLOR_INDEX |
static int |
LINE_SIZE |
static float |
LINE_WIDTH_DEFAULT |
protected ILineVertexBufferObject |
mLineVertexBufferObject |
protected float |
mLineWidth |
protected float |
mX2 |
protected float |
mY2 |
static int |
VERTEX_INDEX_X |
static int |
VERTEX_INDEX_Y |
static int |
VERTEX_SIZE |
static VertexBufferObjectAttributes |
VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT |
static int |
VERTICES_PER_LINE |
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 |
|---|
Line(float pX1,
float pY1,
float pX2,
float pY2,
float pLineWidth,
ILineVertexBufferObject pLineVertexBufferObject) |
Line(float pX1,
float pY1,
float pX2,
float pY2,
float pLineWidth,
VertexBufferObjectManager pVertexBufferObjectManager)
Uses a default
HighPerformanceLineVertexBufferObject in DrawType.STATIC with the VertexBufferObjectAttributes: VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT. |
Line(float pX1,
float pY1,
float pX2,
float pY2,
float pLineWidth,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType) |
Line(float pX1,
float pY1,
float pX2,
float pY2,
VertexBufferObjectManager pVertexBufferObjectManager)
Uses a default
HighPerformanceLineVertexBufferObject in DrawType.STATIC with the VertexBufferObjectAttributes: VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT. |
Line(float pX1,
float pY1,
float pX2,
float pY2,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType)
Uses a default
HighPerformanceLineVertexBufferObject with the VertexBufferObjectAttributes: VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT. |
| 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 |
getLineWidth() |
float[] |
getSceneCenterCoordinates() |
float[] |
getSceneCenterCoordinates(float[] pReuse) |
ILineVertexBufferObject |
getVertexBufferObject() |
float |
getX()
|
float |
getX1() |
float |
getX2() |
float |
getY()
Deprecated.
|
float |
getY1() |
float |
getY2() |
boolean |
isCulled(Camera pCamera)
Will only be performed if
IEntity.isCullingEnabled() is true. |
protected void |
onUpdateColor() |
protected void |
onUpdateVertices() |
protected void |
postDraw(GLState pGLState,
Camera pCamera) |
protected void |
preDraw(GLState pGLState,
Camera pCamera) |
void |
setLineWidth(float pLineWidth) |
void |
setPosition(float pX,
float pY)
Deprecated.
|
void |
setPosition(float pX1,
float pY1,
float pX2,
float pY2) |
void |
setX(float pX)
Deprecated.
|
void |
setY(float pY)
Deprecated.
|
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, getSceneToLocalTransformation, getSkewCenterX, getSkewCenterY, getSkewX, getSkewY, getTag, getUpdateHandlerCount, getUserData, 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, setRed, setRotation, setRotationCenter, setRotationCenterX, setRotationCenterY, setScale, setScale, setScaleCenter, setScaleCenterX, setScaleCenterY, setScaleX, setScaleY, setSkew, setSkew, setSkewCenter, setSkewCenterX, setSkewCenterY, setSkewX, setSkewY, setTag, setUserData, setVisible, 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, getSceneToLocalTransformation, getSkewCenterX, getSkewCenterY, getSkewX, getSkewY, getTag, getUpdateHandlerCount, getUserData, 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, setRed, setRotation, setRotationCenter, setRotationCenterX, setRotationCenterY, setScale, setScale, setScaleCenter, setScaleCenterX, setScaleCenterY, setScaleX, setScaleY, setSkew, setSkew, setSkewCenter, setSkewCenterX, setSkewCenterY, setSkewX, setSkewY, setTag, setUserData, setVisible, setZIndex, sortChildren, sortChildren, sortChildren, toString, unregisterEntityModifier, unregisterEntityModifiers, unregisterUpdateHandler, unregisterUpdateHandlersonDrawonUpdateisDisposedconvertLocalToSceneCoordinates, convertSceneToLocalCoordinatespublic static final float LINE_WIDTH_DEFAULT
public 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_LINE
public static final int LINE_SIZE
public static final VertexBufferObjectAttributes VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT
protected float mX2
protected float mY2
protected float mLineWidth
protected final ILineVertexBufferObject mLineVertexBufferObject
public Line(float pX1,
float pY1,
float pX2,
float pY2,
VertexBufferObjectManager pVertexBufferObjectManager)
HighPerformanceLineVertexBufferObject in DrawType.STATIC with the VertexBufferObjectAttributes: VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT.public Line(float pX1,
float pY1,
float pX2,
float pY2,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType)
HighPerformanceLineVertexBufferObject with the VertexBufferObjectAttributes: VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT.public Line(float pX1,
float pY1,
float pX2,
float pY2,
float pLineWidth,
VertexBufferObjectManager pVertexBufferObjectManager)
HighPerformanceLineVertexBufferObject in DrawType.STATIC with the VertexBufferObjectAttributes: VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT.public Line(float pX1,
float pY1,
float pX2,
float pY2,
float pLineWidth,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType)
public Line(float pX1,
float pY1,
float pX2,
float pY2,
float pLineWidth,
ILineVertexBufferObject pLineVertexBufferObject)
@Deprecated public float getX()
@Deprecated public float getY()
public float getX1()
public float getY1()
public float getX2()
public float getY2()
public float getLineWidth()
public void setLineWidth(float pLineWidth)
@Deprecated public void setX(float pX)
setPosition(float, float, float, float).@Deprecated public void setY(float pY)
setPosition(float, float, float, float).@Deprecated
public void setPosition(float pX,
float pY)
setPosition(float, float, float, float).setPosition in interface IEntitysetPosition in class Entitypublic void setPosition(float pX1,
float pY1,
float pX2,
float pY2)
public ILineVertexBufferObject getVertexBufferObject()
public boolean isCulled(Camera pCamera)
IEntityIEntity.isCullingEnabled() is true.protected void onUpdateColor()
onUpdateColor in class Entityprotected void onUpdateVertices()
onUpdateVertices in class Shapepublic float[] getSceneCenterCoordinates()
getSceneCenterCoordinates in interface IEntitygetSceneCenterCoordinates in class Entitypublic float[] getSceneCenterCoordinates(float[] pReuse)
getSceneCenterCoordinates in interface IEntitygetSceneCenterCoordinates in class EntitypReuse - must be of length 2.pReuse as a convenience.@Deprecated
public boolean contains(float pX,
float pY)
public boolean collidesWith(IShape pOtherShape)