]> git.tdb.fi Git - libs/gl.git/commitdiff
Add OccludedScene to the registered scene types
authorMikko Rasa <tdb@tdb.fi>
Sun, 9 May 2021 08:22:19 +0000 (11:22 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 9 May 2021 08:22:27 +0000 (11:22 +0300)
source/render/scene.cpp

index 70a9e94b6c354d2519b5b49041b085dd3fd70497..cec2683abd2f0303b0fe90e1b6d3fc7db90e6127 100644 (file)
@@ -1,6 +1,7 @@
 #include <msp/datafile/collection.h>
 #include "camera.h"
 #include "objectinstance.h"
+#include "occludedscene.h"
 #include "orderedscene.h"
 #include "renderer.h"
 #include "scene.h"
@@ -86,8 +87,7 @@ Scene::SceneRegistry &Scene::get_scene_registry()
                register_type<SimpleScene>("simple");
                register_type<ZSortedScene>("zsorted");
                register_type<OrderedScene>("ordered");
-               // TODO OccludedScene requires a collection as a constructor parameter
-               //register_type<OccludedScene>("occluded");
+               register_type<OccludedScene>("occluded");
        }
        return registry;
 }