#include <iso_gl_shader.h>
Public Member Functions | |
| Shader (ShaderType pShaderType) throw (GLException) | |
| create shader | |
| ~Shader () | |
| destructor | |
| bool | loaded () const |
| return true if shader is loaded, false otherwise | |
| bool | compiled () const |
| return true if shader is compiled, false otherwise | |
| void | compile () throw (GLException) |
| compile shader | |
| GLuint | id () const |
| return shader id | |
| void | load (base::String pFileName) throw (GLException) |
| load shader source code | |
| void | destroy () |
| delete shader | |
| void | printInfoLog () const |
| print shader info log | |
Protected Member Functions | |
| Shader () throw (GLException) | |
| default constructor | |
Protected Attributes | |
| GLuint | mId |
| ShaderType | mType |
| shader id | |
| char * | mSourceCode |
| shader type | |
| bool | mLoaded |
| bool | mCompiled |
| Shader::Shader | ( | ShaderType | pShaderType | ) | throw (GLException) |
create shader
| pShaderType | shader type |
| Shader::~Shader | ( | ) |
destructor
| Shader::Shader | ( | ) | throw (GLException) [protected] |
default constructor
| bool iso::gl::Shader::loaded | ( | ) | const [inline] |
return true if shader is loaded, false otherwise
| bool iso::gl::Shader::compiled | ( | ) | const [inline] |
return true if shader is compiled, false otherwise
| void Shader::compile | ( | ) | throw (GLException) |
compile shader
| GLuint Shader::id | ( | ) | const |
return shader id
| void Shader::load | ( | base::String | pFileName | ) | throw (GLException) |
load shader source code
| pFileName | source code file name |
| void Shader::destroy | ( | ) |
delete shader
| void Shader::printInfoLog | ( | ) | const |
print shader info log
GLuint iso::gl::Shader::mId [protected] |
ShaderType iso::gl::Shader::mType [protected] |
shader id
char* iso::gl::Shader::mSourceCode [protected] |
shader type
bool iso::gl::Shader::mLoaded [protected] |
bool iso::gl::Shader::mCompiled [protected] |
1.5.1