]> git.tdb.fi Git - libs/gl.git/blobdiff - source/resources/resources.cpp
Use persistent uniform blocks for Camera, Lighting and Clipping
[libs/gl.git] / source / resources / resources.cpp
index 79c95932b6c52b03f45c669d58a68f71d5e2bbeb..682acde23d6603604f411193e7407d9cb09d530b 100644 (file)
@@ -44,11 +44,13 @@ Resources::Resources(bool set_as_global):
 {
        add_type<Animation>().suffix(".anim").keyword("animation");
        add_type<Armature>().suffix(".arma").keyword("armature");
-       add_type<Camera>().keyword("camera");
+       add_type<Camera>().keyword("camera")
+               .notify(&Resources::set_debug_name<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<Lighting>().suffix(".lightn").keyword("lighting")
+               .notify(&Resources::set_debug_name<Lighting>);
        add_type<Material>().suffix(".mat")
                .creator(&Resources::create_material).notify(&Resources::set_debug_name<Material>);
        add_type<Mesh>().keyword("mesh")