#ifndef MESH_HH #define MESH_HH #include #include #include #include #include struct OpenGLMesh { GLuint vao, vbo; unsigned nverts; QOpenGLTexture *tex; QOpenGLShaderProgram *program; OpenGLMesh(QVector verts, QOpenGLTexture *tex, QOpenGLShaderProgram *program); void draw(QOpenGLExtraFunctions *f, const QMatrix4x4 &mat) const; }; #endif