GLenum get_target() const { return target; }
unsigned get_id() const { return id; }
- void bind() const;
+ void bind() const { bind_to(0); }
void bind_to(unsigned) const;
- static const Texture *current();
- static void unbind();
+ static const Texture *current(unsigned = 0);
+ static void unbind() { unbind_from(0); }
static void unbind_from(unsigned);
};