A class representing a linked shader.
More...
#include <ShaderProgram.hpp>
A class representing a linked shader.
lm::ShaderProgram::ShaderProgram |
( |
| ) |
|
Construct a shader program
lm::ShaderProgram::~ShaderProgram |
( |
| ) |
|
void lm::ShaderProgram::attach |
( |
const Shader & |
shader | ) |
|
Attach a shader to the program
- Parameters
-
shader | The shader to attach |
void lm::ShaderProgram::bindAttribLocation |
( |
GLint |
index, |
|
|
const char * |
name |
|
) |
| const |
|
inline |
Bind an attribute location inside the shader program
- Parameters
-
index | The index to be bound |
name | The name of the attribute |
void lm::ShaderProgram::link |
( |
| ) |
|
GLuint lm::ShaderProgram::program |
( |
| ) |
const |
|
inline |
Get the raw shader program
- Returns
- The raw shader program
void lm::ShaderProgram::use |
( |
| ) |
const |
The documentation for this class was generated from the following file: