]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texgen.h
Enhance the extension generator to support different APIs
[libs/gl.git] / source / texgen.h
index bb076c629ddb2ea7ea50d8b1b1f1cb64e1b11391..5858efb4e39e86814489e597280ebe6cb97736cc 100644 (file)
@@ -31,14 +31,18 @@ private:
 
 public:
        TexGen();
+       ~TexGen();
 
        void set_mode(TexGenMode);
        void set_plane(const Vector4 &);
 
-       void bind_to(TexCoordComponent) const;
+       void bind_to(TexCoordComponent c) const { bind_to(0, c); }
+       void bind_to(unsigned, TexCoordComponent) const;
 
-       static const TexGen *current(TexCoordComponent);
-       static void unbind_from(TexCoordComponent);
+       static const TexGen *current(TexCoordComponent c) { return current(0, c); }
+       static const TexGen *current(unsigned, TexCoordComponent);
+       static void unbind_from(TexCoordComponent c) { unbind_from(0, c); }
+       static void unbind_from(unsigned, TexCoordComponent);
 private:
        static unsigned coord_index(TexCoordComponent);
 };