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