Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
primitives.hpp
1 //////////////////////////////
2 //
3 // File: lxs/coregraphics/primitives.hpp
4 // Author: Maciej Kaminski
5 // E-mail: maciej.a.kaminski@gmail.com
6 // Website: maciejkaminski.pl
7 //
8 // File creation date: Oct 4 2013
9 // This file is part of Project Labyrinth
10 // This file is going to be released under terms of GNU GPL in near future
11 //
12 //////////////////////////////
13 
14 #ifndef __LXS_PRIMIT__
15 #define __LXS_PRIMIT__
16 #include <vector>
17 namespace LxS
18 {
19  namespace CoreGraphics
20  {
21  //! Just 3 floats
22  struct Vertex
23  {
24  //! x coordinate
25  float x;
26  //! y coordinate
27  float y;
28  //! z coordinate
29  float z;
30  };
31  struct Triangle;
32  //! groups of triangles form complex shapesd
33  typedef std::vector<Triangle> TriangleSet;
34  //! 3 vertices and set of neighbors for implementing abstract meshes
35  struct Triangle
36  {
37  //! first of three vertices
39  //! third of three vertices
41  //! second of three vertices
43  //! all neighboring triangles
45  };
46  }
47 
48 }
49 #endif