MeVisLab Toolbox Reference
GLResource Class Referenceabstract

Collection of OpenGL related resource classes, such as textures, buffers, fragment programs etc. More...

#include <mlGLResources.h>

Inheritance diagram for GLResource:
GL2DFont GLBuffer GLFragmentProgramARB GLFrameBuffer GLRenderBuffer GLSLProgram GLSLShader GLTexture GLTextures

Public Member Functions

 GLResource ()
 
virtual ~GLResource ()
 
virtual void contextDestroyed ()=0
 forget the resource, the context was destroyed
 

Static Public Member Functions

static GLenum getGLError ()
 check for OpenGL error (returns GL_INVALID_OPERATION if there is no valid OpenGL context)
 

Protected Attributes

GLResource_next
 
GLResource_previous
 

Friends

class GLResourceManager
 

Detailed Description

Collection of OpenGL related resource classes, such as textures, buffers, fragment programs etc.

Abstract base class for GLResources

Definition at line 27 of file mlGLResources.h.

Constructor & Destructor Documentation

◆ GLResource()

GLResource::GLResource ( )

◆ ~GLResource()

virtual GLResource::~GLResource ( )
virtual

Member Function Documentation

◆ contextDestroyed()

virtual void GLResource::contextDestroyed ( )
pure virtual

forget the resource, the context was destroyed

Implemented in GL2DFont, GLTexture, GLTextures, GLFragmentProgramARB, GLRenderBuffer, GLFrameBuffer, GLBuffer, GLSLShader, and GLSLProgram.

◆ getGLError()

static GLenum GLResource::getGLError ( )
static

check for OpenGL error (returns GL_INVALID_OPERATION if there is no valid OpenGL context)

Friends And Related Symbol Documentation

◆ GLResourceManager

Definition at line 42 of file mlGLResources.h.

Member Data Documentation

◆ _next

GLResource* GLResource::_next
protected

Definition at line 39 of file mlGLResources.h.

◆ _previous

GLResource* GLResource::_previous
protected

Definition at line 40 of file mlGLResources.h.


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