8 #ifndef VERTEX_BUFFER_OBJECT_HPP 9 #define VERTEX_BUFFER_OBJECT_HPP 11 #include <SimpleGL_gl/SimpleGL_gl_Export.h> 17 #include <glm/glm.hpp> 203 void uploadSubData(
BufferTarget target,
long offset,
long size,
float* data);
213 void uploadSubData(
BufferTarget target,
long offset,
long size, std::vector<float> data);
223 void uploadSubData(
BufferTarget target,
long offset,
long size, std::vector<glm::vec2> data);
233 void uploadSubData(
BufferTarget target,
long offset,
long size, std::vector<glm::vec3> data);
243 void uploadSubData(
BufferTarget target,
long offset,
long size, std::vector<glm::vec4> data);
Equivalent to GL_STATIC_DRAW.
Equivalent to GL_ARRAY_BUFFER.
Equivalent to GL_STATIC_COPY.
BufferUsage
This enum wraps the buffer object's usages.
Equivalent to GL_DYNAMIC_READ.
Equivalent to GL_READ_ONLY.
MapRangeAccess
This enum wraps the buffer object's map range access bits.
Equivalent to GL_ELEMENT_ARRAY_BUFFER.
Equivalent to GL_MAP_READ_BIT.
Equivalent to GL_STATIC_READ.
This class wraps an OpenGL buffer object.
Generic namespace for the SimpleGL framework.
Equivalent to GL_WRITE_ONLY.
MapAccess
This enum wraps the buffer object's map accesses.
Equivalent to GL_STREAM_READ.
Equivalent to GL_DYNAMIC_DRAW.
Equivalent to GL_STREAM_DRAW.
Equivalent to GL_STREAM_COPY.
BufferTarget
This enum wraps the buffer object's targets.
Equivalent to GL_READ_WRITE.
Equivalent to GL_DYNAMIC_COPY.
Equivalent to GL_MAP_WRITE_BIT.