ShaderFactory attaches a shader to a node.
More...
#include <_src_shader_shader_factory.hh>
List of all members.
Detailed Description
ShaderFactory attaches a shader to a node.
Build pathnames to files container GLSL shader source code. Naming convention: ${shaderName}_vert.glsl ${shaderName}_frag.glsl
Design notes: Abstracts OSG to a degree, but assumes a scene-graph capable of attaching a shader program to any kind of node.
Member Typedef Documentation
Constructor & Destructor Documentation
| shader::ShaderFactory::ShaderFactory |
( |
void |
|
) |
[private] |
| shader::ShaderFactory::~ShaderFactory |
( |
|
) |
[private] |
Member Function Documentation
(private) Unconditionally create/compile a shader.
| shader::ShaderFactory::DEFINE_GetInstance |
( |
ShaderFactory |
|
) |
const |
| string shader::ShaderFactory::ExpandMacros |
( |
const string & |
shaderSrc |
) |
[private] |
Recursively expand macros in shader source. Tests for this is at: tests/shader/macro.cc
| void shader::ShaderFactory::Flush |
( |
void |
|
) |
|
Flush cache of shader programs.
Friends And Related Function Documentation
Member Data Documentation
directory with shader src code
The documentation for this class was generated from the following files: