Class StencilState


  • public class StencilState
    extends java.lang.Object
    Stencil states per face.
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Returns a value indicating whether this instance is equal to a specified object.
      CompareFunction getCompare()
      Gets the compare function used in stencil test
      StencilAction getDepthFailAction()
      Gets the stencil action when stencil test pass but depth test fails.
      StencilAction getFailAction()
      Gets the stencil action when stencil test fails.
      StencilAction getPassAction()
      Gets the stencil action when both stencil test and depth test passes.
      int hashCode()
      Returns the hash code for this instance.
      void setCompare​(CompareFunction value)
      Sets the compare function used in stencil test
      void setDepthFailAction​(StencilAction value)
      Sets the stencil action when stencil test pass but depth test fails.
      void setFailAction​(StencilAction value)
      Sets the stencil action when stencil test fails.
      void setPassAction​(StencilAction value)
      Sets the stencil action when both stencil test and depth test passes.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • 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
        Parameters:
        obj -
      • getCompare

        public CompareFunction getCompare()
        Gets the compare function used in stencil test
      • setCompare

        public void setCompare​(CompareFunction value)
        Sets the compare function used in stencil test
        Parameters:
        value - New value
      • getFailAction

        public StencilAction getFailAction()
        Gets the stencil action when stencil test fails.
      • setFailAction

        public void setFailAction​(StencilAction value)
        Sets the stencil action when stencil test fails.
        Parameters:
        value - New value
      • getDepthFailAction

        public StencilAction getDepthFailAction()
        Gets the stencil action when stencil test pass but depth test fails.
      • setDepthFailAction

        public void setDepthFailAction​(StencilAction value)
        Sets the stencil action when stencil test pass but depth test fails.
        Parameters:
        value - New value
      • getPassAction

        public StencilAction getPassAction()
        Gets the stencil action when both stencil test and depth test passes.
      • setPassAction

        public void setPassAction​(StencilAction value)
        Sets the stencil action when both stencil test and depth test passes.
        Parameters:
        value - New value
      • hashCode

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