5 #ifndef MERCATOR_SHADER_H 6 #define MERCATOR_SHADER_H 32 explicit Shader(
bool color =
false,
bool alpha =
true);
64 #endif // MERCATOR_SHADER_H virtual bool checkIntersect(const Segment &) const =0
Check whether this Shader has any effect on the given Segment.
Shader(bool color=false, bool alpha=true)
Protected constructor for classes which inherit from this one.
Data store for terrain surface data.
bool getAlpha() const
Accessor for alpha flag.
std::unique_ptr< Surface > newSurface(const Segment &) const
Create a new Surface which matches the requirements of this shader.
std::map< std::string, float > Parameters
STL map of parameter values for a shader constructor.
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
virtual void shade(Surface &) const =0
Populate a Surface with data.
Base class for Shader objects which create surface data for use when rendering terrain.
bool getColor() const
Accessor for color flag.
virtual ~Shader()
Destructor does nothing interesting.