voxelTerrain
 All Classes Functions Variables Typedefs Enumerations Pages
surface.hpp
1 #ifndef PROCEDURAL_VOXEL_TERRAIN_SURFACE_HPP
2 #define PROCEDURAL_VOXEL_TERRAIN_SURFACE_HPP
3 
4 #include "blub/core/list.hpp"
5 #include "blub/procedural/voxel/terrain/base.hpp"
6 
7 
8 namespace blub
9 {
10 namespace procedural
11 {
12 namespace voxel
13 {
14 namespace terrain
15 {
16 
17 
21 template <class configType>
22 class surface : public base<typename configType::t_surface::t_simple>
23 {
24 public:
25  typedef configType t_config;
26  typedef typename t_config::t_surface::t_simple t_simple;
27  typedef t_simple t_lod;
28  typedef t_lod* t_lodPtr;
29  typedef base<t_simple> t_base;
30 
31  typedef typename t_config::t_accessor::t_terrain t_terrainAccessor;
32 
33 
39  surface(blub::async::dispatcher &worker, t_terrainAccessor &voxels)
40  {
41  for (int32 lod = 0; lod < voxels.getNumLod(); ++lod)
42  {
43  typename t_terrainAccessor::t_lod accessorTiles(voxels.getLod(lod));
44  t_lodPtr newLod(new t_lod(worker, *accessorTiles, lod));
45 
46  t_base::m_lods.emplace_back(newLod);
47  }
48  }
49 
54  {
55  }
56 
57 private:
58 
59 
60 };
61 
62 
63 }
64 }
65 }
66 }
67 
68 
69 #endif // PROCEDURAL_VOXEL_TERRAIN_SURFACE_HPP
Definition: customVertexInformation.cpp:193
t_lodList m_lods
m_lods container for the lods.
Definition: base.hpp:78
~surface()
~surface destrcutor
Definition: surface.hpp:53
surface(blub::async::dispatcher &worker, t_terrainAccessor &voxels)
surface construtor. Creates as much lods as in voxels.
Definition: surface.hpp:39
Definition: dispatcher.hpp:29
Definition: deadlineTimer.hpp:10