|
moGL
travis-test-3
Modern OpenGL wrapper, thin C++14 header-only layer on top of the OpenGL 4.5+ core spec
|
#include <buffer.hpp>


Public Member Functions | |
| ~Buffer () | |
| Buffer (const Buffer &other) | |
| Buffer & | operator= (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 > | |
| 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) |
| mogl::Buffer::Buffer | ( | GLenum | target | ) | [inline, protected] |
| mogl::Buffer::~Buffer | ( | ) | [inline] |
| mogl::Buffer::Buffer | ( | const Buffer & | other | ) |
| mogl::Buffer::Buffer | ( | Buffer && | other | ) |
| 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] |
| void mogl::Buffer::get | ( | GLenum | property, |
| T * | value | ||
| ) |
| T mogl::Buffer::get | ( | GLenum | property | ) |
| void mogl::Buffer::get | ( | GLenum | property, |
| GLint * | value | ||
| ) | [inline] |
| void mogl::Buffer::get | ( | GLenum | property, |
| GLint64 * | value | ||
| ) | [inline] |
| GLint mogl::Buffer::get | ( | GLenum | property | ) | [inline] |
| 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] |
Implements mogl::Handle< GLuint >.
| void * mogl::Buffer::map | ( | GLenum | access | ) | [inline] |
| void * mogl::Buffer::mapRange | ( | GLintptr | offset, |
| GLsizeiptr | length, | ||
| GLbitfield | access | ||
| ) | [inline] |
| 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] |
1.7.6.1