aboutsummaryrefslogtreecommitdiff
path: root/src/opengl_mesh.hh
diff options
context:
space:
mode:
authorccolin2020-12-22 13:15:23 +0100
committerccolin2020-12-22 13:15:23 +0100
commit7fbe0814d52ba861a02b0560d4e6872845ef241e (patch)
tree1a8f6fd67b5d1606a58c0df00fbab285f1206d36 /src/opengl_mesh.hh
initial commit
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