Class SoDepthBufferElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoDepthBufferElement.DepthWriteFunctions
Depth 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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static int
getClassStackIndex()
Deprecated.As of Open Inventor 9300.void
pop(SoState state, SoElement prevTopElement)
Overridepop()
method to keep GL up to date.void
push(SoState state)
Overridepush()
method to keep GL up to date.static void
set(SoState state, boolean test, boolean write, SoDepthBufferElement.DepthWriteFunctions function, SbVec2f range)
Sets the depth buffer parameters.static void
set(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
getClassStackIndex
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
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. ] *
-
pop
public void pop(SoState state, SoElement prevTopElement)
Overridepop()
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
-
-