X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Flighting.h;h=94ccdd5e968170bdca6b4c0dd4230a4643d893fa;hp=85d5fb0406c877cb0d89e855cc6d6cff2b90a384;hb=HEAD;hpb=efe80f5a696b4a3be2378dc6d635c89676afa12d diff --git a/source/lighting.h b/source/lighting.h deleted file mode 100644 index 85d5fb04..00000000 --- a/source/lighting.h +++ /dev/null @@ -1,52 +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 "color.h" -#include "gl.h" - -namespace Msp { -namespace GL { - -class Light; - -enum -{ - LIGHTING = GL_LIGHTING -}; - -/** -Encapsulates global lighting parameters and a number of individual lights. -*/ -class Lighting -{ -private: - Color ambient; - std::vector lights; - - static const Lighting *current; - -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