openscenegraph
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
36 ClearNode(const ClearNode& cs, const CopyOp& copyop=CopyOp::SHALLOW_COPY):
37 Group(cs,copyop),
38 _requiresClear(cs._requiresClear),
39 _clearColor(cs._clearColor),
40 _clearMask(cs._clearMask) {}
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
Definition ClearNode:31
void setClearColor(const Vec4 &color)
Definition ClearNode:52
const Vec4 & getClearColor() const
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
Definition ClearNode:62
void setClearMask(GLbitfield mask)
Definition ClearNode:59
virtual ~ClearNode()
Definition ClearNode:66
GLbitfield _clearMask
Definition ClearNode:70
META_Node(osg, ClearNode)
void setRequiresClear(bool requiresClear)
Definition ClearNode:46
bool getRequiresClear() const
Definition ClearNode:49
Definition CopyOp:41
Definition Group:29
Definition Vec4f:28
author: Julien Valentin 2017 (mp3butcher@hotmail.com)
Definition AlphaFunc:19
#define OSG_EXPORT
Definition osg/Export:39