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