1 #ifndef PROCEDURAL_VOXEL_TERRAIN_SURFACE_HPP
2 #define PROCEDURAL_VOXEL_TERRAIN_SURFACE_HPP
4 #include "blub/core/list.hpp"
5 #include "blub/procedural/voxel/terrain/base.hpp"
21 template <
class configType>
22 class surface :
public base<typename configType::t_surface::t_simple>
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;
31 typedef typename t_config::t_accessor::t_terrain t_terrainAccessor;
41 for (int32 lod = 0; lod < voxels.getNumLod(); ++lod)
43 typename t_terrainAccessor::t_lod accessorTiles(voxels.getLod(lod));
44 t_lodPtr newLod(
new t_lod(worker, *accessorTiles, lod));
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