29 return std::make_unique<Surface>(segment, *
this, m_color, m_alpha);
Shader(bool color=false, bool alpha=true)
Protected constructor for classes which inherit from this one.
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
std::unique_ptr< Surface > newSurface(const Segment &) const
Create a new Surface which matches the requirements of this shader.
virtual ~Shader()
Destructor does nothing interesting.