AreaShader.h

00001 // This file may be redistributed and modified only under the terms of
00002 // the GNU General Public License (See COPYING for details).
00003 // Copyright (C) 2005 Alistair Riddoch
00004 
00005 #ifndef MERCATOR_AREASHADER_H
00006 #define MERCATOR_AREASHADER_H
00007 
00008 #include <Mercator/Shader.h>
00009 
00010 namespace Mercator
00011 {
00012 
00013 class Area;
00014 
00015 class AreaShader : public Shader
00016 {
00017 public:
00018     AreaShader(int layer);
00019     
00020     virtual void shade(Surface &s) const;
00021     
00022     virtual bool checkIntersect(const Segment &) const;
00023 private:
00025     void shadeArea(Surface& s, const Area* const s) const;
00026     
00027     int m_layer;
00028 };
00029 
00030 }
00031 
00032 #endif // of MERCATOR_AREASHADER_H

Generated on Thu Nov 9 13:32:17 2006 for Mercator by  doxygen 1.4.7