mercator
0.4.0
A terrain generation library for the Worldforge system.
|
5 #ifndef MERCATOR_SURFACE_H
6 #define MERCATOR_SURFACE_H
17 typedef unsigned char ColorT;
19 static const ColorT colorMax = UCHAR_MAX;
20 static const ColorT colorMin = 0;
31 bool colors =
true,
bool alpha =
true);
45 #endif // MERCATOR_SURFACE_H
Surface(const Segment &segment, const Shader &shader, bool colors=true, bool alpha=true)
Constructor.
void populate()
Populate the data buffer using the correct shader.
const Segment & m_segment
The terrain height segment this buffer is associated with.
const Segment & getSegment() const
Accessor for the terrain height segment this surface is associated with.
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
Data store for terrain surface data.
const Shader & m_shader
The shader that populates this surface.
Template for managing buffers of data for a segment.
Base class for Shader objects which create surface data for use when rendering terrain.