1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#ifndef MESH_HH #define MESH_HH #include <QMatrix4x4> #include <QVector> #include <QOpenGLTexture> struct OpenGLMesh { GLuint vao, vbo; unsigned nverts; QMatrix4x4 mat; QOpenGLTexture *tex; OpenGLMesh(QVector<float> verts, QOpenGLTexture *tex); }; #endif