![]() |
VR-Forces 4.3.1 Class Documentation
|
Base class for controllers that install and control effect textures. More...

Public Types | |
| typedef std::set< std::string > | FilenameSet |
Public Member Functions | |
| DtOsgEffectTextureController (DtOsgFileCache &fileCache, DtOsgShaderManager &shaderMgr) | |
| CTOR. | |
| virtual std::string | getEffectTypeCode () const =0 |
| The type code string for this effect. | |
| virtual osg::Texture * | installEffectTexture (osg::Texture *baseTexture, int texUnit, osg::StateSet *stateSet, const osgDB::Options *dbOptions, const FilenameSet &possibleFilenames) |
| Install the normal map texture + shaders on a state set. | |
| virtual osg::Texture * | findEffectTexture (const std::string &baseTextureName, const osgDB::Options *dbOptions, const FilenameSet &possibleFilenames, osg::Texture *baseTexture) |
| Find the effect texture for this effect, if one exists. | |
| virtual bool | generateShaders (int baseUnit, int effectUnit, osg::Texture *tex, osg::StateSet *stateSet, const std::string &baseTextureName) |
| Generates shaders for a stateset if required by this effect. | |
| virtual bool | isEffectTexture (osg::Texture *tex) const |
| \brief True if the provided texture is an effect texture of this object's type. | |
| virtual bool | effectTextureInstalled (osg::Texture *baseTexture, osg::StateSet *stateSet) const |
| True if there's already an effect texture installed on the given stateset that corresponds to the given base texture. | |
| std::string | getExtendedFileName (const std::string &baseFileName) const |
| void | getPossibleEffectTextureFileNames (const std::string &baseFileName, std::vector< std::string > &output) const |
Static Public Member Functions | |
| static std::string | getTextureFilePath (osg::Texture *texture) |
Protected Member Functions | |
| virtual | ~DtOsgEffectTextureController () |
| DTOR. | |
| void | applyDefaultShaderLODRanges (osgEarth::VirtualProgram *vp, const std::string &function) const |
Protected Attributes | |
| std::string | myVertSource |
| std::string | myFragSource |
| float | myDefaultMaxRange |
| DtOsgFileCache & | myFileCache |
| DtOsgShaderManager & | myShaderMgr |
| std::string | myShaderFolderPath |
Base class for controllers that install and control effect textures.
| typedef std::set<std::string> makVrv::DtOsgEffectTextureController::FilenameSet |
| makVrv::DtOsgEffectTextureController::DtOsgEffectTextureController | ( | DtOsgFileCache & | fileCache, |
| DtOsgShaderManager & | shaderMgr | ||
| ) |
CTOR.
|
protectedvirtual |
DTOR.
|
pure virtual |
The type code string for this effect.
Implemented in makVrv::DtOsgEmissivityMapController, makVrv::DtOsgConfigurableEffectController, makVrv::DtNightTextureController, makVrv::DtOsgAmbientOcclusionMapController, makVrv::DtOsgFlowNormalMapController, makVrv::DtOsgNormalMapController, makVrv::DtOsgReflectivityMapController, makVrv::DtOsgSpecularMapController, makVrv::DtOsgFlowMapController, and makVrv::DtOsgSpecularGlossAmbientController.
|
virtual |
Install the normal map texture + shaders on a state set.
Reimplemented in makVrv::DtOsgEmissivityMapController.
|
virtual |
Find the effect texture for this effect, if one exists.
Reimplemented in makVrv::DtOsgConfigurableEffectController.
|
inlinevirtual |
Generates shaders for a stateset if required by this effect.
Reimplemented in makVrv::DtOsgEmissivityMapController, makVrv::DtOsgConfigurableEffectController, makVrv::DtNightTextureController, makVrv::DtOsgAmbientOcclusionMapController, makVrv::DtOsgFlowNormalMapController, makVrv::DtOsgNormalMapController, makVrv::DtOsgReflectivityMapController, makVrv::DtOsgSpecularMapController, makVrv::DtOsgFlowMapController, and makVrv::DtOsgSpecularGlossAmbientController.
|
virtual |
\brief True if the provided texture is an effect texture of this object's type.
|
virtual |
True if there's already an effect texture installed on the given stateset that corresponds to the given base texture.
|
static |
| std::string makVrv::DtOsgEffectTextureController::getExtendedFileName | ( | const std::string & | baseFileName | ) | const |
| void makVrv::DtOsgEffectTextureController::getPossibleEffectTextureFileNames | ( | const std::string & | baseFileName, |
| std::vector< std::string > & | output | ||
| ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |