X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexenv.h;h=1327bb850de64999e297f504b82489811164104c;hb=6fd9b09f47ff6a07bd5ca7f9e8887db3486bfcb1;hp=55704e580ecb4719712ffccef86ec2b5f69b495d;hpb=020811d96d5c823686e5c2b0a392b95d1a321f05;p=libs%2Fgl.git diff --git a/source/texenv.h b/source/texenv.h index 55704e58..1327bb85 100644 --- a/source/texenv.h +++ b/source/texenv.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007-2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GL_TEXENV_H_ #define MSP_GL_TEXENV_H_ @@ -36,10 +29,12 @@ public: void set_color(const Color &); TexEnvMode get_mode() const { return mode; } const Color &get_color() const { return color; } - void bind() const; + void bind() const { bind_to(0); } + void bind_to(unsigned) const; - static const TexEnv *current(); - static void unbind(); + static const TexEnv *current(unsigned = 0); + static void unbind() { unbind_from(0); } + static void unbind_from(unsigned); }; } // namespace GL