63 #include "StencilRefNode.hh" 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.
bool visible()
Is node visible (status == Active)?
PickTarget
What target to use for picking.
void leave(GLState &_state, const DrawModes::DrawMode &_drawmode)
restores original stencil behavior
void leavePick(GLState &_state, PickTarget _target, const DrawModes::DrawMode &_drawMode)
Do nothing in picking.
StencilRefNode(BaseNode *_parent=0, const std::string &_name="<StencilRefNode>")
Default constructor.
Namespace providing different geometric functions concerning angles.
void enter(GLState &_state, const DrawModes::DrawMode &_drawmode)
set stencil reference for all z-pass pixels
void setReference(GLuint _ref)
set stencil reference number