X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexgen.h;h=5858efb4e39e86814489e597280ebe6cb97736cc;hb=67538c60b8baa6816b8ae2d343ae62d881e6c58d;hp=bb076c629ddb2ea7ea50d8b1b1f1cb64e1b11391;hpb=777f5f37f2d89ef2a787a77d74372b643968740e;p=libs%2Fgl.git diff --git a/source/texgen.h b/source/texgen.h index bb076c62..5858efb4 100644 --- a/source/texgen.h +++ b/source/texgen.h @@ -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); };