3#include "../Interface/Buffer.hpp"
4#include "../Interface/BufferAllocator.hpp"
24 unsigned int GetSize()
const final;
53 bool temporaryAllocation =
false;
A buffer containing GPU accessible data.
Definition: Buffer.hpp:8
BufferUsage
How the buffer is going to be used.
Definition: Buffer.hpp:11
BufferUsage bufferUsage
How the buffer will be used.
Definition: Buffer.hpp:54
OpenGL implementation of Buffer.
Definition: OpenGLBuffer.hpp:11
GLenum GetTarget() const
Get the OpenGL target.
Definition: OpenGLBuffer.cpp:41
uint32_t GetOffset() const
Get the offset into the raw buffer.
Definition: OpenGLBuffer.cpp:45
unsigned int GetSize() const final
Get the size of the buffer.
Definition: OpenGLBuffer.cpp:33
~OpenGLBuffer() final
Destructor.
Definition: OpenGLBuffer.cpp:13
OpenGLBuffer(Buffer::BufferUsage bufferUsage, const BufferAllocation &allocation)
Create new OpenGL buffer.
Definition: OpenGLBuffer.cpp:9
GLuint GetBufferID() const
Get the buffer OpenGL ID.
Definition: OpenGLBuffer.cpp:37
void Reset(BufferUsage bufferUsage, const BufferAllocation &allocation) final
Reset the buffer.
Definition: OpenGLBuffer.cpp:22
A large buffer from which buffers are sub-allocated.
Definition: BufferAllocator.hpp:21
Definition: Editor.hpp:18
An allocation.
Definition: BufferAllocator.hpp:36