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:
    • 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

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