]> git.tdb.fi Git - libs/gl.git/blobdiff - source/lighting.h
Add some accessors
[libs/gl.git] / source / lighting.h
index 5469cef5a8df3755d5c2fbb7dd13a734855d62ca..8b3feb5f343af74622aa26b8b9689697a8da09a3 100644 (file)
@@ -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;