Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   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 31 of file OpenGLCache.h.


Constructor & Destructor Documentation

OpenGLCache::OpenGLCache  
 

Definition at line 23 of file OpenGLCache.C.

References NULL.

OpenGLCache::~OpenGLCache  
 

Definition at line 27 of file OpenGLCache.C.


Member Function Documentation

GLuint OpenGLCache::deleteUnused  
 

Delete first unused ID and return tag.

Definition at line 55 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 35 of file OpenGLCache.C.

Referenced by OpenGLRenderer::render, and OpenGLRenderer::require_volume_texture.

void OpenGLCache::markUnused  
 

mark everything unused for new frame.

Definition at line 39 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 45 of file OpenGLCache.C.

References GLCACHE_FAIL.

Referenced by OpenGLRenderer::render, and OpenGLRenderer::require_volume_texture.


The documentation for this class was generated from the following files:
Generated on Thu Jul 24 01:28:17 2008 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002