Stores the current depth buffer parameters.
More...
#include <Inventor/elements/SoDepthBufferElement.h>
Inheritance diagram for SoDepthBufferElement:Public Types | |
| enum | DepthWriteFunction { NEVER = SbEnums::COMP_FUNC_NEVER , LESS = SbEnums::COMP_FUNC_LESS , EQUAL = SbEnums::COMP_FUNC_EQUAL , LEQUAL = SbEnums::COMP_FUNC_LESS_EQUAL , GREATER = SbEnums::COMP_FUNC_GREATER , NOTEQUAL = SbEnums::COMP_FUNC_NOT_EQUAL , GEQUAL = SbEnums::COMP_FUNC_GREATER_EQUAL , ALWAYS = SbEnums::COMP_FUNC_ALWAYS } |
| Depth function mode as defined by OpenGL. More... | |
Public Member Functions | |
| virtual void | print (FILE *fp) const |
| Prints element (for debugging). | |
| virtual void | push (SoState *state) |
| Override push() method to keep GL up to date. | |
| virtual void | pop (SoState *state, const SoElement *prevTopElement) |
| Override pop() method to keep GL up to date. | |
Public Member Functions inherited from SoElement | |
| virtual SoType | getTypeId () const |
| Returns type identifier for element instance. | |
Public Member Functions inherited from SoTypedObject | |
| SbBool | isOfType (const SoType &type) const |
| Returns TRUE if this object is of the type specified in type or is derived from that type. | |
| template<typename TypedObjectClass> | |
| SbBool | isOfType () const |
| Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class. | |
Static Public Member Functions | |
| static SoType | getClassTypeId () |
| Returns the type identifier for this class. | |
| static int | getClassStackIndex () |
| Returns the stack id for this element. | |
| static void | set (SoState *state, const SbBool test, const SbBool write, const DepthWriteFunction function, const SbVec2f range) |
| Sets the depth buffer parameters. | |
| static void | set (SoState *state, SoDepthBuffer *depthBuffer, const SbBool test, const SbBool write, const DepthWriteFunction function, const SbVec2f range) |
| Sets the depth buffer parameters. | |
| static void | get (SoState *state, SbBool &test, SbBool &write, DepthWriteFunction &function, SbVec2f &range) |
| Returns current depth buffer parameters. | |
Static Public Member Functions inherited from SoElement | |
| static SoType | getClassTypeId () |
| Returns type identifier for SoElement class. | |
Static Public Member Functions inherited from SoTypedObject | |
| static SoType | getClassTypeId () |
| Returns the type identifier for this class. | |
Stores the current depth buffer parameters.
This element stores the current depth buffer parameters used for rendering, including:
Definition at line 50 of file SoDepthBufferElement.h.
Depth function mode as defined by OpenGL.
Definition at line 58 of file SoDepthBufferElement.h.
|
static |
Returns current depth buffer parameters.
|
static |
Returns the stack id for this element.
|
static |
Returns the type identifier for this class.
|
virtual |
Override pop() method to keep GL up to date.
Reimplemented from SoElement.
|
virtual |
Prints element (for debugging).
Reimplemented from SoElement.
|
virtual |
|
static |
Sets the depth buffer parameters.
This method will (indirectly) call glDepthMask, glDepthFunc, glDepthRange with the new values
|
static |
Sets the depth buffer parameters.
This method will (indirectly) call glDepthMask, glDepthFunc, glDepthRange with the new values