GPU memory buffer, for vertex or index data. More...
#include <kanzi/core.ui/platform/graphics_backend/gl/gpu_buffer_manager.hpp>
Public Types | |
enum | BufferType { BufferTypeVertex, BufferTypeIndex } |
Type enumeration of the buffer. More... | |
Public Member Functions | |
Buffer () | |
Constructor. More... | |
Buffer (Renderer *renderer, BufferType type, const void *data, unsigned int size) | |
Constructor. More... | |
~Buffer () | |
Destructor. More... | |
BufferType | getType () const |
Get buffer type. More... | |
unsigned int | getNativeHandle () const |
Get buffer native handle. More... | |
unsigned int | getDataOffset () const |
Get start offset of buffer data. More... | |
Buffer (KZ_RV_REF(Buffer) other) | |
Buffer & | operator= (KZ_RV_REF(Buffer) other) |
Friends | |
void | swap (Buffer &left, Buffer &right) |
GPU memory buffer, for vertex or index data.
|
explicit |
Constructor.
|
explicit |
Constructor.
kanzi::Buffer::~Buffer | ( | ) |
Destructor.
BufferType kanzi::Buffer::getType | ( | ) | const |
Get buffer type.
unsigned int kanzi::Buffer::getNativeHandle | ( | ) | const |
Get buffer native handle.
unsigned int kanzi::Buffer::getDataOffset | ( | ) | const |
Get start offset of buffer data.