O3D_Shader Class Reference

Convenience wrapper for loading shaders and manipulating variables inside of them. More...

#import <O3D_Shader.h>

List of all members.

Public Member Functions

(id) - initWithVertexPath:fragmentPath:
 Initialize giving the paths to the vertex shader and fragment shader code. Either argument can be nil to only use one shader.
(void) - setUniformInt:forVariableNamed:
 Change a variable representing one int inside the shader.
(void) - setUniformInts:forVariableNamed:length:
 Change a variable representing an array of ints inside the shader.
(void) - setUniformFloat:forVariableNamed:
 Change a variable representing one float inside the shader.
(void) - setUniformFloats:forVariableNamed:length:
 Change a variable representing an array of floats inside the shader.
(void) - setUniformBool:forVariableNamed:
 Change a variable representing one bool inside the shader.
(void) - setUniformBools:forVariableNamed:length:
 Change a variable representing an array of floats inside the shader.

Properties

GLhandleARB program
 The shader program.
GLhandleARB vertex
 Vertex shader.
GLhandleARB fragment
 Fragment shader.


Detailed Description

Convenience wrapper for loading shaders and manipulating variables inside of them.
The documentation for this class was generated from the following files:

Generated on Wed Jun 10 23:48:30 2009 for Objective 3D by  doxygen 1.5.9