VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Attributes | Private Attributes
makVrv::DtEffectTextureUnitStateAttribute Class Reference

Attribute used to hold the texture coordinate unit to use with the effect texture in the texture attribute that has the same unit. More...

Inheritance diagram for makVrv::DtEffectTextureUnitStateAttribute:
Inheritance graph
[legend]

Public Member Functions

 DtEffectTextureUnitStateAttribute (unsigned int texCoordUnit=0, const std::string &baseTextureName="")
 constructor More...
 
 ~DtEffectTextureUnitStateAttribute ()
 destructor More...
 
 DtEffectTextureUnitStateAttribute (const DtEffectTextureUnitStateAttribute &stateAttrib, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy. More...
 
 META_StateAttribute (osg, DtEffectTextureUnitStateAttribute, EffectTextureUnitStateAttributeType)
 
virtual bool isTextureAttribute () const
 virtual override to specify that this is a texture attribute More...
 
virtual int compare (const osg::StateAttribute &sa) const
 Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. More...
 
unsigned int texCoordUnit () const
 which texture coordinate should be used with this effect texture. More...
 
const std::string & baseTextureName () const
 which texture is the base texture for this effect texture. "" if not set. Currently only used by configurable effects More...
 

Static Public Attributes

static const
osg::StateAttribute::Type 
EffectTextureUnitStateAttributeType = (osg::StateAttribute::Type)2000
 constant used to specify the type for this state attribute More...
 

Private Attributes

unsigned int myTexCoordUnit
 
std::string myBaseTextureName
 

Detailed Description

Attribute used to hold the texture coordinate unit to use with the effect texture in the texture attribute that has the same unit.

This is used by the indirect rendering system to know which texture unit's coordinates to use with for each texture.

Constructor & Destructor Documentation

makVrv::DtEffectTextureUnitStateAttribute::DtEffectTextureUnitStateAttribute ( unsigned int  texCoordUnit = 0,
const std::string &  baseTextureName = "" 
)

constructor

makVrv::DtEffectTextureUnitStateAttribute::~DtEffectTextureUnitStateAttribute ( )

destructor

makVrv::DtEffectTextureUnitStateAttribute::DtEffectTextureUnitStateAttribute ( const DtEffectTextureUnitStateAttribute stateAttrib,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY 
)

Copy constructor using CopyOp to manage deep vs shallow copy.

Member Function Documentation

makVrv::DtEffectTextureUnitStateAttribute::META_StateAttribute ( osg  ,
DtEffectTextureUnitStateAttribute  ,
EffectTextureUnitStateAttributeType   
)
virtual bool makVrv::DtEffectTextureUnitStateAttribute::isTextureAttribute ( ) const
virtual

virtual override to specify that this is a texture attribute

virtual int makVrv::DtEffectTextureUnitStateAttribute::compare ( const osg::StateAttribute &  sa) const
virtual

Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.

unsigned int makVrv::DtEffectTextureUnitStateAttribute::texCoordUnit ( ) const

which texture coordinate should be used with this effect texture.

const std::string& makVrv::DtEffectTextureUnitStateAttribute::baseTextureName ( ) const

which texture is the base texture for this effect texture. "" if not set. Currently only used by configurable effects

Member Data Documentation

const osg::StateAttribute::Type makVrv::DtEffectTextureUnitStateAttribute::EffectTextureUnitStateAttributeType = (osg::StateAttribute::Type)2000
static

constant used to specify the type for this state attribute

unsigned int makVrv::DtEffectTextureUnitStateAttribute::myTexCoordUnit
private
std::string makVrv::DtEffectTextureUnitStateAttribute::myBaseTextureName
private

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)