#include <GlTextureResource.h>
Public Member Functions | |
| GLuint * | obtainResource (const Args &args) const |
| void | releaseResource (const Args &args, GLuint *pTextures) const |
Classes | |
| class | Args |
| This is an implementation detail of the GlTextureObject class. More... | |
When created, the object records the current OpenGL context and allocates textures. When destroyed, it makes the recorded context current, deletes the textures, and restores the context.
Definition at line 23 of file GlTextureResource.h.
| GLuint* GlTextureObject::obtainResource | ( | const Args & | args | ) | const |
Allocates one or more texture IDs.
| args | The arguments for obtaining the resource. Should be of type GlTextureObject::Args. |
NULL. Definition at line 50 of file GlTextureResource.h.
| void GlTextureObject::releaseResource | ( | const Args & | args, | |
| GLuint * | pTextures | |||
| ) | const |
Releases one or more texture IDs.
| args | The arguments for releasing the resource. Should be of type GlTextureObject::Args. | |
| pTextures | A pointer to the texture IDs to be freed. |
Definition at line 71 of file GlTextureResource.h.