]> git.tdb.fi Git - libs/gl.git/blobdiff - demos/desertpillars/source/desertpillars.cpp
Split the Light class into subclasses by light type
[libs/gl.git] / demos / desertpillars / source / desertpillars.cpp
index 016cc95d12bb878ee38dfbe11866a9f143cff5c6..5932e56968be16851469fd045e58b96708b30dc6 100644 (file)
@@ -1,4 +1,5 @@
 #include <msp/fs/dir.h>
+#include <msp/gl/directionallight.h>
 #include <msp/gl/sequencebuilder.h>
 #include <msp/gl/renderer.h>
 #include <msp/gl/tests.h>
@@ -34,7 +35,7 @@ DesertPillars::DesertPillars(int, char **):
        window.signal_close.connect(sigc::bind(sigc::mem_fun(this, &DesertPillars::exit), 0));
        keyboard.signal_button_press.connect(sigc::bind_return(sigc::mem_fun(this, &DesertPillars::key_press), false));
 
-       GL::Light &sun = resources.get<GL::Light>("Sun.light");
+       GL::DirectionalLight &sun = resources.get<GL::DirectionalLight>("Sun.light");
        sky = make_unique<GL::Sky>(content, sun);
        sky->set_debug_name("Sky");