struct mrpt::opengl::COpenGLBuffer::RAII_ImplΒΆ

struct RAII_Impl
{
    //
fields

    COpenGLBuffer::Type type;
    COpenGLBuffer::Usage usage = COpenGLBuffer::Usage::StaticDraw;
    bool created = false;
    unsigned int buffer_id = 0;
    std::thread::id created_from;

    // construction

    RAII_Impl(COpenGLBuffer::Type t);

    //
methods

    void create();
    void destroy();
    void bind();
    void release();

    void allocate(
        const void* data,
        int byteCount
        );
};