]> git.tdb.fi Git - libs/gl.git/blobdiff - source/resources/resources.cpp
Make it possible to have datafiles for individual lights
[libs/gl.git] / source / resources / resources.cpp
index b5093932c2516f44d7fd93c660aafe1e734eb93f..c9db211b2172480300732c6106526c75e6070bbc 100644 (file)
@@ -5,6 +5,7 @@
 #include "camera.h"
 #include "font.h"
 #include "keyframe.h"
+#include "light.h"
 #include "lighting.h"
 #include "material.h"
 #include "mesh.h"
@@ -43,6 +44,7 @@ Resources::Resources():
        add_type<Camera>().keyword("camera");
        add_type<Font>().keyword("font");
        add_type<KeyFrame>().suffix(".kframe").keyword("keyframe");
+       add_type<Light>().keyword("light");
        add_type<Lighting>().suffix(".lightn").keyword("lighting");
        add_type<Material>().suffix(".mat").creator(&Resources::create_material);
        add_type<Mesh>().keyword("mesh").creator(&Resources::create_mesh);