#include <shaders.h>
Public Types | |
enum | ShaderType { VERTEX, FRAGMENT, GEOMETRY } |
Public Member Functions | |
bool | Compile (void) |
void | Del (void) |
void | Gen (void) |
std::string | InfoLog (void) |
bool | IsCompiled (void) |
bool | LoadSource (const char *fileName) |
void | SetSource (const char *src) |
Shader (void) | |
virtual ShaderType | Type (void) const =0 |
Protected Types | |
enum | { SOURCE_DIRTY } |
Protected Member Functions | |
void | DoBind (void) |
void | DoUnbind (void) |
Protected Attributes | |
bool | compiled |
unsigned int | flags |
std::string | source |
enum Shader::ShaderType |
Shader::Shader | ( | void | ) | [inline] |
bool Shader::Compile | ( | void | ) | [inline] |
void Shader::Del | ( | void | ) | [inline, virtual] |
void Shader::DoBind | ( | void | ) | [inline, protected, virtual] |
void Shader::DoUnbind | ( | void | ) | [inline, protected, virtual] |
void Shader::Gen | ( | void | ) | [inline, virtual] |
std::string Shader::InfoLog | ( | void | ) | [inline] |
bool Shader::IsCompiled | ( | void | ) | [inline] |
bool Shader::LoadSource | ( | const char * | fileName | ) | [inline] |
void Shader::SetSource | ( | const char * | src | ) | [inline] |
virtual ShaderType Shader::Type | ( | void | ) | const [pure virtual] |
Implemented in GeometryShader, FragmentShader, and VertexShader.
bool Shader::compiled [protected] |
unsigned int Shader::flags [protected] |
std::string Shader::source [protected] |