X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmaterial.h;h=1da27199aa21ebea2704862527d920de982721c7;hb=50e504e2171295d5922ddf87b358e0024db3ce40;hp=b0c9cd0d3510c2e2d76612bea410f8b13670423a;hpb=530ace590ddb8024fbffc944d006aae7876a25f9;p=libs%2Fgl.git diff --git a/source/material.h b/source/material.h index b0c9cd0d..1da27199 100644 --- a/source/material.h +++ b/source/material.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Copyright © 2007-2008 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -56,7 +56,11 @@ public: const Color &get_specular() const { return specular; } const Color &get_emission() const { return emission; } float get_shininess() const { return shininess; } - void apply() const; + void bind() const; + + static void unbind(); +private: + static const Material *current; }; } // namespace GL