voxelTerrain
 All Classes Functions Variables Typedefs Enumerations Pages
config.hpp
1 #ifndef BLUB_PROCEDURAL_VOXEL_CONFIG
2 #define BLUB_PROCEDURAL_VOXEL_CONFIG
3 
4 #include "blub/procedural/predecl.hpp"
5 #include "blub/procedural/voxel/data.hpp"
6 #include "blub/procedural/voxel/vertex.hpp"
7 
8 
9 namespace blub
10 {
11 namespace procedural
12 {
13 namespace voxel
14 {
15 
16 
17 class config
18 {
19 public:
20  typedef config t_config;
21 
22  typedef data t_data;
23  typedef uint16 t_index;
24  typedef vertex t_vertex;
25 
26  static const int32 voxelsPerTile = 20; // means 20^3!
27 
28  template <typename configType>
29  struct container
30  {
33  };
35 
36  template <typename configType>
37  struct accessor
38  {
42  };
43 
45 
46  template <typename configType>
47  struct surface
48  {
52  };
53  typedef surface<config> t_surface;
54 
55  template <typename configType>
56  struct renderer
57  {
61  };
63 };
64 
65 
66 }
67 }
68 }
69 
70 
71 #endif // BLUB_PROCEDURAL_VOXEL_CONFIG
72 
The renderer class handles the correct rendering of a lod. Including renderdistance and enabling the ...
Definition: predecl.hpp:51
The renderer class contains a custom count of simple::renderer for level of detail.
Definition: predecl.hpp:62
The container class contains an array of voxel. The amount of voxel per tile is voxelLength^3. The class counts how many voxel are max and how many are min. if all voxel are min or max the class simple::container::base doesnt save them. Additionally it saves an axisAlignedBox which describes the bounds of the voxel that changed.
Definition: predecl.hpp:19
The surface class convertes accessor-tiles to surface-tiles. In between polygons get calculated by th...
Definition: predecl.hpp:53
The accessor class caches all voxel needed by tile::surface for an extremly optimized and fast calcul...
Definition: predecl.hpp:21
Definition: config.hpp:17
The renderer class contains information if a tile::surface should get rendered and how it should get ...
Definition: predecl.hpp:23
The surface class convertes a tile::accessor to an iso-surface. Call this class by one thread at a ti...
Definition: predecl.hpp:25
The data class is the default voxel. Contains an 8-bit interpolation value. Replace/derive it and set...
Definition: data.hpp:27
The inMemory class stores all voxels in instances of tile::container and safes them in a very fast in...
Definition: predecl.hpp:44
The accessor class accesses and caches voxels for the surface-calculation. It caches voxel optimized ...
Definition: predecl.hpp:49
Definition: deadlineTimer.hpp:10
The accessor class contains a custom amount of level of details of type simple::accessor.
Definition: predecl.hpp:60
The surface class contains a custom count of simple::surface for level of detail. ...
Definition: predecl.hpp:64
Definition: vertex.hpp:15