Wrapper for OpenGL VBO (Vertex Buffer Object). Stores raw vertex data (positions, colors, normals) on the GPU.
More...
#include <src/renderer/Buffer.h>
Wrapper for OpenGL VBO (Vertex Buffer Object). Stores raw vertex data (positions, colors, normals) on the GPU.
◆ VertexBuffer() [1/2]
| Renderer::VertexBuffer::VertexBuffer |
( |
const void * |
data, |
|
|
unsigned int |
uiSize |
|
) |
| |
|
inline |
Creates and fills the buffer with data.
- Parameters
-
| data | Pointer to the data array. |
| uiSize | Total size of the data in bytes. |
◆ ~VertexBuffer()
| Renderer::VertexBuffer::~VertexBuffer |
( |
| ) |
|
|
inline |
◆ VertexBuffer() [2/2]
| Renderer::VertexBuffer::VertexBuffer |
( |
const VertexBuffer & |
| ) |
|
|
delete |
◆ Bind()
| void Renderer::VertexBuffer::Bind |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ Unbind()
| void Renderer::VertexBuffer::Unbind |
( |
| ) |
const |
|
inline |
◆ UpdateData()
| void Renderer::VertexBuffer::UpdateData |
( |
const void * |
data, |
|
|
unsigned int |
uiSize, |
|
|
unsigned int |
uiOffset = 0 |
|
) |
| const |
|
inline |
Updates buffer data without reallocating memory (DSA).
◆ m_RendererID
| unsigned int Renderer::VertexBuffer::m_RendererID |
The documentation for this class was generated from the following file: