1 #ifndef PROCEDURAL_VOXEL_TERRAIN_ACCESSOR_HPP
2 #define PROCEDURAL_VOXEL_TERRAIN_ACCESSOR_HPP
4 #include "blub/core/globals.hpp"
5 #include "blub/core/vector.hpp"
6 #include "blub/procedural/voxel/terrain/base.hpp"
23 template <
class configType>
24 class accessor :
public base<typename configType::t_accessor::t_simple>
28 typedef typename t_config::t_accessor::t_simple t_simple;
29 typedef base<t_simple> t_base;
31 typedef typename t_config::t_container::t_simple t_simpleContainer;
40 t_simpleContainer &voxels,
44 for (uint32 indLod = 0; indLod < numLod; ++indLod)
46 t_simple* lod =
new t_simple(worker, voxels, indLod);
68 t_simpleContainer &m_voxels;
79 #endif // PROCEDURAL_VOXEL_TERRAIN_ACCESSOR_HPP
Definition: customVertexInformation.cpp:193
accessor(blub::async::dispatcher &worker, t_simpleContainer &voxels, const uint32 &numLod)
accessor constructor
Definition: accessor.hpp:39
t_lodList m_lods
m_lods container for the lods.
Definition: base.hpp:78
Definition: dispatcher.hpp:29
~accessor()
~accessor destructor
Definition: accessor.hpp:54
Definition: deadlineTimer.hpp:10
t_simpleContainer & getVoxelContainer() const
getVoxelContainer returns the voxel-container to get the data from and to sync with.
Definition: accessor.hpp:62