/** 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;