1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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