nCine::RenderBuffersManager class

Handles the memory mapping in multiple OpenGL Buffer Objects.

Public types

struct BufferSpecifications
struct Parameters
enum class BufferTypes { Array = 0, ElementArray, Uniform, Count }

Constructors, destructors, conversion operators

RenderBuffersManager(bool useBufferMapping, unsigned long vboMaxSize, unsigned long iboMaxSize)

Public functions

auto specs(BufferTypes type) const -> const BufferSpecifications&
Returns the specifications for a buffer of the specified type.
auto acquireMemory(BufferTypes type, unsigned long bytes) -> Parameters
Requests an amount of bytes from the specified buffer type.
auto acquireMemory(BufferTypes type, unsigned long bytes, unsigned int alignment) -> Parameters
Requests an amount of bytes from the specified buffer type with a custom alignment requirement.