#include <kanzi/core.ui/platform/graphics_backend/gl/gpu_buffer.hpp>
| Enumerator |
|---|
| BufferTypeVertex |
|
| BufferTypeIndex |
|
| kanzi::GPUBuffer::GPUBuffer |
( |
| ) |
|
|
explicitdefault |
| kanzi::GPUBuffer::GPUBuffer |
( |
Renderer & |
renderer, |
|
|
Type |
type, |
|
|
size_t |
size |
|
) |
| |
|
inline |
Constructor that initializes as empty and without uploading.
- Parameters
-
| renderer | The renderer to be used. |
| type | Type of buffer; VBO or IBO |
| size | Initial size in bytes. |
Constructor that initializes with data and uploads immediately.
- Parameters
-
| renderer | The renderer to be used. |
| type | Type of buffer; VBO or IBO |
| data | Initial data to upload. |
| kanzi::GPUBuffer::GPUBuffer |
( |
GPUBuffer && |
other | ) |
|
|
inline |
| unsigned int kanzi::GPUBuffer::getNativeHandle |
( |
| ) |
const |
|
inline |
Get the underlying native GL name.
- Returns
- Buffer's native GL name.
| size_t kanzi::GPUBuffer::getSize |
( |
| ) |
const |
|
inline |
Get the size of the buffer.
- Returns
- Size of the buffer.
| Type kanzi::GPUBuffer::getType |
( |
| ) |
const |
|
inline |
Get the type of the buffer.
- Returns
- Type of the buffer.
Update a subsection of data in the buffer.
Uploads changes immediately.
- Parameters
-
| renderer | Pointer to the renderer being used. |
| data | The new data. |
| offset | Offset in the buffer to update the data into. |
Update all data in the buffer.
Uploads changes immediately.
- Parameters
-
| renderer | Pointer to the renderer being used. |
| data | The new data. |
The documentation for this class was generated from the following file: