X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexgen.h;h=c69df6386fceb0036eb99e8ebfa6ddf5280d6cce;hp=bb076c629ddb2ea7ea50d8b1b1f1cb64e1b11391;hb=6fd9b09f47ff6a07bd5ca7f9e8887db3486bfcb1;hpb=787e0f5daaccb912fd351b26f9cb9026719ab384 diff --git a/source/texgen.h b/source/texgen.h index bb076c62..c69df638 100644 --- a/source/texgen.h +++ b/source/texgen.h @@ -35,10 +35,13 @@ public: 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); };