This class represents the Shader object in GPU memory. More...
#include <Luminous/ProgramGL.hpp>
Public Member Functions | |
| LUMINOUS_API bool | compile (const Shader &shader) |
| Compile the shader object. More... | |
| LUMINOUS_API GLuint | handle () const |
| Get the raw OpenGL handle for the shader. More... | |
| LUMINOUS_API ShaderGL & | operator= (ShaderGL &&shader) |
| Move assignment operator. More... | |
| LUMINOUS_API | ShaderGL () |
| Constructor. | |
| LUMINOUS_API | ShaderGL (ShaderGL &&shader) |
| Move constructor. More... | |
| LUMINOUS_API | ~ShaderGL () |
| Destructor. | |
This class represents the Shader object in GPU memory.
| LUMINOUS_API Luminous::ShaderGL::ShaderGL | ( | ShaderGL && | shader | ) |
Move constructor.
| shader | shader to move |
| LUMINOUS_API bool Luminous::ShaderGL::compile | ( | const Shader & | shader | ) |
Compile the shader object.
If there are errors, they are printed to stderr.
| shader | shader object on CPU |
|
inline |
Get the raw OpenGL handle for the shader.