21 #ifndef HX3D_GRAPHICS_BUFFERS_BUFFER 22 #define HX3D_GRAPHICS_BUFFERS_BUFFER 26 #include "hx3d/graphics/gl.hpp" 28 #define BUFFER_OFFSET(i) ((char *)NULL + (i)) 53 void set(
const std::vector<T>& values);
60 void add(
const std::vector<T>& values);
105 void setValue(
const unsigned int i,
const T value);
123 #include "hx3d/graphics/buffers/_inline/buffer.inl.hpp" GLuint getId()
Get the buffer ID.
void add(const std::vector< T > &values)
Add buffer values.
std::vector< T > _vector
Data.
void clear()
Clear all values.
void setValue(const unsigned int i, const T value)
Set a value.
std::vector< T > & getVector()
Get the vector.
T * data()
Get the buffer values.
T getValue(unsigned int i)
Get a value.
unsigned int size()
Get the buffer size.