![]() |
VR-Forces 5.0.3 Developer's Guide
|
class to hold osg Textures (diffuse map texture + effect textures) basically just a list of osg textures and the texture units that should be used by those textures. diffuse texture is separate from the effect textures since it is found differently and used differently

Public Types | |
| enum | IndirectTextureBlendModesSupported { Blend = 0, Decal = 1 } |
| typedef std::vector< unsigned int > | VectorTextureUnits |
| typedef std::vector < osg::ref_ptr< osg::Texture > > | VectorTextures |
Public Member Functions | |
| DtIndirectGeometryTextures (const DtIndirectEffectTexturesTemplate *effectTexturesTemplate, int flags) | |
| virtual bool | hasDiffuseTexture (void) const |
| virtual bool | hasEffectTexture (int type) const |
| virtual int | getNumEffectTextures () const |
| virtual osg::Texture * | diffuseTexture (void) const |
| virtual unsigned int | diffuseTextureUnit () const |
| virtual unsigned int | diffuseTextureBlendMode () const |
| virtual osg::Texture * | effectTextureForType (int type) const |
| virtual int | effectTextureUnitForType (int type) const |
| virtual const DtIndirectEffectTexturesTemplate * | effectTexturesTemplate (void) const |
| virtual void | setDiffuseTexture (osg::Texture *texture) |
| virtual void | setDiffuseTextureUnit (unsigned int unit) |
| virtual void | setDiffuseTextureBlendMode (unsigned int mode) |
| virtual void | setEffectTexture (int type, osg::Texture *texture) |
| virtual void | setEffectTextureUnit (int type, unsigned int unit) |
| virtual void | setConfigurableEffectSuffixes (const std::vector< std::string > &suffixes) |
| virtual const std::vector < std::string > | configurableEffectSuffixes (void) const |
| virtual void | getEffectTextureUnits (VectorTextureUnits &textureUnits) const |
| virtual int | flags (void) const |
Protected Member Functions | |
| virtual | ~DtIndirectGeometryTextures () |
| virtual osg::Texture * | textureForIndex (int index) const |
| virtual int | textureUnitForIndex (int index) const |
Protected Attributes | |
| const DtIndirectEffectTexturesTemplate * | myEffectTexturesTemplate |
| osg::ref_ptr< osg::Texture > | myDiffuseTexture |
| int | myDiffuseTextureUnit |
| unsigned int | myDiffuseTextureBlendMode |
| VectorTextures | myEffectTextures |
| VectorTextureUnits | myEffectTextureUnits |
| std::vector< std::string > | myConfigurableEffectSuffixes |
| const int | myFlags |
Private Member Functions | |
| DtIndirectGeometryTextures () | |
| DtIndirectGeometryTextures (const DtIndirectGeometryTextures &other) | |
| DtIndirectGeometryTextures & | operator= (const DtIndirectGeometryTextures &other) |
| typedef std::vector<unsigned int> makVrv::DtIndirectGeometryTextures::VectorTextureUnits |
| typedef std::vector< osg::ref_ptr<osg::Texture> > makVrv::DtIndirectGeometryTextures::VectorTextures |
| makVrv::DtIndirectGeometryTextures::DtIndirectGeometryTextures | ( | const DtIndirectEffectTexturesTemplate * | effectTexturesTemplate, |
| int | flags | ||
| ) |
Constructor.
|
private |
default constructor not implemented
|
private |
Copy Constructor – not implemented.
|
protectedvirtual |
destructor
|
private |
Assignment Operator – not implemented.
|
virtual |
is the diffuse texture valid (the ref_ptr not zero)
is the effect texture of the specified type valid (the ref_ptr not zero)
|
virtual |
num effects textures
|
virtual |
access the diffuse texture
access the texture unit for this diffuse texture although there is no texture unit for reading the texture in bindless, we still need to know which texture coordinates to use
get the diffuse texture's blend mode (currently only blend and decal modes supported)
|
virtual |
access texture, given the type
access texture unit, given the type
|
virtual |
access the template
|
virtual |
set the diffuse texture for this particular set of textures
set the diffuse texture unit to use for this particular set of textures
|
virtual |
set the diffuse texture's blend mode (currently only blend and decal modes supported)
|
virtual |
set the effect texture for a particular effect texture type to use
|
virtual |
set the effect texture unit for a particular effect texture type
|
virtual |
set the configurable effect texture suffixes that are to be used by this set of textures
|
virtual |
get the configurable effect texture suffixes that are to be used by this set of textures
|
virtual |
get all the texture units to use for the effect textures
|
virtual |
flags
|
protectedvirtual |
access texture, given the index
|
protectedvirtual |
access the texture unit for the given effect texture index although there is no texture unit for reading the texture in bindless, we still need to know which texture coordinates to use
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |