5 #ifndef MERCATOR_TILE_SHADER_H
6 #define MERCATOR_TILE_SHADER_H
35 m_subShaders[id] = std::move(t);
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
Base class for Shader objects which create surface data for use when rendering terrain.
Data store for terrain surface data.
Shader agregating surface data.
std::map< int, std::unique_ptr< Shader > > Shaderstore
STL map to store sparse array of Shader pointers.
void addShader(std::unique_ptr< Shader > t, int id)
Add a shader to those agregated by the tile shader.
void shade(Surface &) const override
Populate a Surface with data.
bool checkIntersect(const Segment &) const override
Check whether this Shader has any effect on the given Segment.