| 
    MRPT
    2.0.4
    
   | 
 
A wrapper for an OpenGL vertex array object (VAO).
Refer to docs for glGenVertexArrays().
Definition at line 21 of file COpenGLVertexArrayObject.h.
#include <mrpt/opengl/COpenGLVertexArrayObject.h>
Classes | |
| struct | RAII_Impl | 
Public Member Functions | |
| COpenGLVertexArrayObject () | |
| ~COpenGLVertexArrayObject ()=default | |
| void | create () | 
| Actually create the buffer, destroying any previously existing buffer.  More... | |
| void | createOnce () | 
| Calls create() only if the buffer has not been created yet.  More... | |
| bool | isCreated () const | 
| void | destroy () | 
| Automatically called upon destructor, no need for the user to call it in normal situations.  More... | |
| void | bind () | 
| void | release () | 
| unsigned int | bufferId () const | 
Private Attributes | |
| std::shared_ptr< RAII_Impl > | m_impl | 
| COpenGLVertexArrayObject::COpenGLVertexArrayObject | ( | ) | 
Definition at line 19 of file COpenGLVertexArrayObject.cpp.
References m_impl.
      
  | 
  default | 
      
  | 
  inline | 
Definition at line 42 of file COpenGLVertexArrayObject.h.
References m_impl.
Referenced by mrpt::opengl::CRenderizableShaderWireFrame::render(), mrpt::opengl::CRenderizableShaderText::render(), mrpt::opengl::CRenderizableShaderTriangles::render(), and mrpt::opengl::CRenderizableShaderPoints::render().
      
  | 
  inline | 
Definition at line 45 of file COpenGLVertexArrayObject.h.
References m_impl.
      
  | 
  inline | 
Actually create the buffer, destroying any previously existing buffer.
Definition at line 29 of file COpenGLVertexArrayObject.h.
References m_impl.
Referenced by createOnce().
      
  | 
  inline | 
Calls create() only if the buffer has not been created yet.
Definition at line 32 of file COpenGLVertexArrayObject.h.
References create(), and isCreated().
      
  | 
  inline | 
Automatically called upon destructor, no need for the user to call it in normal situations.
Definition at line 40 of file COpenGLVertexArrayObject.h.
References m_impl.
Referenced by mrpt::opengl::COpenGLVertexArrayObject::RAII_Impl::create(), mrpt::opengl::CRenderizableShaderTexturedTriangles::freeOpenGLResources(), mrpt::opengl::CRenderizableShaderTriangles::freeOpenGLResources(), mrpt::opengl::CRenderizableShaderText::freeOpenGLResources(), mrpt::opengl::CRenderizableShaderWireFrame::freeOpenGLResources(), and mrpt::opengl::CRenderizableShaderPoints::freeOpenGLResources().
      
  | 
  inline | 
Definition at line 36 of file COpenGLVertexArrayObject.h.
References m_impl.
Referenced by createOnce().
      
  | 
  inline | 
Definition at line 43 of file COpenGLVertexArrayObject.h.
References m_impl.
Referenced by mrpt::opengl::COpenGLVertexArrayObject::RAII_Impl::destroy().
      
  | 
  private | 
Definition at line 63 of file COpenGLVertexArrayObject.h.
Referenced by bind(), bufferId(), COpenGLVertexArrayObject(), create(), destroy(), isCreated(), and release().
| Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020 |