Class SoDepthBufferElement


  • public class SoDepthBufferElement
    extends SoElement
    Stores the current depth buffer parameters. This element stores the current depth buffer parameters used for rendering, including:
    • Depth buffer test enabled,
    • Depth buffer writing enabled,
    • Depth buffer range, and
    • Depth comparison function.

    See Also:
    SoDepthBuffer
    • Method Detail

      • set

        public static void set​(SoState state,
                               boolean test,
                               boolean write,
                               SoDepthBufferElement.DepthWriteFunctions function,
                               SbVec2f range)
        Sets the depth buffer parameters. This method will (indirectly) call glDepthMask, glDepthFunc, glDepthRange with the new values
      • getClassStackIndex

        @Deprecated
        public static int getClassStackIndex()
        Deprecated.
        As of Open Inventor 9300. replaced by SoElement.getClassStackIndex(Class)
        Returns the stack id for this element. ] *