MPMA Framework 0.4
Public Member Functions
GFX::ShaderProgram Class Reference

Represents a shader program. More...

#include <Shader.h>

Inheritance diagram for GFX::ShaderProgram:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

Represents a shader program.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends