#include <llgl.h>
Public Types | |
typedef std::vector< NameEntry > | name_list_t |
Public Member Functions | |
LLGLNamePool () | |
virtual | ~LLGLNamePool () |
void | upkeep () |
void | cleanup () |
GLuint | allocate () |
void | release (GLuint name) |
Static Public Member Functions | |
static void | registerPool (LLGLNamePool *pool) |
static void | upkeepPools () |
static void | cleanupPools () |
Public Attributes | |
name_list_t | mNameList |
Protected Types | |
typedef std::vector < LLGLNamePool * > | pool_list_t |
Protected Member Functions | |
virtual GLuint | allocateName ()=0 |
virtual void | releaseName (GLuint name)=0 |
Static Protected Attributes | |
static pool_list_t | sInstances |
Classes | |
struct | CompareUsed |
struct | NameEntry |
Definition at line 317 of file llgl.h.
typedef std::vector<NameEntry> LLGLNamePool::name_list_t |
typedef std::vector<LLGLNamePool*> LLGLNamePool::pool_list_t [protected] |
LLGLNamePool::~LLGLNamePool | ( | ) | [virtual] |
void LLGLNamePool::upkeep | ( | ) |
Definition at line 1588 of file llgl.cpp.
References mNameList.
Referenced by upkeepPools().
void LLGLNamePool::cleanup | ( | ) |
Definition at line 1593 of file llgl.cpp.
References mNameList, and releaseName().
Referenced by cleanupPools().
GLuint LLGLNamePool::allocate | ( | ) |
Definition at line 1603 of file llgl.cpp.
References allocateName(), mNameList, LLGLNamePool::NameEntry::name, TRUE, and LLGLNamePool::NameEntry::used.
Referenced by LLSpatialGroup::doOcclusion(), LLVertexBuffer::genBuffer(), and LLVertexBuffer::genIndices().
void LLGLNamePool::release | ( | GLuint | name | ) |
Definition at line 1622 of file llgl.cpp.
References FALSE, and mNameList.
Referenced by LLSpatialGroup::destroyGL(), LLVertexBuffer::releaseBuffer(), LLVertexBuffer::releaseIndices(), and LLSpatialGroup::~LLSpatialGroup().
void LLGLNamePool::registerPool | ( | LLGLNamePool * | pool | ) | [static] |
Definition at line 1570 of file llgl.cpp.
References sInstances.
Referenced by LLVertexBuffer::initClass(), and LLSpatialPartition::LLSpatialPartition().
void LLGLNamePool::upkeepPools | ( | ) | [static] |
Definition at line 1635 of file llgl.cpp.
References sInstances, and upkeep().
Referenced by display().
void LLGLNamePool::cleanupPools | ( | ) | [static] |
Definition at line 1645 of file llgl.cpp.
References cleanup(), and sInstances.
Referenced by LLPipeline::resetVertexBuffers().
virtual GLuint LLGLNamePool::allocateName | ( | ) | [protected, pure virtual] |
Implemented in LLVBOPool, and LLOcclusionQueryPool.
Referenced by allocate().
virtual void LLGLNamePool::releaseName | ( | GLuint | name | ) | [protected, pure virtual] |
Implemented in LLVBOPool, and LLOcclusionQueryPool.
Referenced by cleanup().
Definition at line 335 of file llgl.h.
Referenced by allocate(), cleanup(), release(), LLPipeline::resetVertexBuffers(), and upkeep().
LLGLNamePool::pool_list_t LLGLNamePool::sInstances [static, protected] |
Definition at line 352 of file llgl.h.
Referenced by cleanupPools(), registerPool(), upkeepPools(), and ~LLGLNamePool().