MeVisLabToolboxReference
GLSLProgram Class Reference

GLSL Program resource. More...

#include <mlGLResources.h>

Inheritance diagram for GLSLProgram:
GLResource

List of all members.

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

Detailed Description

GLSL Program resource.

Definition at line 343 of file mlGLResources.h.


Constructor & Destructor Documentation

GLSLProgram::GLSLProgram ( ) [inline]

Definition at line 345 of file mlGLResources.h.

virtual GLSLProgram::~GLSLProgram ( ) [inline, virtual]

Definition at line 346 of file mlGLResources.h.


Member Function Documentation

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]

check if the program is valid

Definition at line 361 of file mlGLResources.h.


The documentation for this class was generated from the following file: