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
mogl::VertexArray Class Reference

#include <vertexarray.hpp>

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

List of all members.

Public Member Functions

 VertexArray ()
 ~VertexArray ()
 VertexArray (const VertexArray &other)
VertexArrayoperator= (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 >
get (GLenum property)
template<class T >
void get (GLuint index, GLenum property, T *value)
template<class 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)

Constructor & Destructor Documentation


Member Function Documentation

void mogl::VertexArray::bind ( ) [inline]
void mogl::VertexArray::disableAttrib ( GLuint  index) [inline]
void mogl::VertexArray::enableAttrib ( GLuint  index) [inline]
template<class T >
void mogl::VertexArray::get ( GLenum  property,
T *  value 
)
template<class T >
T mogl::VertexArray::get ( GLenum  property)
template<class T >
void mogl::VertexArray::get ( GLuint  index,
GLenum  property,
T *  value 
)
template<class T >
T mogl::VertexArray::get ( GLuint  index,
GLenum  property 
)
template<>
void mogl::VertexArray::get ( GLenum  property,
GLint *  value 
) [inline]
template<>
GLint mogl::VertexArray::get ( GLenum  property) [inline]
template<>
void mogl::VertexArray::get ( GLuint  index,
GLenum  property,
GLint *  value 
) [inline]
template<>
void mogl::VertexArray::get ( GLuint  index,
GLenum  property,
GLint64 *  value 
) [inline]
template<>
GLint mogl::VertexArray::get ( GLuint  index,
GLenum  property 
) [inline]
template<>
GLint64 mogl::VertexArray::get ( GLuint  index,
GLenum  property 
) [inline]
bool mogl::VertexArray::isHandleValid ( ) const [inline, override, virtual]
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]

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