TexGenNode
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_TexGenNode
#define OSG_TexGenNode 1
#include <osg/Group>
#include <osg/TexGen>
namespace osg {
class OSG_EXPORT TexGenNode : public Group
{
public:
TexGenNode();
TexGenNode(TexGen* texgen);
TexGenNode(const TexGenNode& tgb, const CopyOp& copyop=CopyOp::SHALLOW_COPY);
META_Node(osg, TexGenNode);
enum ReferenceFrame
{
RELATIVE_RF,
ABSOLUTE_RF
};
void setReferenceFrame(ReferenceFrame rf);
ReferenceFrame getReferenceFrame() const { return _referenceFrame; }
void setTextureUnit(unsigned int textureUnit) { _textureUnit = textureUnit; }
unsigned int getTextureUnit() const { return _textureUnit; }
void setTexGen(TexGen* texgen);
inline TexGen* getTexGen() { return _texgen.get(); }
inline const TexGen* getTexGen() const { return _texgen.get(); }
virtual void setThreadSafeRefUnref(bool threadSafe);
protected:
virtual ~TexGenNode();
unsigned int _textureUnit;
osg::ref_ptr<TexGen> _texgen;
ReferenceFrame _referenceFrame;
};
}
#endif
Group
TexGen
osg::CopyOp
Definition CopyOp:41
osg::CopyOp::SHALLOW_COPY
@ SHALLOW_COPY
Definition CopyOp:47
osg::Group::Group
Group()
osg::TexGenNode::_textureUnit
unsigned int _textureUnit
Definition TexGenNode:70
osg::TexGenNode::TexGenNode
TexGenNode()
osg::TexGenNode::getTexGen
const TexGen * getTexGen() const
Definition TexGenNode:61
osg::TexGenNode::setThreadSafeRefUnref
virtual void setThreadSafeRefUnref(bool threadSafe)
osg::TexGenNode::getTexGen
TexGen * getTexGen()
Definition TexGenNode:58
osg::TexGenNode::_texgen
osg::ref_ptr< TexGen > _texgen
Definition TexGenNode:71
osg::TexGenNode::TexGenNode
TexGenNode(TexGen *texgen)
osg::TexGenNode::setTexGen
void setTexGen(TexGen *texgen)
osg::TexGenNode::getTextureUnit
unsigned int getTextureUnit() const
Definition TexGenNode:52
osg::TexGenNode::~TexGenNode
virtual ~TexGenNode()
osg::TexGenNode::TexGenNode
TexGenNode(const TexGenNode &tgb, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
osg::TexGenNode::setTextureUnit
void setTextureUnit(unsigned int textureUnit)
Definition TexGenNode:50
osg::TexGenNode::META_Node
META_Node(osg, TexGenNode)
osg::TexGenNode::setReferenceFrame
void setReferenceFrame(ReferenceFrame rf)
osg::TexGenNode::getReferenceFrame
ReferenceFrame getReferenceFrame() const
Definition TexGenNode:47
osg::TexGenNode::ReferenceFrame
ReferenceFrame
Definition TexGenNode:37
osg::TexGenNode::RELATIVE_RF
@ RELATIVE_RF
Definition TexGenNode:38
osg::TexGenNode::ABSOLUTE_RF
@ ABSOLUTE_RF
Definition TexGenNode:39
osg::TexGenNode::_referenceFrame
ReferenceFrame _referenceFrame
Definition TexGenNode:73
osg::TexGen
Definition TexGen:43
osg::ref_ptr
Definition ref_ptr:32
osg
Definition AlphaFunc:19
OSG_EXPORT
#define OSG_EXPORT
Definition osg/Export:39