MeVisLabToolboxReference
GLTextures Class Reference

Texture class that manages multiple texture ids. More...

#include <mlGLResources.h>

Inheritance diagram for GLTextures:
GLResource

List of all members.

Public Member Functions

 GLTextures ()
 ~GLTextures ()
GLuint getHandle (int i) const
 get the texture's handle (you need to create() the texture before you get a handle)
int getNumTextures () const
 get the number of created textures
bool isValid () const
 check if the texture is valid
void create (unsigned int i)
 create the textures (requires valid GL context)
void destroy ()
 destroy the resource
virtual void contextDestroyed ()
 forget the resource, the context was destroyed

Detailed Description

Texture class that manages multiple texture ids.

Definition at line 72 of file mlGLResources.h.


Constructor & Destructor Documentation

GLTextures::GLTextures ( ) [inline]

Definition at line 74 of file mlGLResources.h.

GLTextures::~GLTextures ( ) [inline]

Definition at line 75 of file mlGLResources.h.


Member Function Documentation

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

forget the resource, the context was destroyed

Implements GLResource.

Definition at line 93 of file mlGLResources.h.

void GLTextures::create ( unsigned int  i)

create the textures (requires valid GL context)

void GLTextures::destroy ( )

destroy the resource

GLuint GLTextures::getHandle ( int  i) const [inline]

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

Definition at line 78 of file mlGLResources.h.

int GLTextures::getNumTextures ( ) const [inline]

get the number of created textures

Definition at line 81 of file mlGLResources.h.

bool GLTextures::isValid ( ) const [inline]

check if the texture is valid

Definition at line 84 of file mlGLResources.h.


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