|
Hymn to Beauty
C++ 3D Engine
|
OpenGL implementation of RawBuffer. More...
#include <OpenGLBufferAllocator.hpp>
Public Member Functions | |
| OpenGLRawBuffer (Buffer::BufferUsage bufferUsage, bool temporary, unsigned int size) | |
| Create new raw buffer used to satisfy allocations. More... | |
| ~OpenGLRawBuffer () final | |
| Destructor. More... | |
| void | Write (uint32_t offset, uint32_t size, const void *data) final |
| Write data to buffer. More... | |
| GLuint | GetBufferID () const |
| Get the buffer OpenGL ID. More... | |
| GLenum | GetTarget () const |
| Get the OpenGL target. More... | |
Public Member Functions inherited from Video::RawBuffer | |
| virtual | ~RawBuffer () |
| Destructor. More... | |
OpenGL implementation of RawBuffer.
| Video::OpenGLRawBuffer::OpenGLRawBuffer | ( | Buffer::BufferUsage | bufferUsage, |
| bool | temporary, | ||
| unsigned int | size | ||
| ) |
Create new raw buffer used to satisfy allocations.
| bufferUsage | How the buffer will be used. |
| temporary | Whether the buffer is going to be used to satisfy temporary allocations. |
| size | The size of the buffer in bytes. |
|
final |
Destructor.
| GLuint Video::OpenGLRawBuffer::GetBufferID | ( | ) | const |
Get the buffer OpenGL ID.
| GLenum Video::OpenGLRawBuffer::GetTarget | ( | ) | const |
Get the OpenGL target.
|
finalvirtual |
Write data to buffer.
| offset | The offset (in bytes) into the buffer to write at. |
| size | The size of the data to write (in bytes). |
| data | The data to write. |
Implements Video::RawBuffer.