com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class ManualEntity

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable


    public class ManualEntity
    extends Entity
    implements java.io.Closeable
    A bridge from Entity to custom renderable entity Use this class to simplify the construction of rendering tasks and resource management.
    • Method Detail

      • getRenderGroup

        public RenderQueueGroupId getRenderGroup()
        Gets the render group of this object.
      • setRenderGroup

        public void setRenderGroup(RenderQueueGroupId value)
        Sets the render group of this object.
        Parameters:
        value - New value
      • getRenderPriority

        public int getRenderPriority()
        Gets the render priority, higher number will have higher priority to render in same group.
      • setRenderPriority

        public void setRenderPriority(int value)
        Sets the render priority, higher number will have higher priority to render in same group.
        Parameters:
        value - New value
      • getRenderState

        public RenderState getRenderState()
        Gets the render states used by this object.
      • setRenderState

        public void setRenderState(RenderState value)
        Gets the render states used by this object.
        Parameters:
        value - New value
      • getShader

        public ShaderProgram getShader()
        Gets the shader used by this object.
      • setShader

        public void setShader(ShaderProgram value)
        Gets the shader used by this object.
        Parameters:
        value - New value
      • getVertexBuffer

        public IVertexBuffer getVertexBuffer()
        Gets the vertex buffer.
      • setVertexBuffer

        public void setVertexBuffer(IVertexBuffer value)
        Gets the vertex buffer.
        Parameters:
        value - New value
      • getIndexBuffer

        public IIndexBuffer getIndexBuffer()
        Gets the index buffer, this can be null. If IndexBuffer is not specified, renderer will not render it in index mode.
      • setIndexBuffer

        public void setIndexBuffer(IIndexBuffer value)
        Gets the index buffer, this can be null. If IndexBuffer is not specified, renderer will not render it in index mode.
        Parameters:
        value - New value
      • getDrawOperation

        public DrawOperation getDrawOperation()
        Gets the draw operation to specify what primitive type to render.
      • setDrawOperation

        public void setDrawOperation(DrawOperation value)
        Gets the draw operation to specify what primitive type to render.
        Parameters:
        value - New value
      • close

        public void close()
                   throws java.io.IOException
        Dispose RenderState/Vertex buffer/index buffer Shader is not automatically disposed, user can override this to decide the resource dispose policy.
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException