![]() |
An open-source, flexible 3D physical simulation framework
|
#include <DRockGraphSP.h>
Public Member Functions | |
DRockGraphSP (string res_path, ConfigMap graph, ConfigMap options) | |
int | getMinVersion () |
Returns the minimal glsl version needed for the generated shader. More... | |
const set< GLSLUniform > & | getUniforms () const |
Returns the set of uniforms needed by this shader. More... | |
const set< GLSLAttribute > & | getVaryings () const |
Returns the set of varyings needed/created by this shader. More... | |
const set< string > & | getEnabledExtensions () const |
Returns the set of extensions enabled by this shader. More... | |
const set< string > & | getDisabledExtensions () const |
Returns the set of extensions disabled by this shader. More... | |
const vector< pair< string, string > > | getDependencies () const |
Returns this shaders dependencies. More... | |
const set< GLSLConstant > & | getConstants () const |
Returns the set of constants created by this shader. More... | |
const set< GLSLAttribute > & | getAttributes () const |
Returns the set of attributes needed by this shader. More... | |
string | generateMainSource () |
Generates the main function of this shader. More... | |
string | generateDefinitions () |
Generates function definitions for this shader. More... | |
![]() | |
IShaderProvider (string res_path) | |
Private Member Functions | |
void | parseGraph () |
Parses the graph file to fill the fields with the correct content. More... | |
void | parse_functionInfo (string functionName, ConfigMap functionInfo) |
Parses a functionInfo and adds varyings, uniforms and function source code to the provider. More... | |
Private Attributes | |
ConfigMap | model |
ConfigMap | options |
Containing options needed for shader generation. More... | |
string | main_source |
Contains the shaders main function generated from the graph definition. More... | |
map< string, string > | source_files |
Contains resource path to all source code needed by the main function. More... | |
int | minVersion |
set< GLSLUniform > | uniforms |
set< GLSLAttribute > | varyings |
set< string > | enabledExtensions |
set< string > | disabledExtensions |
vector< pair< string, string > > | dependencies |
set< GLSLConstant > | constants |
set< GLSLAttribute > | attributes |
Additional Inherited Members | |
![]() | |
string | resPath |
The resource path for accessing definition files. More... | |
Definition at line 32 of file DRockGraphSP.h.
osg_material_manager::DRockGraphSP::DRockGraphSP | ( | string | res_path, |
ConfigMap | graph, | ||
ConfigMap | options | ||
) |
Definition at line 34 of file DRockGraphSP.cpp.
|
virtual |
Generates function definitions for this shader.
Should also contain everything else outside of the main function that is not defining uniforms, varyings, extensions, constants or attributes.
Implements osg_material_manager::IShaderProvider.
Definition at line 77 of file DRockGraphSP.cpp.
|
virtual |
Generates the main function of this shader.
Implements osg_material_manager::IShaderProvider.
Definition at line 53 of file DRockGraphSP.cpp.
|
virtual |
Returns the set of attributes needed by this shader.
Implements osg_material_manager::IShaderProvider.
Definition at line 69 of file DRockGraphSP.cpp.
|
virtual |
Returns the set of constants created by this shader.
Implements osg_material_manager::IShaderProvider.
Definition at line 65 of file DRockGraphSP.cpp.
|
virtual |
Returns this shaders dependencies.
Implements osg_material_manager::IShaderProvider.
Definition at line 73 of file DRockGraphSP.cpp.
|
virtual |
Returns the set of extensions disabled by this shader.
Implements osg_material_manager::IShaderProvider.
Definition at line 61 of file DRockGraphSP.cpp.
|
virtual |
Returns the set of extensions enabled by this shader.
Implements osg_material_manager::IShaderProvider.
Definition at line 57 of file DRockGraphSP.cpp.
|
virtual |
Returns the minimal glsl version needed for the generated shader.
Implements osg_material_manager::IShaderProvider.
Definition at line 41 of file DRockGraphSP.cpp.
|
virtual |
Returns the set of uniforms needed by this shader.
Implements osg_material_manager::IShaderProvider.
Definition at line 45 of file DRockGraphSP.cpp.
|
virtual |
Returns the set of varyings needed/created by this shader.
Implements osg_material_manager::IShaderProvider.
Definition at line 49 of file DRockGraphSP.cpp.
|
private |
Parses a functionInfo and adds varyings, uniforms and function source code to the provider.
Definition at line 256 of file DRockGraphSP.cpp.
|
private |
Parses the graph file to fill the fields with the correct content.
Definition at line 90 of file DRockGraphSP.cpp.
|
private |
Definition at line 82 of file DRockGraphSP.h.
|
private |
Definition at line 81 of file DRockGraphSP.h.
|
private |
Definition at line 80 of file DRockGraphSP.h.
|
private |
Definition at line 79 of file DRockGraphSP.h.
|
private |
Definition at line 78 of file DRockGraphSP.h.
|
private |
Contains the shaders main function generated from the graph definition.
Definition at line 68 of file DRockGraphSP.h.
|
private |
Definition at line 75 of file DRockGraphSP.h.
|
private |
Definition at line 57 of file DRockGraphSP.h.
|
private |
Containing options needed for shader generation.
Fields: num_lights: needed
Definition at line 63 of file DRockGraphSP.h.
|
private |
Contains resource path to all source code needed by the main function.
Definition at line 73 of file DRockGraphSP.h.
|
private |
Definition at line 76 of file DRockGraphSP.h.
|
private |
Definition at line 77 of file DRockGraphSP.h.