SmallChange
1.0.0
A collection of extensions to Coin3D
|
The SmDepthBuffer class is a node used to control the GL depth buffer. More...
#include <SmDepthBuffer.h>
Public Types | |
enum | Func { NEVER = GLDepthBufferElement::NEVER , ALWAYS = GLDepthBufferElement::ALWAYS , LESS = GLDepthBufferElement::LESS , LEQUAL = GLDepthBufferElement::LEQUAL , EQUAL = GLDepthBufferElement::EQUAL , GEQUAL = GLDepthBufferElement::GEQUAL , GREATER = GLDepthBufferElement::GREATER , NOTEQUAL = GLDepthBufferElement::NOTEQUAL } |
Public Member Functions | |
SmDepthBuffer (void) | |
virtual void | GLRender (SoGLRenderAction *action) |
Static Public Member Functions | |
static void | initClass (void) |
Public Attributes | |
SoSFBool | clearNow |
SoSFBool | enable |
SoSFEnum | func |
Protected Member Functions | |
virtual | ~SmDepthBuffer () |
The SmDepthBuffer class is a node used to control the GL depth buffer.
It is basically a direct mapping of glDepthFunc(). In addition it is possible to enable/disable depth buffer and clear the depth buffer when the node is traversed.
Enumeration for the various depth functions.
SmDepthBuffer::SmDepthBuffer | ( | void | ) |
Constructor.
|
protectedvirtual |
Destructor.
|
virtual |
Coin method.
SoSFFloat SmDepthBuffer::clearNow |
If TRUE, clear buffer when node is traversed. Default is FALSE.
SoSFBool SmDepthBuffer::enable |
Enable depth buffer writes. Defaults to TRUE.
SoSFEnum SmDepthBuffer::func |
Which depth function to use. Defaults to LESS.