#include <Shader.h>
Public Member Functions | |
| Shader () | |
| Standard Constructor. | |
| Shader (const string &filename) | |
| Constructor. | |
| Shader (const Shader &source) | |
| Copy-constructor. | |
| ~Shader () | |
| Destructor. | |
| void | bind () |
| Bind shader in OpenGL. | |
| void | disable () |
| Dis shader in OpenGL. | |
| const string & | getFilename () const |
| Gets shader base filename (without suffix). | |
| GLuint | getGlName () |
| Gets OpenGL shader name. | |
| virtual string | toString () const |
| Returns a textual representation. | |
| virtual string | className () const |
| Returns the class name of the object. | |
| virtual enum classId | classId () const |
| Returns the class id of the object. | |
| Shader | operator= (const Shader &shader) |
| Operator =. | |
Private Attributes | |
| struct shaderEntry * | data |
| data of the shader | |
Provides shader loading and binding.
| Shader::Shader | ( | ) |
Standard Constructor.
| Shader::Shader | ( | const string & | filename | ) |
Constructor.
If an invalid filename was choosen, we got a problem
| filename | The base filename of the shader to be loaded (without .frag or .vert suffix) |
| Shader::Shader | ( | const Shader & | source | ) |
Copy-constructor.
Duplicates a shader
| Shader::~Shader | ( | ) |
Destructor.
Destroys the Shader.
| void Shader::bind | ( | ) |
Bind shader in OpenGL.
Signals OpenGL to use this one as active shader
| void Shader::disable | ( | ) |
Dis shader in OpenGL.
| const string & Shader::getFilename | ( | ) | const |
Gets shader base filename (without suffix).
| GLuint Shader::getGlName | ( | ) |
Gets OpenGL shader name.
| string Shader::toString | ( | ) | const [virtual] |
Returns a textual representation.
| string Shader::className | ( | ) | const [virtual] |
Returns the class name of the object.
| enum classId Shader::classId | ( | ) | const [virtual] |
Returns the class id of the object.
struct shaderEntry* Shader::data [read, private] |
data of the shader
1.5.6