Skip to main content

GLBuffer

The GLBuffer class is an OpenGL-specific implementation of the Buffer class, providing access to OpenGL buffer resources. It enables the creation of external buffers by specifying the buffer target and ID, allowing for efficient interaction with OpenGL buffer management system. This class provides functions to retrieve the buffer target and ID while inheriting the create method from the Buffer class for initializing buffers in OpenGL-based applications.

#include <platform/TellusimBuffer.h>

Inheritance

Constructors

GLBuffer()

Methods

Create external buffer.

bool create(Flags flags, uint32_t target, uint32_t buffer_id)
uint32_t getTarget() const
uint32_t getBufferID() const