public class TexturedRectangle extends Primitive
ABSOLUTE_POSITION, ABSOLUTE_ROTATION, ABSOLUTE_SIZE, PRIMITIVE_TYPE_ELLIPSE, PRIMITIVE_TYPE_RECTANGLE, PRIMITIVE_TYPE_REGULARPOLYGON, PRIMITIVE_TYPE_TEXT, PRIMITIVE_TYPE_TEXTUREDRECTANGLE, PRIMITIVE_TYPE_TRIANGLE
Constructor and Description |
---|
TexturedRectangle(Object position,
Object rotation,
Object size,
int absFlags,
Object c,
String texturePath,
IParsedExpression drawcondition)
Creates a new TexturedRectangle drawable.
|
TexturedRectangle(String texturePath)
Creates default TexturedRectangle.
|
Modifier and Type | Method and Description |
---|---|
String |
getTexturePath()
Returns the texture path.
|
void |
setType(int type)
Set the primitive type (Disabled).
|
enableAbsolutePosition, enableAbsoluteRotation, enableAbsoluteSize, flushRenderInfo, getColor, getDrawCondition, getRenderInfo, getType, isRelativePosition, isRelativeRotation, isRelativeSize, setColor, setDrawCondition, setRenderInfo
bindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, setPosition, setRotation, setSize
public TexturedRectangle(String texturePath)
texturePath
- resource path of the texturepublic TexturedRectangle(Object position, Object rotation, Object size, int absFlags, Object c, String texturePath, IParsedExpression drawcondition)
position
- position or position-bindingxrotation
- xrotation or rotation-bindingyrotation
- yrotation or rotation-bindingzrotation
- zrotation or rotation-bindingsize
- size or size-bindingabsFlags
- flags for setting position, size and rotation as absolutesc
- modulation color or bindingtexturePath
- resource path of the textureCopyright © 2012. All Rights Reserved.