X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Flighting.h;h=94ccdd5e968170bdca6b4c0dd4230a4643d893fa;hp=76c241e9fa5c46e0ff6aefbcd17ef4dadfc81bdc;hb=HEAD;hpb=b824398c547964c2862c4bf9f76426e1e8a4c1cb diff --git a/source/lighting.h b/source/lighting.h deleted file mode 100644 index 76c241e9..00000000 --- a/source/lighting.h +++ /dev/null @@ -1,46 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#ifndef MSP_GL_LIGHTING_H_ -#define MSP_GL_LIGHTING_H_ - -#include -#include "bindable.h" -#include "color.h" -#include "gl.h" - -namespace Msp { -namespace GL { - -class Light; - -/** -Encapsulates global lighting parameters and a number of individual lights. -*/ -class Lighting: public Bindable -{ -private: - Color ambient; - std::vector lights; - -public: - Lighting(); - - void set_ambient(const Color &); - const Color &get_ambient() const { return ambient; } - - void attach(unsigned, const Light &); - void detach(unsigned); - void bind() const; - - static void unbind(); -}; - -} // namespace GL -} // namespace Msp - -#endif