openscenegraph
TexGenNode
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_TexGenNode
15#define OSG_TexGenNode 1
16
17#include <osg/Group>
18#include <osg/TexGen>
19
20namespace osg {
21
24{
25
26 public:
27
30
31 TexGenNode(const TexGenNode& tgb, const CopyOp& copyop=CopyOp::SHALLOW_COPY);
32
34
35
37 {
39 ABSOLUTE_RF
40 };
41
45
47 ReferenceFrame getReferenceFrame() const { return _referenceFrame; }
48
50 void setTextureUnit(unsigned int textureUnit) { _textureUnit = textureUnit; }
51
52 unsigned int getTextureUnit() const { return _textureUnit; }
53
55 void setTexGen(TexGen* texgen);
56
58 inline TexGen* getTexGen() { return _texgen.get(); }
59
61 inline const TexGen* getTexGen() const { return _texgen.get(); }
62
64 virtual void setThreadSafeRefUnref(bool threadSafe);
65
66 protected:
67
68 virtual ~TexGenNode();
69
70 unsigned int _textureUnit;
72
74};
75
76}
77
78#endif
Definition CopyOp:41
Definition Group:29
Definition TexGenNode:24
unsigned int _textureUnit
Definition TexGenNode:70
const TexGen * getTexGen() const
Definition TexGenNode:61
virtual void setThreadSafeRefUnref(bool threadSafe)
TexGen * getTexGen()
Definition TexGenNode:58
osg::ref_ptr< TexGen > _texgen
Definition TexGenNode:71
TexGenNode(TexGen *texgen)
void setTexGen(TexGen *texgen)
unsigned int getTextureUnit() const
Definition TexGenNode:52
virtual ~TexGenNode()
TexGenNode(const TexGenNode &tgb, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
void setTextureUnit(unsigned int textureUnit)
Definition TexGenNode:50
META_Node(osg, TexGenNode)
void setReferenceFrame(ReferenceFrame rf)
ReferenceFrame getReferenceFrame() const
Definition TexGenNode:47
ReferenceFrame
Definition TexGenNode:37
@ RELATIVE_RF
Definition TexGenNode:38
ReferenceFrame _referenceFrame
Definition TexGenNode:73
Definition TexGen:43
Definition ref_ptr:32
author: Julien Valentin 2017 (mp3butcher@hotmail.com)
Definition AlphaFunc:19
#define OSG_EXPORT
Definition osg/Export:39