Inheritance diagram for osg::ClearNode:
Public Member Functions | |
ClearNode () | |
ClearNode (const ClearNode &cs, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
META_Node (osg, ClearNode) | |
void | setRequiresClear (bool requiresClear) |
Enable/disable clearing via glClear. | |
bool | getRequiresClear () const |
Gets whether clearing is enabled or disabled. | |
void | setClearColor (const Vec4 &color) |
Sets the clear color. | |
const Vec4 & | getClearColor () const |
Returns the clear color. | |
void | setClearMask (GLbitfield mask) |
Set the clear mask used in glClear(..). | |
GLbitfield | getClearMask () const |
Get the clear mask. | |
Protected Member Functions | |
virtual | ~ClearNode () |
Protected Attributes | |
bool | _requiresClear |
Vec4 | _clearColor |
GLbitfield | _clearMask |
Use setClearColor to change the clear color, and setRequiresClear to disable/enable the call clearing. You might want to disable clearing if you perform your clear by drawing fullscreen geometry. If you do this, add child nodes to perform such drawing. The default StateSet associated with this node places children in render bin -1 to ensure that children are rendered prior to the rest of the scene graph.
|
|
|
|
|
|
|
Returns the clear color.
|
|
Get the clear mask.
|
|
Gets whether clearing is enabled or disabled.
|
|
|
|
Sets the clear color.
|
|
Set the clear mask used in glClear(..). Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT. |
|
Enable/disable clearing via glClear.
|
|
|
|
|
|
|