Class TexturedRectangle


  • public class TexturedRectangle
    extends Primitive
    • Field Detail

      • texturePath_

        protected java.lang.String texturePath_
        Texture path.
    • Constructor Detail

      • TexturedRectangle

        public TexturedRectangle​(java.lang.String texturePath)
        Creates default TexturedRectangle.
        Parameters:
        texturePath - resource path of the texture
      • TexturedRectangle

        public 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.
        Parameters:
        position - position or position-binding
        xrotation - xrotation or rotation-binding
        yrotation - yrotation or rotation-binding
        zrotation - zrotation or rotation-binding
        size - size or size-binding
        absFlags - flags for setting position, size and rotation as absolutes
        c - modulation color or binding
        texturePath - resource path of the texture
    • Method Detail

      • setType

        public void setType​(int type)
        Set the primitive type (Disabled).
        Overrides:
        setType in class Primitive
        Parameters:
        type - The type to set.
      • getTexturePath

        public java.lang.String getTexturePath()
        Returns the texture path.
        Returns:
        The texture path.