Mercator
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 <Mercator/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
Mercator::Buffer::getSegment
const Segment & getSegment() const
Accessor for the terrain height segment this buffer is associated with.
Definition: Buffer.h:55
Mercator::FillShader::FillShader
FillShader()
Constructor.
Definition: FillShader.cpp:12
Mercator::Segment::getSize
const int getSize() const
Accessor for array size of this segment.
Definition: Segment.h:81
Mercator::Buffer::getChannels
unsigned int getChannels() const
Accessor for the number of data values per height point.
Definition: Buffer.h:65
Mercator::Segment
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
Definition: Segment.h:36
Mercator::Surface
Data store for terrain surface data.
Definition: Surface.h:22
Mercator::FillShader::checkIntersect
virtual bool checkIntersect(const Segment &) const
Check whether this Shader has any effect on the given Segment.
Definition: FillShader.cpp:24
Mercator::Buffer::getData
DataType * getData()
Accessor for a pointer to buffer containing data values.
Definition: Buffer.h:70
Mercator::FillShader
Shader that fills the surface.
Definition: FillShader.h:16
Mercator::Shader
Base class for Shader objects which create surface data for use when rendering terrain.
Definition: Shader.h:29
Mercator::FillShader::shade
virtual void shade(Surface &) const
Populate a Surface with data.
Definition: FillShader.cpp:29
Mercator::Shader::Parameters
std::map< std::string, float > Parameters
STL map of parameter values for a shader constructor.
Definition: Shader.h:63