aboutsummaryrefslogtreecommitdiff
path: root/src/opengl_mesh.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl_mesh.hh')
-rw-r--r--src/opengl_mesh.hh18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/opengl_mesh.hh b/src/opengl_mesh.hh
new file mode 100644
index 0000000..e3b8ad2
--- /dev/null
+++ b/src/opengl_mesh.hh
@@ -0,0 +1,18 @@
+#ifndef MESH_HH
+#define MESH_HH
+
+#include <QMatrix4x4>
+#include <QVector>
+#include <QOpenGLFunctions>
+
+
+struct OpenGLMesh {
+ GLuint vao, vbo;
+ unsigned nverts;
+ QMatrix4x4 mat;
+
+ OpenGLMesh(QVector<float> verts);
+};
+
+
+#endif