]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/lighting.h
Make it possible to have datafiles for individual lights
[libs/gl.git] / source / materials / lighting.h
index 226dee1c05a740e27a23d53baec2e4416e4a558a..2a8756c3e567442758a9372932d7e958c7214ee6 100644 (file)
@@ -19,13 +19,14 @@ sources.
 class Lighting
 {
 public:
-       class Loader: public DataFile::ObjectLoader<Lighting>
+       class Loader: public DataFile::CollectionObjectLoader<Lighting>
        {
        private:
                static ActionMap shared_actions;
 
        public:
                Loader(Lighting &);
+               Loader(Lighting &, Collection &);
 
        private:
                virtual void init_actions();
@@ -35,8 +36,9 @@ public:
                void fog_density(float);
                void fog_half_distance(float);
                void horizon_angle(float);
-               void light();
-               void light_index(unsigned);
+               void light(const std::string &);
+               void light_inline();
+               void light_inline_index(unsigned);
                void sky_color(float, float, float);
                void zenith_direction(float, float, float);
        };