ClearNode
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSG_CLEARNODE
#define OSG_CLEARNODE 1
#include <osg/Group>
#include <osg/Vec4>
namespace osg {
class OSG_EXPORT ClearNode : public Group
{
public :
ClearNode();
ClearNode(const ClearNode& cs, const CopyOp& copyop=CopyOp::SHALLOW_COPY):
Group(cs,copyop),
_requiresClear(cs._requiresClear),
_clearColor(cs._clearColor),
_clearMask(cs._clearMask) {}
META_Node(osg, ClearNode);
inline void setRequiresClear(bool requiresClear) { _requiresClear = requiresClear; }
inline bool getRequiresClear() const { return _requiresClear; }
inline void setClearColor(const Vec4& color) { _clearColor = color; }
inline const Vec4& getClearColor() const { return _clearColor; }
inline void setClearMask(GLbitfield mask) { _clearMask = mask; }
inline GLbitfield getClearMask() const { return _clearMask; }
protected :
virtual ~ClearNode() {}
bool _requiresClear;
Vec4 _clearColor;
GLbitfield _clearMask;
};
}
#endif
Group
Vec4
osg::ClearNode::setClearColor
void setClearColor(const Vec4 &color)
Definition ClearNode:52
osg::ClearNode::getClearColor
const Vec4 & getClearColor() const
Definition ClearNode:55
osg::ClearNode::_requiresClear
bool _requiresClear
Definition ClearNode:68
osg::ClearNode::ClearNode
ClearNode(const ClearNode &cs, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
Definition ClearNode:36
osg::ClearNode::ClearNode
ClearNode()
osg::ClearNode::_clearColor
Vec4 _clearColor
Definition ClearNode:69
osg::ClearNode::getClearMask
GLbitfield getClearMask() const
Definition ClearNode:62
osg::ClearNode::setClearMask
void setClearMask(GLbitfield mask)
Definition ClearNode:59
osg::ClearNode::~ClearNode
virtual ~ClearNode()
Definition ClearNode:66
osg::ClearNode::_clearMask
GLbitfield _clearMask
Definition ClearNode:70
osg::ClearNode::META_Node
META_Node(osg, ClearNode)
osg::ClearNode::setRequiresClear
void setRequiresClear(bool requiresClear)
Definition ClearNode:46
osg::ClearNode::getRequiresClear
bool getRequiresClear() const
Definition ClearNode:49
osg::CopyOp
Definition CopyOp:41
osg::CopyOp::SHALLOW_COPY
@ SHALLOW_COPY
Definition CopyOp:47
osg::Group::Group
Group()
osg
Definition AlphaFunc:19
osg::Vec4
Vec4f Vec4
Definition Vec4:21
OSG_EXPORT
#define OSG_EXPORT
Definition osg/Export:39