blob: 7cffece3085e7d6a33e3e808548e3fb0aa285150 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef MESH_HH
#define MESH_HH
#include <QMatrix4x4>
#include <QVector>
#include <QOpenGLTexture>
#include <QOpenGLShaderProgram>
#include <QOpenGLExtraFunctions>
struct OpenGLMesh {
GLuint vao, vbo;
unsigned nverts;
QOpenGLTexture *tex;
QOpenGLShaderProgram *program;
OpenGLMesh(QVector<float> verts, QOpenGLTexture *tex, QOpenGLShaderProgram *program);
void draw(QOpenGLExtraFunctions *f, const QMatrix4x4 &mat) const;
};
#endif
|