com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class RenderState

  • java.lang.Object
    • com.aspose.threed.RenderState
  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Comparable<RenderState>


    public class RenderState
    extends java.lang.Object
    implements java.io.Closeable, java.lang.Comparable<RenderState>
    Render state used by IRenderable
    • Method Detail

      • equals

        public boolean equals(java.lang.Object obj)
        Returns a value indicating whether this instance is equal to a specified object.
        Overrides:
        equals in class java.lang.Object
      • getBlend

        public boolean getBlend()
        Enable or disable the fragment blending.
      • setBlend

        public void setBlend(boolean value)
        Enable or disable the fragment blending.
        Parameters:
        value - New value
      • getSourceBlendFactor

        public BlendFactor getSourceBlendFactor()
        Gets how the color is blended.
      • setSourceBlendFactor

        public void setSourceBlendFactor(BlendFactor value)
        Sets how the color is blended.
        Parameters:
        value - New value
      • getDestinationBlendFactor

        public BlendFactor getDestinationBlendFactor()
        Gets how the color is blended.
      • setDestinationBlendFactor

        public void setDestinationBlendFactor(BlendFactor value)
        Sets how the color is blended.
        Parameters:
        value - New value
      • getCullFace

        public boolean getCullFace()
        Enable or disable cull face
      • setCullFace

        public void setCullFace(boolean value)
        Enable or disable cull face
        Parameters:
        value - New value
      • getCullFaceMode

        public int getCullFaceMode()
        Gets which face will be culled.
      • setCullFaceMode

        public void setCullFaceMode(int value)
        Sets which face will be culled.
        Parameters:
        value - New value
      • getFrontFace

        public FrontFace getFrontFace()
        Gets which order is front face.
      • setFrontFace

        public void setFrontFace(FrontFace value)
        Sets which order is front face.
        Parameters:
        value - New value
      • getDepthTest

        public boolean getDepthTest()
        Enable or disable the depth test.
      • setDepthTest

        public void setDepthTest(boolean value)
        Enable or disable the depth test.
        Parameters:
        value - New value
      • getDepthMask

        public boolean getDepthMask()
        Enable or disable the depth writing.
      • setDepthMask

        public void setDepthMask(boolean value)
        Enable or disable the depth writing.
        Parameters:
        value - New value
      • getDepthFunction

        public CompareFunction getDepthFunction()
        Gets the compare function used in depth test
      • setDepthFunction

        public void setDepthFunction(CompareFunction value)
        Sets the compare function used in depth test
        Parameters:
        value - New value
      • getStencilTest

        public boolean getStencilTest()
        Enable or disable the stencil test.
      • setStencilTest

        public void setStencilTest(boolean value)
        Enable or disable the stencil test.
        Parameters:
        value - New value
      • getStencilReference

        public int getStencilReference()
        Gets the reference value for the stencil test.
      • setStencilReference

        public void setStencilReference(int value)
        Sets the reference value for the stencil test.
        Parameters:
        value - New value
      • getStencilMask

        public int getStencilMask()
        Gets the mask that is ANDed with the both reference and stored stencil value when test is done.
      • setStencilMask

        public void setStencilMask(int value)
        Sets the mask that is ANDed with the both reference and stored stencil value when test is done.
        Parameters:
        value - New value
      • getStencilFrontFace

        public StencilState getStencilFrontFace()
        Gets the stencil state for front face.
      • getStencilBackFace

        public StencilState getStencilBackFace()
        Gets the stencil state for back face.
      • getScissorTest

        public boolean getScissorTest()
        Enable or disable scissor test
      • setScissorTest

        public void setScissorTest(boolean value)
        Enable or disable scissor test
        Parameters:
        value - New value
      • getScissorBox

        public java.awt.Rectangle getScissorBox()
        Gets the scissor box
      • setScissorBox

        public void setScissorBox(java.awt.Rectangle value)
        Sets the scissor box
        Parameters:
        value - New value
      • getPolygonMode

        public PolygonMode getPolygonMode()
        Gets the polygon's render mode.
      • setPolygonMode

        public void setPolygonMode(PolygonMode value)
        Sets the polygon's render mode.
        Parameters:
        value - New value
      • compareTo

        public int compareTo(RenderState other)
        Compare the render state with another instance
        Specified by:
        compareTo in interface java.lang.Comparable<RenderState>
        Parameters:
        other -
      • hashCode

        public int hashCode()
        Returns the hash code for this instance.
        Overrides:
        hashCode in class java.lang.Object
      • close

        public void close()
        Dispose the RenderState and release all internal resources.
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface java.lang.AutoCloseable