|
Hymn to Beauty
C++ 3D Engine
|
OpenGL implementation of Buffer. More...
#include <OpenGLBuffer.hpp>
Public Member Functions | |
| OpenGLBuffer (Buffer::BufferUsage bufferUsage, const BufferAllocation &allocation) | |
| Create new OpenGL buffer. More... | |
| ~OpenGLBuffer () final | |
| Destructor. More... | |
| void | Reset (BufferUsage bufferUsage, const BufferAllocation &allocation) final |
| Reset the buffer. More... | |
| unsigned int | GetSize () const final |
| Get the size of the buffer. More... | |
| GLuint | GetBufferID () const |
| Get the buffer OpenGL ID. More... | |
| GLenum | GetTarget () const |
| Get the OpenGL target. More... | |
| uint32_t | GetOffset () const |
| Get the offset into the raw buffer. More... | |
Public Member Functions inherited from Video::Buffer | |
| Buffer (BufferUsage bufferUsage) | |
| Create a new buffer. More... | |
| virtual | ~Buffer () |
| Destructor. More... | |
| BufferUsage | GetBufferUsage () const |
| Get how the buffer is to be used. More... | |
Additional Inherited Members | |
Public Types inherited from Video::Buffer | |
| enum class | BufferUsage { VERTEX_BUFFER , INDEX_BUFFER , UNIFORM_BUFFER , STORAGE_BUFFER , VERTEX_STORAGE_BUFFER , COUNT } |
| How the buffer is going to be used. More... | |
Protected Attributes inherited from Video::Buffer | |
| BufferUsage | bufferUsage |
| How the buffer will be used. More... | |
OpenGL implementation of Buffer.
| Video::OpenGLBuffer::OpenGLBuffer | ( | Buffer::BufferUsage | bufferUsage, |
| const BufferAllocation & | allocation | ||
| ) |
Create new OpenGL buffer.
| bufferUsage | How the buffer will be used. |
| allocation | The allocation to encapsulate. |
|
final |
Destructor.
| GLuint Video::OpenGLBuffer::GetBufferID | ( | ) | const |
Get the buffer OpenGL ID.
| uint32_t Video::OpenGLBuffer::GetOffset | ( | ) | const |
Get the offset into the raw buffer.
|
finalvirtual |
| GLenum Video::OpenGLBuffer::GetTarget | ( | ) | const |
Get the OpenGL target.
|
finalvirtual |
Reset the buffer.
| bufferUsage | How the buffer will be used. |
| allocation | Allocation to back up buffer memory. |
Implements Video::Buffer.