VertexBuffer class
#include <core/gl/render_device.hpp>
Abstract vertex buffer.
Public functions
Function documentation
void cubos:: core:: gl:: impl:: VertexBuffer:: fill(const void* data,
std::size_t size) pure virtual
Fills the buffer with the given data.
| Parameters | |
|---|---|
| data | Pointer to data. |
| size | Data size in bytes. |
void cubos:: core:: gl:: impl:: VertexBuffer:: fill(const void* data,
std::size_t offset,
std::size_t size,
bool synchronized) pure virtual
Fills the buffer with the given data.
| Parameters | |
|---|---|
| data | Pointer to data. |
| offset | Offset in the buffer where the data will be written. |
| size | Data size in bytes. |
| synchronized | Whether the next draw call will wait for the fill to complete. |