OpenSceneGraph  3.4.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
osgFX::MultiTextureControl Class Reference

This node provides control over the which texture units are active and the blending weighting between them. More...

Inheritance diagram for osgFX::MultiTextureControl:
Inheritance graph
[legend]

List of all members.

Public Types

typedef osg::FloatArray TextureWeights

Public Member Functions

 MultiTextureControl ()
 MultiTextureControl (const MultiTextureControl &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Node (osgFX, MultiTextureControl)
void setTextureWeights (TextureWeights *twl)
TextureWeightsgetTextureWeights ()
const TextureWeightsgetTextureWeights () const
void setTextureWeight (unsigned int unit, float weight)
float getTextureWeight (unsigned int unit) const
unsigned int getNumTextureWeights () const
void setUseTexEnvCombine (bool flag)
bool getUseTexEnvCombine () const
void setUseTextureWeightsUniform (bool flag)
bool getUseTextureWeightsUniform () const

Protected Member Functions

virtual ~MultiTextureControl ()
MultiTextureControloperator= (const MultiTextureControl &)
void updateStateSet ()

Protected Attributes

osg::ref_ptr< TextureWeights_textureWeights
bool _useTexEnvCombine
bool _useTextureWeightsUniform

Detailed Description

This node provides control over the which texture units are active and the blending weighting between them.


Member Typedef Documentation


Constructor & Destructor Documentation

virtual osgFX::MultiTextureControl::~MultiTextureControl ( ) [inline, protected, virtual]

Member Function Documentation

unsigned int osgFX::MultiTextureControl::getNumTextureWeights ( ) const [inline]
float osgFX::MultiTextureControl::getTextureWeight ( unsigned int  unit) const [inline]
MultiTextureControl& osgFX::MultiTextureControl::operator= ( const MultiTextureControl ) [inline, protected]
void osgFX::MultiTextureControl::setTextureWeight ( unsigned int  unit,
float  weight 
)

Member Data Documentation


The documentation for this class was generated from the following file:

osg logo
Generated at Tue Dec 8 2015 00:16:47 for the OpenSceneGraph by doxygen 1.7.6.1.