mercator
0.4.0
A terrain generation library for the Worldforge system.
|
5 #ifndef MERCATOR_TILE_SHADER_H
6 #define MERCATOR_TILE_SHADER_H
35 m_subShaders[id] = std::move(t);
45 #endif // MERCATOR_TILE_SHADER_H
bool checkIntersect(const Segment &) const override
Check whether this Shader has any effect on the given Segment.
void addShader(std::unique_ptr< Shader > t, int id)
Add a shader to those agregated by the tile shader.
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
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 shade(Surface &) const override
Populate a Surface with data.
Base class for Shader objects which create surface data for use when rendering terrain.