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 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
|
Detailed Description
Member Typedef Documentation
Constructor & Destructor Documentation
| makVrv::DtEffectControllerShaderCache::DtEffectControllerShaderCache |
( |
const DtOsgFileCache & |
fileCache | ) |
|
| virtual makVrv::DtEffectControllerShaderCache::~DtEffectControllerShaderCache |
( |
| ) |
|
|
virtual |
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: