MPMA Framework 0.4
|
Represents source and compiled shader code pieces. More...
#include <Shader.h>
Public Member Functions | |
bool | Create (GLenum shaderType) |
Creates an shader code of a specific type. | |
void | Free () |
Frees the shader code. | |
bool | Compile (GLenum shaderType, const std::string &code) |
Creates and compiles a string reperesents shader code. | |
bool | Compile (GLenum shaderType, const std::vector< std::string > &codes) |
Creates and compiles a set string reperesents shader codes. | |
bool | CompileFile (GLenum shaderType, const MPMA::Filename &file) |
Creates and compiles a file containing shader code. | |
bool | CompileFiles (GLenum shaderType, const std::vector< MPMA::Filename > &files) |
Creates and compiles a set of files containing shader codes. | |
const std::string & | GetCompileMessages () const |
Retrieves messages generated by the shader compiler. | |
operator GLuint () const | |
Returns the OpenGL shader source object. |
Represents source and compiled shader code pieces.