|
Hymn to Beauty
C++ 3D Engine
|
OpenGL implementation of BufferAllocator. More...
#include <OpenGLBufferAllocator.hpp>
Public Member Functions | |
| OpenGLBufferAllocator (uint32_t frames) | |
| Create a new buffer allocator. More... | |
| ~OpenGLBufferAllocator () final | |
| Destructor. More... | |
Public Member Functions inherited from Video::BufferAllocator | |
| BufferAllocator (uint32_t frames) | |
| Create a new buffer allocator. More... | |
| virtual | ~BufferAllocator () |
| Destructor. More... | |
| void | BeginFrame () |
| Call at the beginning of each frame. More... | |
| Buffer * | CreateBuffer (Buffer::BufferUsage bufferUsage, uint32_t size, const void *data) |
| Create a GPU buffer. More... | |
| Buffer * | CreateTemporaryBuffer (Buffer::BufferUsage bufferUsage, uint32_t size, const void *data) |
| Create a temporary GPU buffer. More... | |
Additional Inherited Members | |
Static Protected Attributes inherited from Video::BufferAllocator | |
| static const uint32_t | poolSize = 1024 * 1024 |
| The size of each buffer in the pool. More... | |
OpenGL implementation of BufferAllocator.
| Video::OpenGLBufferAllocator::OpenGLBufferAllocator | ( | uint32_t | frames | ) |
Create a new buffer allocator.
| frames | How many frames before re-using buffers. |
|
final |
Destructor.