|
Developer Documentation
|
A generic shader base class. More...
#include <OpenFlipper/libs_required/ACG/ShaderUtils/GLSLShader.hh>
Public Member Functions | |
| Shader (GLenum shaderType) | |
| Creates a new shader. | |
| virtual | ~Shader () |
| Deletes the shader object. | |
| void | setSource (const StringList &source) |
| Upload the source of the shader. | |
| void | setSource (const QStringList &source) |
| Upload the source of the shader. | |
| bool | compile (bool verbose=true) |
| Compile the shader object. | |
Protected Attributes | |
| GLuint | m_shaderId |
Friends | |
| class | Program |
A generic shader base class.
Definition at line 71 of file GLSLShader.hh.
|
explicit |
Creates a new shader.
| [in] | shaderType | Can be one of GL_VERTEX_SHADER or GL_FRAGMENT_SHADER |
Definition at line 77 of file GLSLShader.cc.
|
virtual |
Deletes the shader object.
Definition at line 95 of file GLSLShader.cc.
| bool GLSL::Shader::compile | ( | bool | verbose = true | ) |
Compile the shader object.
Definition at line 146 of file GLSLShader.cc.
| void GLSL::Shader::setSource | ( | const QStringList & | source | ) |
Upload the source of the shader.
Definition at line 126 of file GLSLShader.cc.
| void GLSL::Shader::setSource | ( | const StringList & | source | ) |
Upload the source of the shader.
Definition at line 103 of file GLSLShader.cc.
|
friend |
Definition at line 85 of file GLSLShader.hh.
|
protected |
Definition at line 83 of file GLSLShader.hh.