volmetrics

annotate src/mesh.h @ 8:928954bfefd7

added mesh (draw: immediate mode - todo: displ. list)
author Eleni Maria Stea <elene.mst@gmail.com>
date Sat, 25 Jan 2014 19:25:32 +0200
parents
children 40febfed6cff
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@8 19
elene@8 20 void draw() const;
elene@8 21 };
elene@8 22
elene@8 23 #endif // MESH_H_