Class SoDepthBufferElement
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.elements.SoElement
com.openinventor.inventor.elements.SoDepthBufferElement
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDepth function mode as defined by OpenGL.Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Method Summary
Modifier and TypeMethodDescriptionstatic intDeprecated.As of Open Inventor 9.3.0.0.voidOverridepop()method to keep GL up to date.voidOverridepush()method to keep GL up to date.static voidset(SoState state, boolean test, boolean write, SoDepthBufferElement.DepthWriteFunctions function, SbVec2f range) Sets the depth buffer parameters.static voidset(SoState state, SoDepthBuffer depthBuffer, boolean test, boolean write, SoDepthBufferElement.DepthWriteFunctions function, SbVec2f range) Sets the depth buffer parameters.Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndexMethods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
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.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] * -
pop
Overridepop()method to keep GL up to date. -
push
Overridepush()method to keep GL up to date. -
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
-