21 m_impl = std::make_shared<RAII_Impl>();
33 #if MRPT_HAS_OPENGL_GLUT 35 glGenVertexArrays(1, &buffer);
36 this->buffer_id = buffer;
37 this->created_from = std::this_thread::get_id();
45 #if MRPT_HAS_OPENGL_GLUT 47 if (created_from == std::this_thread::get_id())
50 glDeleteVertexArrays(1, &buffer_id);
59 #if MRPT_HAS_OPENGL_GLUT 61 glBindVertexArray(buffer_id);
67 #if MRPT_HAS_OPENGL_GLUT 69 if (created_from != std::this_thread::get_id())
return;
COpenGLVertexArrayObject()
void destroy()
Automatically called upon destructor, no need for the user to call it in normal situations.
#define ASSERT_(f)
Defines an assertion mechanism.
The namespace for 3D scene representation and rendering.
std::shared_ptr< RAII_Impl > m_impl