Lums
Public Member Functions | List of all members
lm::VertexBuffer< Attr > Class Template Reference

A class representing a buffer of vertices. More...

#include <VertexBuffer.hpp>

Public Member Functions

 VertexBuffer ()
 
template<typename... Pack>
void push (Pack...values)
 
void send ()
 
void draw (GLenum mode)
 
void reset ()
 

Detailed Description

template<GLint... Attr>
class lm::VertexBuffer< Attr >

A class representing a buffer of vertices.

Template Parameters
AttrThe attributes

Constructor & Destructor Documentation

template<GLint... Attr>
lm::VertexBuffer< Attr >::VertexBuffer ( )
inline

Create a vertex buffer

Member Function Documentation

template<GLint... Attr>
void lm::VertexBuffer< Attr >::draw ( GLenum  mode)
inline

Draw the vertex buffer

Parameters
modeThe OpenGL draw mode, can be GL_TRIANGLES, GL_LINES or GL_POINTS
template<GLint... Attr>
template<typename... Pack>
void lm::VertexBuffer< Attr >::push ( Pack...  values)
inline

Push values onto the vertex buffer, according to the attributes

Template Parameters
PackTypes for values
Parameters
valuesValues
template<GLint... Attr>
void lm::VertexBuffer< Attr >::reset ( )
inline

Reset the vertex buffer

template<GLint... Attr>
void lm::VertexBuffer< Attr >::send ( )
inline

Send the vertex buffer into the GPU


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