VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes
makVrv::DtIndirectGeometryTextures Class Reference

class to hold osg Textures (diffuse map texture + effect textures) More...

Public Member Functions

 DtIndirectGeometryTextures (const DtIndirectGeometryTexturesPointers &rawPointers)
 constructor
virtual ~DtIndirectGeometryTextures ()
 destructor
virtual bool hasDiffuseTexture (void) const
 is the diffuse texture valid (the ref_ptr not zero)
virtual bool hasTexture (int type) const
 is the effect texture valid (the ref_ptr not zero)
virtual osg::ref_ptr
< osg::Texture > 
diffuseTexture (void) const
 access the diffuse texture
virtual int diffuseTextureUnit () const
 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
virtual osg::ref_ptr
< osg::Texture > 
textureForType (int type) const
 access texture, given the type
virtual osg::ref_ptr
< osg::Texture > 
textureForIndex (int index) const
 access texture, given the index
virtual int textureUnitForIndex (int index) const
 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
virtual const
DtIndirectEffectTexturesTemplate
effectTexturesTemplate (void) const
 access the template

Protected Types

typedef std::vector
< osg::ref_ptr< osg::Texture > > 
VectorTextures
typedef std::vector< unsigned intVectorTextureUnits

Protected Attributes

const
DtIndirectEffectTexturesTemplate
myEffectTexturesTemplate
osg::ref_ptr< osg::Texture > myDiffuseTexture
int myDiffuseTextureUnit
VectorTextures myVectorTextures
VectorTextureUnits myVectorTextureUnits

Detailed Description

class to hold osg Textures (diffuse map texture + effect textures)

Member Typedef Documentation

typedef std::vector< osg::ref_ptr<osg::Texture> > makVrv::DtIndirectGeometryTextures::VectorTextures
protected

Constructor & Destructor Documentation

makVrv::DtIndirectGeometryTextures::DtIndirectGeometryTextures ( const DtIndirectGeometryTexturesPointers rawPointers)

constructor

virtual makVrv::DtIndirectGeometryTextures::~DtIndirectGeometryTextures ( )
virtual

destructor

Member Function Documentation

virtual bool makVrv::DtIndirectGeometryTextures::hasDiffuseTexture ( void  ) const
virtual

is the diffuse texture valid (the ref_ptr not zero)

virtual bool makVrv::DtIndirectGeometryTextures::hasTexture ( int  type) const
virtual

is the effect texture valid (the ref_ptr not zero)

virtual osg::ref_ptr<osg::Texture> makVrv::DtIndirectGeometryTextures::diffuseTexture ( void  ) const
virtual

access the diffuse texture

virtual int makVrv::DtIndirectGeometryTextures::diffuseTextureUnit ( ) const
virtual

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

virtual osg::ref_ptr<osg::Texture> makVrv::DtIndirectGeometryTextures::textureForType ( int  type) const
virtual

access texture, given the type

virtual osg::ref_ptr<osg::Texture> makVrv::DtIndirectGeometryTextures::textureForIndex ( int  index) const
virtual

access texture, given the index

virtual int makVrv::DtIndirectGeometryTextures::textureUnitForIndex ( int  index) const
virtual

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

virtual const DtIndirectEffectTexturesTemplate* makVrv::DtIndirectGeometryTextures::effectTexturesTemplate ( void  ) const
virtual

access the template

Member Data Documentation

const DtIndirectEffectTexturesTemplate* makVrv::DtIndirectGeometryTextures::myEffectTexturesTemplate
protected
osg::ref_ptr<osg::Texture> makVrv::DtIndirectGeometryTextures::myDiffuseTexture
protected
int makVrv::DtIndirectGeometryTextures::myDiffuseTextureUnit
protected
VectorTextures makVrv::DtIndirectGeometryTextures::myVectorTextures
protected
VectorTextureUnits makVrv::DtIndirectGeometryTextures::myVectorTextureUnits
protected

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)