MeVisLab Resolution Independence API
ml::GLResource Class Referenceabstract

Abstract base class for GLResources. More...

#include <mlGLResources.h>

Inheritance diagram for ml::GLResource:
ml::GL2DFont ml::GLBuffer ml::GLFragmentProgramARB ml::GLFrameBuffer ml::GLRenderBuffer ml::GLSLProgram ml::GLSLShader ml::GLTexture ml::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

Abstract base class for GLResources.

Definition at line 27 of file mlGLResources.h.

Constructor & Destructor Documentation

◆ GLResource()

ml::GLResource::GLResource ( )

◆ ~GLResource()

virtual ml::GLResource::~GLResource ( )
virtual

Member Function Documentation

◆ contextDestroyed()

virtual void ml::GLResource::contextDestroyed ( )
pure virtual

◆ getGLError()

static GLenum ml::GLResource::getGLError ( )
static

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

Friends And Related Symbol Documentation

◆ GLResourceManager

friend class GLResourceManager
friend

Definition at line 42 of file mlGLResources.h.

Member Data Documentation

◆ _next

GLResource* ml::GLResource::_next
protected

Definition at line 39 of file mlGLResources.h.

◆ _previous

GLResource* ml::GLResource::_previous
protected

Definition at line 40 of file mlGLResources.h.


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