5 #ifndef MERCATOR_TILE_SHADER_H
6 #define MERCATOR_TILE_SHADER_H
8 #include <Mercator/Shader.h>
43 #endif // MERCATOR_TILE_SHADER_H
void populate()
Populate the data buffer using the correct shader.
Definition: Surface.cpp:30
const Segment & getSegment() const
Accessor for the terrain height segment this buffer is associated with.
Definition: Buffer.h:55
unsigned int getChannels() const
Accessor for the number of data values per height point.
Definition: Buffer.h:65
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
Definition: Segment.h:36
Data store for terrain surface data.
Definition: Surface.h:22
Shaderstore m_subShaders
Store of shaders which are agregated by this shader.
Definition: TileShader.h:27
std::map< int, Shader * > Shaderstore
STL map to store sparse array of Shader pointers.
Definition: TileShader.h:24
virtual bool checkIntersect(const Segment &) const
Check whether this Shader has any effect on the given Segment.
Definition: TileShader.cpp:28
Shader agregating surface data.
Definition: TileShader.h:21
virtual void shade(Surface &) const
Populate a Surface with data.
Definition: TileShader.cpp:33
DataType * getData()
Accessor for a pointer to buffer containing data values.
Definition: Buffer.h:70
Base class for Shader objects which create surface data for use when rendering terrain.
Definition: Shader.h:29
unsigned int getSize() const
Accessor for the size of segment, m_res + 1.
Definition: Buffer.h:60
void addShader(Shader *t, int id)
Add a shader to those agregated by the tile shader.
Definition: TileShader.h:33