#include <mlGLResources.h>

Public Member Functions | |
| GLSLProgram () | |
| virtual | ~GLSLProgram () |
| void | disable () |
| disable program | |
| void | detachShader (GLSLShader &shader) |
| detach the given shader (this is safe to be called outside of a valid GL context) | |
| void | detachShader (GLuint shader) |
| detach the given shader (this is safe to be called outside of a valid GL context) | |
| GLuint | getHandle () const |
| get the program's handle (you need to create() the buffer before you get a handle) | |
| bool | isValid () const |
| check if the program is valid | |
| void | create () |
| create the program (requires valid GL context) | |
| void | destroy () |
| destroy the resource | |
| virtual void | contextDestroyed () |
| forget the resource, the context was destroyed | |
Definition at line 343 of file mlGLResources.h.
| GLSLProgram::GLSLProgram | ( | ) | [inline] |
Definition at line 345 of file mlGLResources.h.
| virtual GLSLProgram::~GLSLProgram | ( | ) | [inline, virtual] |
Definition at line 346 of file mlGLResources.h.
| virtual void GLSLProgram::contextDestroyed | ( | ) | [inline, virtual] |
forget the resource, the context was destroyed
Implements GLResource.
Definition at line 370 of file mlGLResources.h.
| void GLSLProgram::create | ( | ) |
create the program (requires valid GL context)
| void GLSLProgram::destroy | ( | ) |
destroy the resource
| void GLSLProgram::detachShader | ( | GLuint | shader | ) |
detach the given shader (this is safe to be called outside of a valid GL context)
| void GLSLProgram::detachShader | ( | GLSLShader & | shader | ) |
detach the given shader (this is safe to be called outside of a valid GL context)
| void GLSLProgram::disable | ( | ) |
disable program
| GLuint GLSLProgram::getHandle | ( | ) | const [inline] |
get the program's handle (you need to create() the buffer before you get a handle)
Definition at line 358 of file mlGLResources.h.
| bool GLSLProgram::isValid | ( | ) | const [inline] |
1.5.8