volmetrics
view src/mesh.h @ 22:4e120dcd55ec
added shaders that just draw
author | Eleni Maria Stea <elene.mst@gmail.com> |
---|---|
date | Thu, 24 Apr 2014 20:47:48 +0300 |
parents | 928954bfefd7 |
children |
line source
1 #ifndef MESH_H_
2 #define MESH_H_
4 #include <vector>
5 #include "vector.h"
7 class Mesh {
8 private:
9 std::vector<Vector3> vertices;
10 std::vector<Vector3> normals;
12 public:
13 Mesh();
15 void add_vertex(const Vector3 &vertex);
16 void add_normal(const Vector3 &normal);
18 void clear();
19 bool is_empty() const;
21 void draw() const;
22 };
24 #endif // MESH_H_