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. |
void OShaderProgram::setCamera |
( |
OCamera * |
camera | ) |
|
Set camera that will be used by this shader program.
- Parameters
-
camera | Pointer to the camera object. |
- Todo:
- This will be eliminated on the next version. The camera transformations must be included in the transformation matrix stack passed to each mesh during the rendering run.
void OShaderProgram::setModelTransformation |
( |
const OMatrixStack * |
modelMtx | ) |
|
Set model specific transformations (translations, rotations, scaling). Pointer to the matrix stack containing the transformations.
- Todo:
- This will be eliminated on the next version. A single matrix will be passed to the shader containing both camera/perspective and model transformations. There will be a single transformation set method.
The documentation for this class was generated from the following files: