]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texunit.cpp
Object model for Material and TexEnv
[libs/gl.git] / source / texunit.cpp
index 7aced5cc3ba2ab182a4c5e37ce6b37f42e6e21a6..622599a213d2481acba6707e573286b0d4145f9d 100644 (file)
@@ -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
 */
 
@@ -27,6 +27,13 @@ bool TexUnit::set_texture(const Texture *tex)
        return result;
 }
 
+bool TexUnit::set_texenv(const TexEnv *env)
+{
+       bool result=(texenv!=env);
+       texenv=env;
+       return result;
+}
+
 TexUnit &TexUnit::activate(unsigned n)
 {
        if(units.size()<=n)