Privacy
An open-source, flexible 3D physical simulation framework
osg_material_manager::YamlShader Class Reference

#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
 
- Public Member Functions inherited from osg_material_manager::ShaderFunc
 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

- Protected Attributes inherited from osg_material_manager::ShaderFunc
std::vector< FunctionCallfuncs
 
std::string shaderCode
 
std::string name
 
std::set< GLSLUniformuniforms
 
std::set< GLSLConstantconstants
 
std::set< GLSLVaryingvaryings
 
std::set< GLSLAttributeattributes
 
std::map< std::string, std::string > deps
 
std::list< MainVarmainVars
 
std::set< GLSLAttributemainVarDecs
 
std::vector< GLSLExportexports
 
std::set< GLSLSuffixsuffixes
 
std::set< std::string > enabledExtensions
 
std::set< std::string > disabledExtensions
 
std::vector< PrioritizedLinesnippets
 
int minVersion
 

Detailed Description

Definition at line 32 of file yaml-shader.h.

Constructor & Destructor Documentation

◆ YamlShader()

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.

Member Function Documentation

◆ code()

std::string osg_material_manager::YamlShader::code ( ) const
virtual

Reimplemented from osg_material_manager::ShaderFunc.

Definition at line 224 of file yaml-shader.cpp.

Member Data Documentation

◆ source

std::string osg_material_manager::YamlShader::source
private

Definition at line 37 of file yaml-shader.h.


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