Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

OpenGLCache Class Reference

Class to manage caching of OpenGL-related resources and handles such as display lists, textures, vertex buffer objects, etc. The IDs being stored are sparse unsigned long integer keys. More...

#include <OpenGLCache.h>

List of all members.

Public Methods

 OpenGLCache ()
 ~OpenGLCache ()
void encache (unsigned long id, GLuint tag)
void markUnused ()
 mark everything unused for new frame. More...

GLuint markUsed (unsigned long id)
 mark given id used and return tag. More...

GLuint deleteUnused ()
 Delete first unused ID and return tag. More...


Detailed Description

Class to manage caching of OpenGL-related resources and handles such as display lists, textures, vertex buffer objects, etc. The IDs being stored are sparse unsigned long integer keys.

Definition at line 32 of file OpenGLCache.h.


Constructor & Destructor Documentation

OpenGLCache::OpenGLCache  
 

Definition at line 24 of file OpenGLCache.C.

References NULL.

OpenGLCache::~OpenGLCache  
 

Definition at line 28 of file OpenGLCache.C.


Member Function Documentation

GLuint OpenGLCache::deleteUnused  
 

Delete first unused ID and return tag.

Definition at line 56 of file OpenGLCache.C.

References GLCACHE_FAIL, and NULL.

Referenced by OpenGLRenderer::free_opengl_ctx, and OpenGLRenderer::render_done.

void OpenGLCache::encache unsigned long    id,
GLuint    tag
 

Definition at line 36 of file OpenGLCache.C.

Referenced by OpenGLRenderer::require_volume_texture.

void OpenGLCache::markUnused  
 

mark everything unused for new frame.

Definition at line 40 of file OpenGLCache.C.

Referenced by OpenGLRenderer::free_opengl_ctx, and OpenGLRenderer::prepare3D.

GLuint OpenGLCache::markUsed unsigned long    id
 

mark given id used and return tag.

Definition at line 46 of file OpenGLCache.C.

References GLCACHE_FAIL.

Referenced by OpenGLRenderer::require_volume_texture.


The documentation for this class was generated from the following files:
Generated on Wed Apr 24 02:45:02 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002