#include <mlGLResources.h>

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 | |
Definition at line 44 of file mlGLResources.h.
| GLTexture::GLTexture | ( | ) | [inline] |
Definition at line 47 of file mlGLResources.h.
| GLTexture::~GLTexture | ( | ) | [inline] |
Definition at line 48 of file mlGLResources.h.
| 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] |
1.5.8