moGL
travis-test-3
Modern OpenGL wrapper, thin C++14 header-only layer on top of the OpenGL 4.5+ core spec
|
#include <vertexarray.hpp>
Public Member Functions | |
VertexArray () | |
~VertexArray () | |
VertexArray (const VertexArray &other) | |
VertexArray & | operator= (const VertexArray &other) |
VertexArray (VertexArray &&other) | |
void | bind () |
void | enableAttrib (GLuint index) |
void | disableAttrib (GLuint index) |
void | setVertexBuffer (GLuint bindingindex, GLuint buffer, GLintptr offset=GLintptr(0), GLsizei stride=0) |
void | setVertexBuffers (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides) |
void | setElementBuffer (GLuint buffer) |
void | setAttribFormat (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset) |
void | setAttribIFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset) |
void | setAttribLFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset) |
void | setAttribBinding (GLuint attribindex, GLuint bindingindex) |
void | setBindingDivisor (GLuint bindingindex, GLuint divisor) |
template<class T > | |
void | get (GLenum property, T *value) |
template<class T > | |
T | get (GLenum property) |
template<class T > | |
void | get (GLuint index, GLenum property, T *value) |
template<class T > | |
T | get (GLuint index, GLenum property) |
bool | isHandleValid () const override final |
template<> | |
void | get (GLenum property, GLint *value) |
template<> | |
GLint | get (GLenum property) |
template<> | |
void | get (GLuint index, GLenum property, GLint *value) |
template<> | |
void | get (GLuint index, GLenum property, GLint64 *value) |
template<> | |
GLint | get (GLuint index, GLenum property) |
template<> | |
GLint64 | get (GLuint index, GLenum property) |
mogl::VertexArray::VertexArray | ( | ) | [inline] |
mogl::VertexArray::~VertexArray | ( | ) | [inline] |
mogl::VertexArray::VertexArray | ( | const VertexArray & | other | ) |
mogl::VertexArray::VertexArray | ( | VertexArray && | other | ) |
void mogl::VertexArray::bind | ( | ) | [inline] |
void mogl::VertexArray::disableAttrib | ( | GLuint | index | ) | [inline] |
void mogl::VertexArray::enableAttrib | ( | GLuint | index | ) | [inline] |
void mogl::VertexArray::get | ( | GLenum | property, |
T * | value | ||
) |
T mogl::VertexArray::get | ( | GLenum | property | ) |
void mogl::VertexArray::get | ( | GLuint | index, |
GLenum | property, | ||
T * | value | ||
) |
T mogl::VertexArray::get | ( | GLuint | index, |
GLenum | property | ||
) |
void mogl::VertexArray::get | ( | GLenum | property, |
GLint * | value | ||
) | [inline] |
GLint mogl::VertexArray::get | ( | GLenum | property | ) | [inline] |
void mogl::VertexArray::get | ( | GLuint | index, |
GLenum | property, | ||
GLint * | value | ||
) | [inline] |
void mogl::VertexArray::get | ( | GLuint | index, |
GLenum | property, | ||
GLint64 * | value | ||
) | [inline] |
GLint mogl::VertexArray::get | ( | GLuint | index, |
GLenum | property | ||
) | [inline] |
GLint64 mogl::VertexArray::get | ( | GLuint | index, |
GLenum | property | ||
) | [inline] |
bool mogl::VertexArray::isHandleValid | ( | ) | const [inline, override, virtual] |
Implements mogl::Handle< GLuint >.
VertexArray& mogl::VertexArray::operator= | ( | const VertexArray & | other | ) |
void mogl::VertexArray::setAttribBinding | ( | GLuint | attribindex, |
GLuint | bindingindex | ||
) | [inline] |
void mogl::VertexArray::setAttribFormat | ( | GLuint | attribindex, |
GLint | size, | ||
GLenum | type, | ||
GLboolean | normalized, | ||
GLuint | relativeoffset | ||
) | [inline] |
void mogl::VertexArray::setAttribIFormat | ( | GLuint | attribindex, |
GLint | size, | ||
GLenum | type, | ||
GLuint | relativeoffset | ||
) | [inline] |
void mogl::VertexArray::setAttribLFormat | ( | GLuint | attribindex, |
GLint | size, | ||
GLenum | type, | ||
GLuint | relativeoffset | ||
) | [inline] |
void mogl::VertexArray::setBindingDivisor | ( | GLuint | bindingindex, |
GLuint | divisor | ||
) | [inline] |
void mogl::VertexArray::setElementBuffer | ( | GLuint | buffer | ) | [inline] |
void mogl::VertexArray::setVertexBuffer | ( | GLuint | bindingindex, |
GLuint | buffer, | ||
GLintptr | offset = GLintptr(0) , |
||
GLsizei | stride = 0 |
||
) | [inline] |
void mogl::VertexArray::setVertexBuffers | ( | GLuint | first, |
GLsizei | count, | ||
const GLuint * | buffers, | ||
const GLintptr * | offsets, | ||
const GLsizei * | strides | ||
) | [inline] |