#include <mlGLResources.h>

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 | |
Definition at line 72 of file mlGLResources.h.
| GLTextures::GLTextures | ( | ) | [inline] |
Definition at line 74 of file mlGLResources.h.
| GLTextures::~GLTextures | ( | ) | [inline] |
Definition at line 75 of file mlGLResources.h.
| 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] |
| bool GLTextures::isValid | ( | ) | const [inline] |
1.5.8