5 #include "FillShader.h" 18 FillShader::~FillShader() =
default;
31 unsigned int buflen = size * size * channels;
32 for (
unsigned int i = 0; i < buflen; ++i) {
void shade(Surface &) const override
Populate a Surface with data.
DataType * getData()
Accessor for a pointer to buffer containing data values.
Data store for terrain surface data.
std::map< std::string, float > Parameters
STL map of parameter values for a shader constructor.
int getSize() const
Accessor for array size of this segment.
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
unsigned int getChannels() const
Accessor for the number of data values per height point.
bool checkIntersect(const Segment &) const override
Check whether this Shader has any effect on the given Segment.
const Segment & getSegment() const
Accessor for the terrain height segment this surface is associated with.