1 #ifndef BLUB_PROCEDURAL_VOXEL_TILE_RENDERER_HPP
2 #define BLUB_PROCEDURAL_VOXEL_TILE_RENDERER_HPP
4 #include "blub/math/vector3int.hpp"
5 #include "blub/procedural/voxel/tile/base.hpp"
22 template <
class configType>
23 class renderer :
public base<renderer<configType> >
27 typedef base<renderer<t_config> > t_base;
28 typedef typename t_config::t_renderer::t_tile* t_thiz;
29 typedef typename t_config::t_surface::t_tile t_tileData;
92 for (int32 ind = 0; ind < 6; ++ind)
118 #endif // BLUB_PROCEDURAL_VOXEL_TILE_RENDERER_HPP
Definition: customVertexInformation.cpp:193
const bool & getVisible() const
getVisible returns if a tile should get rendered.
Definition: renderer.hpp:70
bool m_lodShouldBeVisible[6]
saves if crack closing submesh should get rendered.
Definition: renderer.hpp:107
Definition: sharedPointer.hpp:12
const bool & getVisibleLod(const uint16 &indLod)
getVisibleLod returns if a crack-closing lod-tile should get rendered.
Definition: renderer.hpp:80
void setTileData(t_tileDataPtr convertToRenderAble, const axisAlignedBox &aabb)
Implement this method and cast the data to your graphic engine.
Definition: renderer.hpp:45
renderer()
renderer constructor.
Definition: renderer.hpp:89
~renderer()
~renderer destructor
Definition: renderer.hpp:35
virtual void setVisibleLod(const uint16 &indLod, const bool &vis)
setVisibleLod sets if one of the 6 crack closing submeshes (for lod) should get rendered.
Definition: renderer.hpp:61
Definition: axisAlignedBox.hpp:20
virtual void setVisible(const bool &vis)
setVisible sets if a tile should get rendered. All lod-submeshes must not be rendered either...
Definition: renderer.hpp:51
Definition: deadlineTimer.hpp:10
bool m_shouldBeVisible
m_shouldBeVisible saves if tile should get rendered.
Definition: renderer.hpp:103