emilib
Public Types | Public Member Functions | List of all members
gl::VBO Class Reference

Public Types

enum  Type { Vertex, Index }
 

Public Member Functions

 VBO (Type type, Usage usage)
 
template<typename ElementType >
const ElementType * data () const
 
template<typename ElementType >
ElementType * allocate (size_t count)
 Will re-use memory if same size.
 
template<typename ElementType >
void append (const ElementType *elements, size_t count)
 
void clear ()
 
void invalidate ()
 
bool empty () const
 
size_t count () const
 
size_t size_bytes () const
 
void upload ()
 
void bind ()
 

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