Buran Motion Planning Framework
qt_gl_drawer.h
1 #pragma once
2 
3 
4 #include <qopengl.h>
5 #include <QVector>
6 #include <QVector3D>
7 
8 namespace bmpf {
9 
13  class QTGLDrawer {
14  public:
15 
19  QTGLDrawer() : m_count(0) {}
20 
25  const GLfloat *constData() const { return mData.constData(); }
26 
31  int count() const { return m_count; }
32 
37  int vertexCount() const { return m_count / 6; }
38 
39  protected:
45  void add(const QVector3D &v, const QVector3D &n);
46 
50  QVector<GLfloat> mData;
54  int m_count;
55  };
56 
57 }
bmpf::QTGLDrawer::constData
const GLfloat * constData() const
Definition: qt_gl_drawer.h:25
bmpf::QTGLDrawer::m_count
int m_count
Definition: qt_gl_drawer.h:54
bmpf::QTGLDrawer::mData
QVector< GLfloat > mData
Definition: qt_gl_drawer.h:50
bmpf::QTGLDrawer::add
void add(const QVector3D &v, const QVector3D &n)
Definition: qt_gl_drawer.cpp:8
bmpf::QTGLDrawer
Definition: qt_gl_drawer.h:13
bmpf::QTGLDrawer::count
int count() const
Definition: qt_gl_drawer.h:31
bmpf::QTGLDrawer::vertexCount
int vertexCount() const
Definition: qt_gl_drawer.h:37
bmpf::QTGLDrawer::QTGLDrawer
QTGLDrawer()
Definition: qt_gl_drawer.h:19