GlTextureObject Class Reference

A class for managing OpenGL textures. More...

#include <GlTextureResource.h>

List of all members.

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...


Detailed Description

A class for managing OpenGL textures.

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.


Member Function Documentation

GLuint* GlTextureObject::obtainResource ( const Args args  )  const

Allocates one or more texture IDs.

Parameters:
args The arguments for obtaining the resource. Should be of type GlTextureObject::Args.
Returns:
A pointer to the texture IDs or NULL.

Definition at line 50 of file GlTextureResource.h.

void GlTextureObject::releaseResource ( const Args args,
GLuint *  pTextures 
) const

Releases one or more texture IDs.

Parameters:
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.


Software Development Kit - Opticks 4.9.0 Build 16218