OrbitEngine::Graphics::GLBuffer class

Base classes

class Buffer virtual

Derived classes

class GLIndexBuffer
class GLVertexBuffer

Public static functions

static auto MappedPointerModeToGL(MappedPointerMode mode) -> GLenum

Constructors, destructors, conversion operators

GLBuffer(unsigned int target, unsigned int usage, const unsigned int size = 0, const void* data = 0)
~GLBuffer()

Public functions

auto getID() const -> GLuint
void bind() const override
void resize(const unsigned int size) override
void setData(const unsigned int size, const void* data) override
auto mapPointer(MappedPointerMode mode) -> void* override
void unmapPointer() override

Protected variables

GLuint m_ID
GLuint m_Target
GLuint m_Usage