#ifndef MESH_VIEW_H
#define MESH_VIEW_H

#include "my_mesh.h"
#include <QOpenGLExtraFunctions>
#include <QOpenGLShaderProgram>
#include <QOpenGLVertexArrayObject>
#include <QOpenGLBuffer>


class MeshView {
	QOpenGLVertexArrayObject vao;
	QOpenGLBuffer vertex_buffer;
	QOpenGLBuffer index_buffer;
	QOpenGLBuffer holes_index_buffer;
	unsigned n_faces;
	unsigned n_vertices;
	unsigned n_boundary_halfedges;

public:
	const MyMesh &mesh;

	MeshView(const MyMesh &mesh_processor, QOpenGLShaderProgram &program);
	~MeshView();
	void paint(QOpenGLShaderProgram &program);
};


#endif