public class TexturedRectangle extends Primitive
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
texturePath_
Texture path.
|
ABSOLUTE_POSITION, ABSOLUTE_ROTATION, ABSOLUTE_SIZE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, color_, drawcondition, enableDCPos, enableDCRot, enableDCSize, halign, PRIMITIVE_TYPE_ELLIPSE, PRIMITIVE_TYPE_RECTANGLE, PRIMITIVE_TYPE_REGULARPOLYGON, PRIMITIVE_TYPE_TEXT, PRIMITIVE_TYPE_TEXTUREDRECTANGLE, PRIMITIVE_TYPE_TRIANGLE, renderinfos, type, valign
Constructor and Description |
---|
TexturedRectangle(java.lang.Object position,
java.lang.Object rotation,
java.lang.Object size,
int absFlags,
java.lang.Object c,
java.lang.String texturePath,
IParsedExpression drawcondition)
Creates a new TexturedRectangle drawable.
|
TexturedRectangle(java.lang.String texturePath)
Creates default TexturedRectangle.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTexturePath()
Returns the texture path.
|
void |
setType(int type)
Set the primitive type (Disabled).
|
enableAbsolutePosition, enableAbsoluteRotation, enableAbsoluteSize, flushRenderInfo, getColor, getDrawCondition, getHAlign, getRenderInfo, getType, getVAlign, isRelativePosition, isRelativeRotation, isRelativeSize, setColor, setDrawCondition, setHAlign, setRenderInfo, setVAlign
bindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, setPosition, setRotation, setSize
public TexturedRectangle(java.lang.String texturePath)
texturePath
- resource path of the texturepublic TexturedRectangle(java.lang.Object position, java.lang.Object rotation, java.lang.Object size, int absFlags, java.lang.Object c, java.lang.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 texture