moGL  travis-test-3
Modern OpenGL wrapper, thin C++14 header-only layer on top of the OpenGL 4.5+ core spec
 All Classes Namespaces Files Functions Variables Defines
Public Member Functions | Protected Member Functions
mogl::Buffer Class Reference

#include <buffer.hpp>

Inheritance diagram for mogl::Buffer:
Inheritance graph
[legend]
Collaboration diagram for mogl::Buffer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ~Buffer ()
 Buffer (const Buffer &other)
Bufferoperator= (const Buffer &other)
 Buffer (Buffer &&other)
void setStorage (GLsizeiptr size, const void *data, GLbitfield flags)
void setData (GLsizeiptr size, const void *data, GLenum usage)
void setSubData (GLintptr offset, GLsizeiptr size, const void *data)
void copySubData (GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size)
void clearData (GLenum internalformat, GLenum format, GLenum type, const void *data)
void clearSubData (GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data)
void invalidateData ()
void invalidateSubData (GLintptr offset, GLsizeiptr length)
void * map (GLenum access)
void * mapRange (GLintptr offset, GLsizeiptr length, GLbitfield access)
bool unmap ()
void flushMappedRange (GLintptr offset, GLsizeiptr length)
template<class T >
void get (GLenum property, T *value)
template<class T >
get (GLenum property)
void * getBufferPointer ()
void getSubData (GLintptr offset, GLsizeiptr size, void *data)
GLenum getTarget () const
bool isHandleValid () const override final
template<>
void get (GLenum property, GLint *value)
template<>
void get (GLenum property, GLint64 *value)
template<>
GLint get (GLenum property)
template<>
GLint64 get (GLenum property)

Protected Member Functions

 Buffer (GLenum target)
void bind ()
void bindBufferBase (GLuint index)
void bindBufferRange (GLuint index, GLintptr offset, GLsizeiptr size)

Constructor & Destructor Documentation

mogl::Buffer::Buffer ( GLenum  target) [inline, protected]
mogl::Buffer::~Buffer ( ) [inline]
mogl::Buffer::Buffer ( const Buffer other)

Member Function Documentation

void mogl::Buffer::bind ( ) [inline, protected]
void mogl::Buffer::bindBufferBase ( GLuint  index) [inline, protected]
void mogl::Buffer::bindBufferRange ( GLuint  index,
GLintptr  offset,
GLsizeiptr  size 
) [inline, protected]
void mogl::Buffer::clearData ( GLenum  internalformat,
GLenum  format,
GLenum  type,
const void *  data 
) [inline]
void mogl::Buffer::clearSubData ( GLenum  internalformat,
GLintptr  offset,
GLsizeiptr  size,
GLenum  format,
GLenum  type,
const void *  data 
) [inline]
void mogl::Buffer::copySubData ( GLuint  writeBuffer,
GLintptr  readOffset,
GLintptr  writeOffset,
GLsizeiptr  size 
) [inline]
void mogl::Buffer::flushMappedRange ( GLintptr  offset,
GLsizeiptr  length 
) [inline]
template<class T >
void mogl::Buffer::get ( GLenum  property,
T *  value 
)
template<class T >
T mogl::Buffer::get ( GLenum  property)
template<>
void mogl::Buffer::get ( GLenum  property,
GLint *  value 
) [inline]
template<>
void mogl::Buffer::get ( GLenum  property,
GLint64 *  value 
) [inline]
template<>
GLint mogl::Buffer::get ( GLenum  property) [inline]
template<>
GLint64 mogl::Buffer::get ( GLenum  property) [inline]
void * mogl::Buffer::getBufferPointer ( ) [inline]
void mogl::Buffer::getSubData ( GLintptr  offset,
GLsizeiptr  size,
void *  data 
) [inline]
GLenum mogl::Buffer::getTarget ( ) const [inline]
void mogl::Buffer::invalidateData ( ) [inline]
void mogl::Buffer::invalidateSubData ( GLintptr  offset,
GLsizeiptr  length 
) [inline]
bool mogl::Buffer::isHandleValid ( ) const [inline, override, virtual]
void * mogl::Buffer::map ( GLenum  access) [inline]
void * mogl::Buffer::mapRange ( GLintptr  offset,
GLsizeiptr  length,
GLbitfield  access 
) [inline]
Buffer& mogl::Buffer::operator= ( const Buffer other)
void mogl::Buffer::setData ( GLsizeiptr  size,
const void *  data,
GLenum  usage 
) [inline]
void mogl::Buffer::setStorage ( GLsizeiptr  size,
const void *  data,
GLbitfield  flags 
) [inline]
void mogl::Buffer::setSubData ( GLintptr  offset,
GLsizeiptr  size,
const void *  data 
) [inline]
bool mogl::Buffer::unmap ( ) [inline]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Defines