OpenSceneGraph 3.6.5
ClearNode
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2 *
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
12*/
13
14#ifndef OSG_CLEARNODE
15#define OSG_CLEARNODE 1
16
17#include <osg/Group>
18#include <osg/Vec4>
19
20namespace osg {
21
31{
32 public :
33
35
41
42
44
46 inline void setRequiresClear(bool requiresClear) { _requiresClear = requiresClear; }
47
49 inline bool getRequiresClear() const { return _requiresClear; }
50
52 inline void setClearColor(const Vec4& color) { _clearColor = color; }
53
55 inline const Vec4& getClearColor() const { return _clearColor; }
56
59 inline void setClearMask(GLbitfield mask) { _clearMask = mask; }
60
62 inline GLbitfield getClearMask() const { return _clearMask; }
63
64 protected :
65
66 virtual ~ClearNode() {}
67
70 GLbitfield _clearMask;
71};
72
73}
74
75#endif
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
Vec4f Vec4
Definition Vec4:21
void setClearColor(const Vec4 &color)
Sets the clear color.
Definition ClearNode:52
const Vec4 & getClearColor() const
Returns the clear color.
Definition ClearNode:55
bool _requiresClear
Definition ClearNode:68
ClearNode(const ClearNode &cs, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
Definition ClearNode:36
Vec4 _clearColor
Definition ClearNode:69
GLbitfield getClearMask() const
Get the clear mask.
Definition ClearNode:62
void setClearMask(GLbitfield mask)
Set the clear mask used in glClear(..).
Definition ClearNode:59
virtual ~ClearNode()
Definition ClearNode:66
GLbitfield _clearMask
Definition ClearNode:70
META_Node(osg, ClearNode)
void setRequiresClear(bool requiresClear)
Enable/disable clearing via glClear.
Definition ClearNode:46
bool getRequiresClear() const
Gets whether clearing is enabled or disabled.
Definition ClearNode:49
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
#define OSG_EXPORT
Definition Export:39

osg logo
Generated at Wed Jul 23 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.