MPMA Framework 0.4
|
Represents a shader program. More...
#include <Shader.h>
Public Member Functions | |
bool | Create () |
Creates an empty shader program. | |
void | Free () |
Frees the shader program. | |
void | AttachShader (const ShaderCode &code) |
Attaches a shader source to the program. | |
void | DetatchShader (const ShaderCode &code) |
Detaches ashader source from the program. | |
bool | Link () |
Links all of the attached shader sources into the completed program. | |
bool | CreateAndLink (const std::vector< ShaderCode > &codes) |
Attaches and links a set of shader sources into a completed program. | |
bool | CreateAndLink (const ShaderCode *codes, nuint count) |
Attaches and links a set of shader sources into a completed program. | |
const std::string & | GetLinkMessages () const |
Retrieves messages generated by the shader linker. | |
void | Bind () |
Binds the shader program. | |
void | Unbind () |
Unbinds the shader program. | |
UniformVariable | FindVariable (const std::string &name) |
Retrieves the uniform variable location of a variable inside a program. | |
operator GLuint () const | |
Returns the OpenGL shader program object. |
Represents a shader program.