13 #ifndef OGLPLUS_OBJECT_AUTO_REBIND_1107121519_HPP
14 #define OGLPLUS_OBJECT_AUTO_REBIND_1107121519_HPP
20 template <
typename Object>
24 template <
typename OpsTag,
typename ObjTag>
34 : _object(ObjBindingOps<ObjTag>::Binding(target))
41 ObjBindingOps<ObjTag>::Bind(_target, _object);
47 #endif // include guard
~AutoRebind(void)
Re-binds the object to the target specified in constructor.
Definition: auto_rebind.hpp:39
AutoRebind(Target target)
Remembers the object currently bound to target.
Definition: auto_rebind.hpp:33
Generic OpenGL object wrapper.
Implements operations applicable to named (non-zero) objects.
Definition: wrap_tpl.hpp:45
A common template for "named" objects like textures, buffers, etc.
Definition: fwd.hpp:136