Program generator for "Über-Shader".
More...
#include <ProgramGenerator.h>
List of all members.
Detailed Description
Program generator for "Über-Shader".
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
[in] | cRenderer | Renderer to use |
[in] | sShaderLanguage | The name of the shader language the shaders are using (for example "GLSL" or "Cg") |
[in] | sVertexShader | Vertex shader ("Über-Shader") source code to use, usually blank ASCII |
[in] | sVertexShaderProfile | Vertex shader profile to use (for example "arbvp1" or "glslv" when using Cg, e.g. "130" when using GLSL), if empty string, a default profile will be used which usually tries to use the best available profile that runs on most hardware |
[in] | sFragmentShader | Fragment shader ("Über-Shader") source code to use, usually blank ASCII |
[in] | sFragmentShaderProfile | Fragment shader profile to use (for example "arbfp1" or "glslf" when using Cg, e.g. "130" when using GLSL), if empty string, a default profile will be used which usually tries to use the best available profile that runs on most hardware |
- Note:
- When using GLSL, the profile is the GLSL version to use
Member Function Documentation
Returns the used renderer.
- Returns:
- The used renderer
Returns the name of the used shader language.
- Returns:
- The name of the used shader language
Returns the used vertex shader source code.
- Returns:
- The used vertex shader source code
Returns the used fragment shader source code.
- Returns:
- The used fragment shader source code
Returns a program.
- Parameters:
-
[in] | cFlags | Program flags describing the requested program features |
- Returns:
- Generated program, can be a null pointer
Clears the cache of the program generator.
The documentation for this class was generated from the following files: