63 #include "StencilRefNode.hh"
70 namespace SceneGraph {
77 const std::string& _name)
86 const std::string& _name)
96 glPushAttrib (GL_STENCIL_BUFFER_BIT);
97 glStencilFunc (GL_ALWAYS, reference_, ~0);
98 glStencilOp (GL_KEEP, GL_KEEP, GL_REPLACE);
void enterPick(GLState &_state, PickTarget _target, const DrawModes::DrawMode &_drawMode)
Do nothing in picking.
Namespace providing different geometric functions concerning angles.
void leavePick(GLState &_state, PickTarget _target, const DrawModes::DrawMode &_drawMode)
Do nothing in picking.
PickTarget
What target to use for picking.
bool visible()
Is node visible (status == Active)?
void setReference(GLuint _ref)
set stencil reference number
void enter(GLState &_state, const DrawModes::DrawMode &_drawmode)
set stencil reference for all z-pass pixels
StencilRefNode(BaseNode *_parent=0, const std::string &_name="<StencilRefNode>")
Default constructor.
void leave(GLState &_state, const DrawModes::DrawMode &_drawmode)
restores original stencil behavior