All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Public Member Functions | Static Public Member Functions | List of all members
Eegeo::Rendering::GlBufferPool Class Reference

A pool of Open GL buffers. More...

#include <GlBufferPool.h>

Inheritance diagram for Eegeo::Rendering::GlBufferPool:
Eegeo::NonCopyable

Public Member Functions

 GlBufferPool (bool tryToEnableBufferPooling)
 
void Update (float dt)
 
GLuint AllocateVertexBuffer (size_t bufferSize, const std::string &debugName)
 
GLuint AllocateIndexBuffer (size_t bufferSize, const std::string &debugName)
 
void ReleaseVertexBuffer (GLuint bufferId)
 
void ReleaseIndexBuffer (GLuint bufferId)
 
void DumpDebugInfo ()
 
int GetNumOfAllocations () const
 
int GetNumOfReleases () const
 
int GetNumOfFree ()
 
int GetNumOfAllocated ()
 

Static Public Member Functions

static std::string CreateDebugString (const std::string &prefix, int meshIndex, const Streaming::MortonKey &mortonKey, const std::string &materialName="")
 

Additional Inherited Members

- Protected Member Functions inherited from Eegeo::NonCopyable
 NonCopyable (const NonCopyable &)=delete
 
NonCopyableoperator= (const NonCopyable &)=delete
 

Detailed Description

A pool of Open GL buffers.

The cost of creating Open GL buffers can be high on some platforms. This class allows buffers to be recycled, thus avoiding the high cost of creating them.


The documentation for this class was generated from the following files: