OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions | Variables
Shader Namespace Reference

Classes

class  ShaderManager
 Reads shader template files and turns them into a concrete shader, based on a list of define's. More...
 
class  ShaderVisitor
 Adjusts the given subgraph to render using shaders. More...
 

Functions

bool parseIncludes (boost::filesystem::path shaderPath, std::string &source)
 
bool parseDefines (std::string &source, const ShaderManager::DefineMap &defines)
 
osg::StateSet * getWritableStateSet (osg::Node &node)
 
bool isTextureNameRecognized (const std::string &name)
 

Variables

const char * defaultTextures [] = { "diffuseMap", "normalMap", "emissiveMap", "darkMap", "detailMap", "envMap", "specularMap", "decalMap" }
 

Function Documentation

osg::StateSet* Shader::getWritableStateSet ( osg::Node &  node)

Here is the call graph for this function:

Here is the caller graph for this function:

bool Shader::isTextureNameRecognized ( const std::string &  name)

Here is the caller graph for this function:

bool Shader::parseDefines ( std::string &  source,
const ShaderManager::DefineMap &  defines 
)

Here is the caller graph for this function:

bool Shader::parseIncludes ( boost::filesystem::path  shaderPath,
std::string &  source 
)

Here is the caller graph for this function:

Variable Documentation

const char* Shader::defaultTextures[] = { "diffuseMap", "normalMap", "emissiveMap", "darkMap", "detailMap", "envMap", "specularMap", "decalMap" }