MeVisLabToolboxReference
GLSLShader Class Reference

GLSL Shader resource. More...

#include <mlGLResources.h>

Inheritance diagram for GLSLShader:
GLResource GLSLFragmentShader GLSLGeometryShader GLSLVertexShader

List of all members.

Public Member Functions

 GLSLShader (GLenum shaderType)
virtual ~GLSLShader ()
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 Shader resource.

Definition at line 269 of file mlGLResources.h.


Constructor & Destructor Documentation

GLSLShader::GLSLShader ( GLenum  shaderType) [inline]

Definition at line 271 of file mlGLResources.h.

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

Definition at line 272 of file mlGLResources.h.


Member Function Documentation

virtual void GLSLShader::contextDestroyed ( ) [inline, virtual]

forget the resource, the context was destroyed

Implements GLResource.

Definition at line 287 of file mlGLResources.h.

void GLSLShader::create ( )

create the program (requires valid GL context)

void GLSLShader::destroy ( )

destroy the resource

GLuint GLSLShader::getHandle ( ) const [inline]

get the program's handle (you need to create() the buffer before you get a handle)

Definition at line 275 of file mlGLResources.h.

bool GLSLShader::isValid ( ) const [inline]

check if the program is valid

Definition at line 278 of file mlGLResources.h.


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