Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages
osg::ClearNode Class Reference
ClearNode is a Group node which controls the clearing of the color and depth buffers at the start of each frame.
More...
Inheritance diagram for osg::ClearNode:
[legend]List of all members.
Detailed Description
ClearNode is a Group node which controls the clearing of the color and depth buffers at the start of each frame.
The earth sky by default is empty and simply holds the clear color of the background. However, if the uses wants to add their own clearing of the color and depth buffers then the children can be added, and the background clear turned off. The ClearNode by default has StateSet attached to it which sets the default ClearNode bin number to -1, so that all drawables below it are placed in a separate bin from the rest of the scene graph, and are rendered prior to standard opaque and transparent drawables.
Constructor & Destructor Documentation
osg::ClearNode::ClearNode |
( |
|
) |
|
|
osg::ClearNode::ClearNode |
( |
const ClearNode & |
es, |
|
|
const CopyOp & |
copyop = CopyOp::SHALLOW_COPY |
|
) |
[inline] |
|
virtual osg::ClearNode::~ClearNode |
( |
|
) |
[inline, protected, virtual] |
|
Member Function Documentation
const Vec4& osg::ClearNode::getClearColor |
( |
|
) |
const [inline] |
|
const bool osg::ClearNode::getRequiresClear |
( |
|
) |
const [inline] |
|
|
Gets the flag which control whether a glClear is required at the beginning of each frame.
|
osg::ClearNode::META_Node |
( |
osg |
, |
|
|
ClearNode |
|
|
) |
|
|
void osg::ClearNode::setClearColor |
( |
const Vec4 & |
color |
) |
[inline] |
|
void osg::ClearNode::setRequiresClear |
( |
const bool |
requiresClear |
) |
[inline] |
|
|
Sets the flag which control whether a glClear is required at the beginning of each frame.
|
Member Data Documentation
Vec4 osg::ClearNode::_clearColor [protected]
|
|
bool osg::ClearNode::_requiresClear [protected]
|
|
The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:55:26 2002 for the Open Scene Graph
by doxygen 1.2.16.