GlobeEngine
ge::BufferArray< TYPE > Class Template Reference

#include <BufferArray.h>

Public Member Functions

 BufferArray ()
 
 ~BufferArray ()
 
void generateHandles (unsigned int _count)
 
void copyToBuffer (unsigned int _layerid, GLsizeiptr _size, const GLvoid *_data, GLenum _access=GL_STATIC_DRAW)
 
template<typename T >
T * mapBuffer (unsigned int _layerid, GLuint _size, GLenum _usage=GL_STATIC_DRAW, GLbitfield _mode=GL_MAP_WRITE_BIT|GL_MAP_INVALIDATE_BUFFER_BIT)
 
void unmapBuffer (unsigned int _layerid)
 
void unmapAllBuffers ()
 
void bindBuffer (unsigned int _layerid)
 
void unbindBuffer ()
 
GLuint getBufferHandle (unsigned int _layerid)
 
void setAttributeDivisor (GLuint _attributeIndex, GLuint _divisor)
 

Constructor & Destructor Documentation

template<int TYPE>
ge::BufferArray< TYPE >::BufferArray ( )
inline
template<int TYPE>
ge::BufferArray< TYPE >::~BufferArray ( )
inline

Member Function Documentation

template<int TYPE>
void ge::BufferArray< TYPE >::bindBuffer ( unsigned int  _layerid)
inline
template<int TYPE>
void ge::BufferArray< TYPE >::copyToBuffer ( unsigned int  _layerid,
GLsizeiptr  _size,
const GLvoid *  _data,
GLenum  _access = GL_STATIC_DRAW 
)
inline
template<int TYPE>
void ge::BufferArray< TYPE >::generateHandles ( unsigned int  _count)
inline
template<int TYPE>
GLuint ge::BufferArray< TYPE >::getBufferHandle ( unsigned int  _layerid)
inline
template<int TYPE>
template<typename T >
T* ge::BufferArray< TYPE >::mapBuffer ( unsigned int  _layerid,
GLuint  _size,
GLenum  _usage = GL_STATIC_DRAW,
GLbitfield  _mode = GL_MAP_WRITE_BIT | GL_MAP_INVALIDATE_BUFFER_BIT 
)
inline
template<int TYPE>
void ge::BufferArray< TYPE >::setAttributeDivisor ( GLuint  _attributeIndex,
GLuint  _divisor 
)
inline
template<int TYPE>
void ge::BufferArray< TYPE >::unbindBuffer ( )
inline
template<int TYPE>
void ge::BufferArray< TYPE >::unmapAllBuffers ( )
inline
template<int TYPE>
void ge::BufferArray< TYPE >::unmapBuffer ( unsigned int  _layerid)
inline

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