24 enum class Type : unsigned int
106 #define BUFFER_OFFSET(offset) (reinterpret_cast<GLvoid*>(offset)) void createOnce()
Calls create() only if the buffer has not been created yet.
std::thread::id created_from
void allocate(const void *data, int byteCount)
Reserves byteCount bytes in the buffer and copy to it the provided data.
A wrapper for an OpenGL buffer object.
void destroy()
Automatically called upon destructor, no need for the user to call it in normal situations.
RAII_Impl(COpenGLBuffer::Type t)
COpenGLBuffer::Usage usage
void create()
Actually create the buffer, destroying any previously existing buffer.
unsigned int bufferId() const
std::shared_ptr< RAII_Impl > m_impl
void allocate(const void *data, int byteCount)
The namespace for 3D scene representation and rendering.
void setUsage(const Usage u)
static struct FontData data