MeVisLabToolboxReference
GLTexture Class Reference

Texture class. More...

#include <mlGLResources.h>

Inheritance diagram for GLTexture:
GLResource

List of all members.

Public Member Functions

 GLTexture ()
 ~GLTexture ()
GLuint getHandle () const
 get the texture's handle (you need to create() the texture before you get a handle)
bool isValid () const
 check if the texture is valid
void create ()
 create the texture (requires valid GL context)
void destroy ()
 destroy the resource
virtual void contextDestroyed ()
 forget the resource, the context was destroyed

Detailed Description

Texture class.

Definition at line 44 of file mlGLResources.h.


Constructor & Destructor Documentation

GLTexture::GLTexture ( ) [inline]

Definition at line 47 of file mlGLResources.h.

GLTexture::~GLTexture ( ) [inline]

Definition at line 48 of file mlGLResources.h.


Member Function Documentation

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

forget the resource, the context was destroyed

Implements GLResource.

Definition at line 63 of file mlGLResources.h.

void GLTexture::create ( )

create the texture (requires valid GL context)

void GLTexture::destroy ( )

destroy the resource

GLuint GLTexture::getHandle ( ) const [inline]

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

Definition at line 51 of file mlGLResources.h.

bool GLTexture::isValid ( ) const [inline]

check if the texture is valid

Definition at line 54 of file mlGLResources.h.


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