X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Flighting.h;h=8b3feb5f343af74622aa26b8b9689697a8da09a3;hp=5469cef5a8df3755d5c2fbb7dd13a734855d62ca;hb=fc0f53b1981436d39a27884376e852dca5671fda;hpb=3657f20f4d1ce6f998bea46144cea52317cff1d9 diff --git a/source/lighting.h b/source/lighting.h index 5469cef5..8b3feb5f 100644 --- a/source/lighting.h +++ b/source/lighting.h @@ -52,6 +52,10 @@ public: /** Detaches a light source. */ void detach(unsigned); + /** Returns an attached light. If no light is attached at that index, null + is returned. */ + const Light *get_attached_light(unsigned) const; + /** Updates a ProgramData object with the uniforms for the Lighting, including all attached light sources. A view matrix must be passed in. */ void update_shader_data(ProgramData &, const Matrix &) const;