Stores the current depth buffer parameters. More...
#include <Inventor/elements/SoDepthBufferElement.h>
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 } |
Public Member Functions | |
virtual void | print (FILE *fp) const |
virtual void | push (SoState *state) |
virtual void | pop (SoState *state, const SoElement *prevTopElement) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static void | set (SoState *state, const SbBool test, const SbBool write, const DepthWriteFunction function, const SbVec2f range) |
static void | set (SoState *state, SoDepthBuffer *depthBuffer, const SbBool test, const SbBool write, const DepthWriteFunction function, const SbVec2f range) |
static void | get (SoState *state, SbBool &test, SbBool &write, DepthWriteFunction &function, SbVec2f &range) |
This element stores the current depth buffer parameters used for rendering, including:
Depth function mode as defined by OpenGL.
static void SoDepthBufferElement::get | ( | SoState * | state, | |
SbBool & | test, | |||
SbBool & | write, | |||
DepthWriteFunction & | function, | |||
SbVec2f & | range | |||
) | [static] |
Returns current depth buffer parameters.
static int SoDepthBufferElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoElement.
static SoType SoDepthBufferElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoElement.
virtual void SoDepthBufferElement::pop | ( | SoState * | state, | |
const SoElement * | prevTopElement | |||
) | [virtual] |
Override pop() method to keep GL up to date.
virtual void SoDepthBufferElement::print | ( | FILE * | fp | ) | const [virtual] |
Prints element (for debugging).
Reimplemented from SoElement.
virtual void SoDepthBufferElement::push | ( | SoState * | state | ) | [virtual] |
static void SoDepthBufferElement::set | ( | SoState * | state, | |
SoDepthBuffer * | depthBuffer, | |||
const SbBool | test, | |||
const SbBool | write, | |||
const DepthWriteFunction | function, | |||
const SbVec2f | range | |||
) | [static] |
Sets the depth buffer parameters.
This method will (indirectly) call glDepthMask, glDepthFunc, glDepthRange with the new values
static void SoDepthBufferElement::set | ( | SoState * | state, | |
const SbBool | test, | |||
const SbBool | write, | |||
const DepthWriteFunction | function, | |||
const SbVec2f | range | |||
) | [static] |
Sets the depth buffer parameters.
This method will (indirectly) call glDepthMask, glDepthFunc, glDepthRange with the new values