X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Flighting.h;h=94ccdd5e968170bdca6b4c0dd4230a4643d893fa;hp=40360fc588508e9cc13cfd63f1b826f972017fea;hb=91d3eac06389c0bb0363f643790581403b5fca1b;hpb=0c1e15e36a46bada35b905b2bdd35f6f48ce7cb0 diff --git a/source/lighting.h b/source/lighting.h index 40360fc5..94ccdd5e 100644 --- a/source/lighting.h +++ b/source/lighting.h @@ -19,6 +19,23 @@ sources. */ class Lighting: public Bindable { +public: + class Loader: public DataFile::ObjectLoader + { + public: + Loader(Lighting &); + + private: + void ambient(float, float, float); + void fog_color(float, float, float); + void fog_density(float); + void fog_half_distance(float); + void horizon_angle(float); + void light(unsigned); + void sky_color(float, float, float); + void zenith_direction(float, float, float); + }; + private: Color ambient; Color sky_color; @@ -27,9 +44,11 @@ private: Color fog_color; float fog_density; std::vector lights; + std::vector owned_data; public: Lighting(); + ~Lighting(); /** Sets the ambient lighting color. Affects all surfaces in the scene. */ void set_ambient(const Color &);