GlTextureResource Class Reference

This is a Resource class that allocates and deletes OpenGL textures. More...

#include <GlTextureResource.h>

Inheritance diagram for GlTextureResource:

Inheritance graph

List of all members.

Public Member Functions

 GlTextureResource (GLsizei count)
QGLContext * getContext () const
GLsizei getCount () const
 operator const GLuint * () const
 operator GLuint () const


Detailed Description

This is a Resource class that allocates and deletes OpenGL textures.

This class has a conversion operator to allow a GlTextureResource object to be used wherever a GLuint* would normally be used.

Definition at line 88 of file GlTextureResource.h.


Constructor & Destructor Documentation

GlTextureResource::GlTextureResource ( GLsizei  count  ) 

Constructs a Resource object that wraps OpenGL textures.

Parameters:
count The number of textures to create.

Definition at line 97 of file GlTextureResource.h.


Member Function Documentation

QGLContext* GlTextureResource::getContext (  )  const

Gets the context which was active when the object was created.

Returns:
The context.
See also:
GlContextSave

Definition at line 108 of file GlTextureResource.h.

GLsizei GlTextureResource::getCount (  )  const

Gets the number of textures.

Returns:
The number of textures.

Definition at line 118 of file GlTextureResource.h.

GlTextureResource::operator const GLuint * (  )  const

Convenience operator which allows this object to be used wherever a const GLuint* would normally be used.

Returns:
A pointer to all textures in the list or NULL if no textures exist.

Definition at line 128 of file GlTextureResource.h.

GlTextureResource::operator GLuint (  )  const

Convenience operator which allows this object to be used wherever a GLuint would normally be used.

Returns:
The first texture in the list or 0 if no textures exist.

Definition at line 138 of file GlTextureResource.h.


Software Development Kit - Opticks 4.9.0 Build 16218