#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
