![]() |
An open-source, flexible 3D physical simulation framework
|
#include <yaml-shader.h>
Public Member Functions | |
YamlShader (std::string name, std::vector< std::string > &args, configmaps::ConfigMap &map, std::string resPath) | |
std::string | code () const |
![]() | |
ShaderFunc (std::string name, std::vector< std::string > args, unsigned int priority=0) | |
ShaderFunc () | |
void | setMinVersion (int minVersion) |
int | getMinVersion () |
void | addDependencyCode (std::string codeId, std::string code) |
std::vector< std::pair< std::string, std::string > > | getDeps () const |
void | addVarying (GLSLVarying varying) |
const std::set< GLSLVarying > & | getVaryings () const |
void | addUniform (GLSLUniform uniform) |
const std::set< GLSLUniform > & | getUniforms () const |
void | addConstant (GLSLConstant constant) |
const std::set< GLSLConstant > & | getConstants () const |
void | addAttribute (GLSLAttribute att) |
const std::set< GLSLAttribute > & | getAttributes () const |
void | enableExtension (std::string extensionName) |
const std::set< std::string > & | getEnabledExtensions () const |
void | disableExtension (std::string extensionName) |
const std::set< std::string > & | getDisabledExtensions () const |
void | addMainVar (GLSLVariable var, int priority=0) |
const std::list< MainVar > & | getMainVars () const |
void | addMainVarDec (GLSLAttribute att) |
const std::set< GLSLAttribute > & | getMainVarDecs () const |
void | addSuffix (GLSLSuffix suffix) |
const std::set< GLSLSuffix > & | getSuffixes () const |
void | addExport (GLSLExport e) |
const std::vector< GLSLExport > & | getExports () const |
void | addSnippet (std::string line, int priority=0) |
const std::vector< PrioritizedLine > & | getSnippets () const |
const std::vector< FunctionCall > & | getFunctionCalls () const |
std::string | generateFunctionCode () |
void | merge (ShaderFunc *u) |
std::vector< std::string > | generateFunctionCall () |
Private Attributes | |
std::string | source |
Additional Inherited Members | |
![]() | |
std::vector< FunctionCall > | funcs |
std::string | shaderCode |
std::string | name |
std::set< GLSLUniform > | uniforms |
std::set< GLSLConstant > | constants |
std::set< GLSLVarying > | varyings |
std::set< GLSLAttribute > | attributes |
std::map< std::string, std::string > | deps |
std::list< MainVar > | mainVars |
std::set< GLSLAttribute > | mainVarDecs |
std::vector< GLSLExport > | exports |
std::set< GLSLSuffix > | suffixes |
std::set< std::string > | enabledExtensions |
std::set< std::string > | disabledExtensions |
std::vector< PrioritizedLine > | snippets |
int | minVersion |
Definition at line 32 of file yaml-shader.h.
osg_material_manager::YamlShader::YamlShader | ( | std::string | name, |
std::vector< std::string > & | args, | ||
configmaps::ConfigMap & | map, | ||
std::string | resPath | ||
) |
Definition at line 31 of file yaml-shader.cpp.
|
virtual |
Reimplemented from osg_material_manager::ShaderFunc.
Definition at line 224 of file yaml-shader.cpp.
|
private |
Definition at line 37 of file yaml-shader.h.