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