Class that represents a shader program.
More...
#include <OsirisSDK/OShaderProgram.h>
Class that represents a shader program.
OShaderProgram::OShaderProgram |
( |
const char * |
name | ) |
|
Class constructor.
- Parameters
-
Add a shader object to the program.
- Parameters
-
shader | Pointer to the shader object that will be added. |
Add a shader object to the program using the Visual Studio resource file ID (WIN32 only).
- Parameters
-
type | Shader type. |
name | Shader name. |
resourceId | Visual Studio resource file ID that references the shader source code. |
GLuint OShaderProgram::attribLocation |
( |
const char * |
attrib_name | ) |
|
Get the shader attribute by name.
- Parameters
-
attrib_name | Name of the shader attribute. |
- Returns
- The OpenGL reference to the attribute.
GLuint OShaderProgram::uniformLocation |
( |
const char * |
uniform_name | ) |
|
Get the shader uniform parameter by name.
- Parameters
-
uniform_name | Name of the uniform parameter. |
- Returns
- The OpenGL reference to the uniform.
The documentation for this class was generated from the following files: