Lagrange
VertexBuffer Struct Reference

Classes

struct  DataDescription
 

Public Member Functions

 VertexBuffer (GLenum _target=GL_ARRAY_BUFFER)
 
template<typename Matrix >
void upload (const Matrix &M)
 
template<typename T >
void upload (const std::vector< T > &arr, uint32_t component_count=1)
 
void initialize ()
 
void upload (const void *data, size_t byte_size, DataDescription &desc)
 
void upload (GLuint byte_size, const uint8_t *data, GLsizei count, bool integral, GLenum gl_type)
 
void download (GLuint size_, uint8_t *data) const
 
void free ()
 

Public Attributes

GLenum target
 
GLuint id
 
GLuint size
 
GLuint glType
 
bool is_integral
 
GLsizei count
 

The documentation for this struct was generated from the following files: