Catos Engine (Source) 0.0.1
Lightweight Game engine
|
#include <shader.h>
Public Member Functions | |
Shader () | |
~Shader () | |
void | init (const ShaderCreateInfo &createInfo) |
Creates 2 shaders for the Vertex and Fragment Shader. | |
ShaderStatus | addSubShader (const char *src, ShaderType type) |
Adds a new subShader to the ShaderProgram. | |
const char * | getCompilationErrorMessage () |
Returns the last compilation error. | |
ShaderProgram | getShaderProgram () |
Returns the raw ShaderProgram object for GL uses. | |
void | bind () |
Binds the shader. | |
void | setInt (const char *name, int val) |
Sets a int uniform. | |
catos::Shader::Shader | ( | ) |
catos::Shader::~Shader | ( | ) |
catos::ShaderStatus catos::Shader::addSubShader | ( | const char * | src, |
catos::ShaderType | type ) |
Adds a new subShader to the ShaderProgram.
void catos::Shader::bind | ( | ) |
Binds the shader.
const char * catos::Shader::getCompilationErrorMessage | ( | ) |
Returns the last compilation error.
|
inline |
Returns the raw ShaderProgram object for GL uses.
void catos::Shader::init | ( | const ShaderCreateInfo & | createInfo | ) |
Creates 2 shaders for the Vertex and Fragment Shader.
void catos::Shader::setInt | ( | const char * | name, |
int | val ) |
Sets a int uniform.