X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Flighting.h;h=94ccdd5e968170bdca6b4c0dd4230a4643d893fa;hb=HEAD;hp=31e75a44c66b36442778b7ac2d07e0add0a6f342;hpb=42ace9ac1350d3ae009bdd2fb335ac1e57d1b36b;p=libs%2Fgl.git diff --git a/source/lighting.h b/source/lighting.h deleted file mode 100644 index 31e75a44..00000000 --- a/source/lighting.h +++ /dev/null @@ -1,51 +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; - -enum -{ - LIGHTING = GL_LIGHTING -}; - -/** -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