voxelTerrain
 All Classes Functions Variables Typedefs Enumerations Pages
tile.hpp
1 #ifndef TILEHOLDER_HPP
2 #define TILEHOLDER_HPP
3 
4 #include "blub/core/globals.hpp"
5 #include "blub/core/sharedPointer.hpp"
6 #include "blub/procedural/predecl.hpp"
7 
8 
9 namespace blub
10 {
11 namespace procedural
12 {
13 namespace voxel
14 {
15 namespace simple
16 {
17 namespace container
18 {
19 namespace utils
20 {
21 
22 
26 enum class tileState
27 {
28  full,
29  empty,
30  partitial
31 };
32 
33 
37 template <class tileType>
38 class tile
39 {
40 public:
41  typedef sharedPointer<tileType> t_tilePtr;
42 
43  tile()
44  : state(tileState::empty)
45  {
46  ;
47  }
48  tile(const tileState& state_)
49  : state(state_)
50  {
51  ;
52  }
53 
54  tileState state;
55  t_tilePtr data;
56 };
57 
58 
59 }
60 }
61 }
62 }
63 }
64 }
65 
66 
67 #endif // TILEHOLDER_HPP
Definition: deadlineTimer.hpp:10
Definition: customVertexInformation.cpp:177