mercator 0.4.0
A terrain generation library for the Worldforge system.
FillShader.h
1// This file may be redistributed and modified only under the terms of
2// the GNU General Public License (See COPYING for details).
3// Copyright (C) 2003 Alistair Riddoch
4
5#ifndef MERCATOR_FILL_SHADER_H
6#define MERCATOR_FILL_SHADER_H
7
8#include "Shader.h"
9
10namespace Mercator {
11
16class FillShader : public Shader {
17 public:
19 explicit FillShader();
23 explicit FillShader(const Parameters & params);
24 ~FillShader() override;
25
26 bool checkIntersect(const Segment &) const override;
27 void shade(Surface &) const override;
28};
29
30} // namespace Mercator
31
32#endif // MERCATOR_FILL_SHADER_H
Shader that fills the surface.
Definition: FillShader.h:16
FillShader()
Constructor.
bool checkIntersect(const Segment &) const override
Check whether this Shader has any effect on the given Segment.
Definition: FillShader.cpp:20
void shade(Surface &) const override
Populate a Surface with data.
Definition: FillShader.cpp:25
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
Definition: Segment.h:37
Base class for Shader objects which create surface data for use when rendering terrain.
Definition: Shader.h:25
std::map< std::string, float > Parameters
STL map of parameter values for a shader constructor.
Definition: Shader.h:59
Data store for terrain surface data.
Definition: Surface.h:23