VR-Forces 4.7 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 Member Functions | Protected Attributes
makVrv::DtEffectControllerShaderCache Class Reference

brief DtEffectControllerShaderCache More...

Public Member Functions

 DtEffectControllerShaderCache (const DtOsgFileCache &fileCache)
 constructor
virtual ~DtEffectControllerShaderCache ()
 destructor
virtual const std::string & vertShaderSource (const std::string &vertShaderFile, int textureUnit) const
 get vert shader, given an effect vert shader file name, with the multi texture coords adjusted for the given texture unit create an entry in the cache if its not present
virtual const std::string & fragShaderSource (const std::string &fragShaderFile, bool forTexArray, const std::string &effectUnitName) const
 get vert shader, given an effect vert shader file name, with the shader adjusted for texture array, if that bool is true create an entry in the cache if its not present

Protected Types

typedef std::pair< std::string,
int
VertShaderKey
typedef std::map
< VertShaderKey, std::string > 
MapVertShaders
typedef std::pair< std::string,
bool
FragShaderKey
typedef std::map
< FragShaderKey, std::string > 
MapFragShaders

Protected Member Functions

virtual std::string generateVertShaderSource (const std::string &vertShaderFile, int textureUnit) const
 generate the source, given the shader, texture unit
virtual std::string generateFragShaderSource (const std::string &fragShaderFile, bool forTexArray, const std::string &effectUnitName) const
 generate the source, given the shader, whether its for texture array and the effect unit name

Protected Attributes

const DtOsgFileCachemyFileCache
MapVertShaders myMapVertShaders
MapFragShaders myMapFragShaders
boost::mutex myMutex

Detailed Description

brief DtEffectControllerShaderCache

Member Typedef Documentation

typedef std::pair<std::string, int> makVrv::DtEffectControllerShaderCache::VertShaderKey
protected
typedef std::map<VertShaderKey, std::string> makVrv::DtEffectControllerShaderCache::MapVertShaders
protected
typedef std::pair<std::string, bool> makVrv::DtEffectControllerShaderCache::FragShaderKey
protected
typedef std::map<FragShaderKey, std::string> makVrv::DtEffectControllerShaderCache::MapFragShaders
protected

Constructor & Destructor Documentation

makVrv::DtEffectControllerShaderCache::DtEffectControllerShaderCache ( const DtOsgFileCache fileCache)

constructor

virtual makVrv::DtEffectControllerShaderCache::~DtEffectControllerShaderCache ( )
virtual

destructor

Member Function Documentation

virtual const std::string& makVrv::DtEffectControllerShaderCache::vertShaderSource ( const std::string &  vertShaderFile,
int  textureUnit 
) const
virtual

get vert shader, given an effect vert shader file name, with the multi texture coords adjusted for the given texture unit create an entry in the cache if its not present

virtual const std::string& makVrv::DtEffectControllerShaderCache::fragShaderSource ( const std::string &  fragShaderFile,
bool  forTexArray,
const std::string &  effectUnitName 
) const
virtual

get vert shader, given an effect vert shader file name, with the shader adjusted for texture array, if that bool is true create an entry in the cache if its not present

virtual std::string makVrv::DtEffectControllerShaderCache::generateVertShaderSource ( const std::string &  vertShaderFile,
int  textureUnit 
) const
protectedvirtual

generate the source, given the shader, texture unit

virtual std::string makVrv::DtEffectControllerShaderCache::generateFragShaderSource ( const std::string &  fragShaderFile,
bool  forTexArray,
const std::string &  effectUnitName 
) const
protectedvirtual

generate the source, given the shader, whether its for texture array and the effect unit name

Member Data Documentation

const DtOsgFileCache& makVrv::DtEffectControllerShaderCache::myFileCache
protected
MapVertShaders makVrv::DtEffectControllerShaderCache::myMapVertShaders
mutableprotected
MapFragShaders makVrv::DtEffectControllerShaderCache::myMapFragShaders
mutableprotected
boost::mutex makVrv::DtEffectControllerShaderCache::myMutex
mutableprotected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)