Definition at line 28 of file buffer.h.
 
◆ Buffer()
      
        
          | RealSpace::Buffer::Buffer  | 
          ( | 
          Geometry const &  | 
          geometry | ) | 
           | 
        
      
 
Definition at line 25 of file buffer.cpp.
   27     initializeOpenGLFunctions();
 
   29     auto& mesh = geometry.m_mesh;
 
   32     QOpenGLVertexArrayObject::Binder __(&
m_vao);
 
   38     glEnableVertexAttribArray(0); 
 
   39     glEnableVertexAttribArray(1); 
 
   41     glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 2 * 
sizeof(Vector3D), 
nullptr);
 
   42     glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 2 * 
sizeof(Vector3D),
 
   43                           reinterpret_cast<void*
>(
sizeof(Vector3D)));
 
QOpenGLVertexArrayObject m_vao
 
 
References m_glBuffer, RealSpace::Geometry::m_mesh, m_vao, and m_vertexCount.
 
 
◆ draw()
      
        
          | void RealSpace::Buffer::draw  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ m_glBuffer
  
  
      
        
          | QOpenGLBuffer RealSpace::Buffer::m_glBuffer | 
         
       
   | 
  
private   | 
  
 
 
◆ m_vao
  
  
      
        
          | QOpenGLVertexArrayObject RealSpace::Buffer::m_vao | 
         
       
   | 
  
private   | 
  
 
 
◆ m_vertexCount
  
  
      
        
          | int RealSpace::Buffer::m_vertexCount | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: