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 Details

    • 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(since="9.3.0.0") public static int getClassStackIndex()
      Deprecated.
      As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)
      Returns the stack id for this element. ] *
    • pop

      public void pop(SoState state, SoElement prevTopElement)
      Override pop() method to keep GL up to date.
      Overrides:
      pop in class SoElement
    • push

      public void push(SoState state)
      Override push() method to keep GL up to date.
      Overrides:
      push in class SoElement
    • set

      public static void set(SoState state, SoDepthBuffer depthBuffer, 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