]> git.tdb.fi Git - libs/gl.git/blobdiff - source/effects/shadowmap.h
Split the Light class into subclasses by light type
[libs/gl.git] / source / effects / shadowmap.h
index c3c7bd55a7f53430937cce8faf6f6955b220f61d..cb6229935a81806dc3bad9af00b72bed47e739b7 100644 (file)
@@ -12,6 +12,7 @@
 namespace Msp {
 namespace GL {
 
+class DirectionalLight;
 class Light;
 
 /**
@@ -49,10 +50,10 @@ private:
 
        ShadowMap(unsigned, unsigned, Renderable &, const Lighting *, Renderable &);
 public:
-       ShadowMap(unsigned, Renderable &, const Light &, Renderable &);
+       ShadowMap(unsigned, Renderable &, const DirectionalLight &, Renderable &);
        ShadowMap(unsigned, unsigned, Renderable &, const Lighting &, Renderable &);
 
-       void add_light(const Light &, unsigned);
+       void add_light(const DirectionalLight &, unsigned);
 
        /** Sets the ShadowMap target point and radius.  The transformation matrix is
        computed so that a sphere with the specified parameters will be completely