GlobeEngine
ge::Buffer< TYPE > Class Template Reference

#include <Buffer.h>

Public Member Functions

 Buffer ()
 
 ~Buffer ()
 
void clear ()
 
bool generateHandle ()
 
void copyToBufferCustom (GLsizeiptr _size, const GLvoid *_data, GLenum _access=GL_STATIC_DRAW)
 
template<typename T >
void copyToBufferByData (GLuint _count, const T *_data, GLenum _access=GL_STATIC_DRAW)
 
void copyToBufferUInt (GLuint _size, const GLvoid *_data, GLenum _access=GL_STATIC_DRAW)
 
template<typename T >
T * mapBuffer (GLuint _count, GLenum _usage=GL_STATIC_DRAW, GLbitfield _mode=GL_MAP_WRITE_BIT|GL_MAP_INVALIDATE_BUFFER_BIT)
 
template<typename T >
T * mapBufferStorage (GLuint _count, GLbitfield _storageMode=GL_MAP_WRITE_BIT, GLbitfield _mode=GL_MAP_WRITE_BIT|GL_MAP_INVALIDATE_BUFFER_BIT)
 
void unmapBuffer ()
 
void bindBuffer ()
 
void unbindBuffer ()
 
GLuint getBufferHandle (unsigned int _layerid)
 

Constructor & Destructor Documentation

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

Member Function Documentation

template<int TYPE>
void ge::Buffer< TYPE >::bindBuffer ( )
inline
template<int TYPE>
void ge::Buffer< TYPE >::clear ( )
inline
template<int TYPE>
template<typename T >
void ge::Buffer< TYPE >::copyToBufferByData ( GLuint  _count,
const T *  _data,
GLenum  _access = GL_STATIC_DRAW 
)
inline
template<int TYPE>
void ge::Buffer< TYPE >::copyToBufferCustom ( GLsizeiptr  _size,
const GLvoid *  _data,
GLenum  _access = GL_STATIC_DRAW 
)
inline
template<int TYPE>
void ge::Buffer< TYPE >::copyToBufferUInt ( GLuint  _size,
const GLvoid *  _data,
GLenum  _access = GL_STATIC_DRAW 
)
inline
template<int TYPE>
bool ge::Buffer< TYPE >::generateHandle ( )
inline
template<int TYPE>
GLuint ge::Buffer< TYPE >::getBufferHandle ( unsigned int  _layerid)
inline
template<int TYPE>
template<typename T >
T* ge::Buffer< TYPE >::mapBuffer ( GLuint  _count,
GLenum  _usage = GL_STATIC_DRAW,
GLbitfield  _mode = GL_MAP_WRITE_BIT | GL_MAP_INVALIDATE_BUFFER_BIT 
)
inline
template<int TYPE>
template<typename T >
T* ge::Buffer< TYPE >::mapBufferStorage ( GLuint  _count,
GLbitfield  _storageMode = GL_MAP_WRITE_BIT,
GLbitfield  _mode = GL_MAP_WRITE_BIT | GL_MAP_INVALIDATE_BUFFER_BIT 
)
inline
template<int TYPE>
void ge::Buffer< TYPE >::unbindBuffer ( )
inline
template<int TYPE>
void ge::Buffer< TYPE >::unmapBuffer ( )
inline

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