volmetrics

annotate src/mesh.h @ 20:21bc62bb3e14

added spinner
author Eleni Maria Stea <elene.mst@gmail.com>
date Tue, 25 Mar 2014 00:07:12 +0200
parents 928954bfefd7
children
rev   line source
elene@8 1 #ifndef MESH_H_
elene@8 2 #define MESH_H_
elene@8 3
elene@8 4 #include <vector>
elene@8 5 #include "vector.h"
elene@8 6
elene@8 7 class Mesh {
elene@8 8 private:
elene@8 9 std::vector<Vector3> vertices;
elene@8 10 std::vector<Vector3> normals;
elene@8 11
elene@8 12 public:
elene@8 13 Mesh();
elene@8 14
elene@8 15 void add_vertex(const Vector3 &vertex);
elene@8 16 void add_normal(const Vector3 &normal);
elene@8 17
elene@8 18 void clear();
elene@9 19 bool is_empty() const;
elene@8 20
elene@8 21 void draw() const;
elene@8 22 };
elene@8 23
elene@8 24 #endif // MESH_H_