X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftexture.h;h=f491297d692816de8d2503ba8e6071f77a852ca6;hb=0f890ce60a560ba2ccc0719229be304bb597d919;hp=abccb8d8122de9db6519fff679232d9923392715;hpb=1955e583d7eeeb0a2ff054d90c3694f575d9a08d;p=libs%2Fgl.git diff --git a/source/texture.h b/source/texture.h index abccb8d8..f491297d 100644 --- a/source/texture.h +++ b/source/texture.h @@ -163,6 +163,8 @@ public: void set_wrap_t(TextureWrap); void set_wrap_r(TextureWrap); + static bool can_generate_mipmap(); + /** Sets automatic mipmap generation. If enabled, mipmaps are generated when a texture image is uploaded. */ void set_generate_mipmap(bool); @@ -194,8 +196,8 @@ public: GLenum get_target() const { return target; } unsigned get_id() const { return id; } - void bind() const { bind_to(0); } - void bind_to(unsigned) const; + void bind(bool legacy = true) const { bind_to(0, legacy); } + void bind_to(unsigned, bool = true) const; static const Texture *current(unsigned = 0); static void unbind() { unbind_from(0); }