#include <cs237-shader.hxx>
int cs237::ShaderProgram::AttributeLocation |
( |
const char * |
name | ) |
|
return the location of the given attribute in the given program.
- Parameters
-
name | the name of the attribute |
- Returns
- the location of the attribute
bool cs237::ShaderProgram::hasAttribute |
( |
const char * |
name | ) |
|
|
inline |
does the shader have the given attribute variable?
- Parameters
-
name | the name of the attribute |
- Returns
- true if the attribute is present, false otherwise
bool cs237::ShaderProgram::hasUniform |
( |
const char * |
name | ) |
|
|
inline |
does the shader have the given uniform variable?
- Parameters
-
name | the name of the uniform |
- Returns
- true if the uniform is present, false otherwise
GLuint cs237::ShaderProgram::Id |
( |
| ) |
|
|
inline |
return the underlying OpenGL shader program ID
int cs237::ShaderProgram::UniformLocation |
( |
const char * |
name | ) |
|
return the location of the given uniform variable in the given program.
- Parameters
-
name | the name of the uniform variable |
- Returns
- the location of the uniform variable
void cs237::ShaderProgram::Use |
( |
| ) |
|
|
inline |
use the given shader program for rendering.
The documentation for this class was generated from the following files: