All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
Eegeo::Rendering::DynamicBuffer< T > Class Template Reference

Template class for representing a dynamic GL Buffer with an in memory representation of the data (Vertex or Index data) that can be glBufferSubData copied. More...

#include <DynamicBuffer.h>

Public Member Functions

 DynamicBuffer (GLenum bufferType, int initialCapacity)
 
void GenerateBuffers ()
 
void DestroyBuffers ()
 
void Reset ()
 
void AddElement (const T &element)
 
int CurrentElementCount () const
 
int BufferCapacity () const
 
size_t BufferCapacityBytes () const
 
size_t BufferDataBytes () const
 
const std::vector< T > & GetBufferData () const
 
u32 GetGLBuffer ()
 

Detailed Description

template<class T>
class Eegeo::Rendering::DynamicBuffer< T >

Template class for representing a dynamic GL Buffer with an in memory representation of the data (Vertex or Index data) that can be glBufferSubData copied.


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