Mercator  0.4.0
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 
10 namespace Mercator {
11 
16 class FillShader : public Shader {
17  public:
19  explicit FillShader();
23  explicit FillShader(const Parameters & params);
24  virtual ~FillShader();
25 
26  virtual bool checkIntersect(const Segment &) const;
27  virtual void shade(Surface &) const;
28 };
29 
30 } // namespace Mercator
31 
32 #endif // MERCATOR_FILL_SHADER_H
virtual void shade(Surface &) const
Populate a Surface with data.
Definition: FillShader.cpp:29
Shader that fills the surface.
Definition: FillShader.h:16
Definition: Area.cpp:20
Data store for terrain surface data.
Definition: Surface.h:23
std::map< std::string, float > Parameters
STL map of parameter values for a shader constructor.
Definition: Shader.h:58
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
Definition: Segment.h:36
virtual bool checkIntersect(const Segment &) const
Check whether this Shader has any effect on the given Segment.
Definition: FillShader.cpp:24
Base class for Shader objects which create surface data for use when rendering terrain.
Definition: Shader.h:24
FillShader()
Constructor.
Definition: FillShader.cpp:12