SenOGL
0.2
Library aiming to ease the use of OpenGL
|
Scoped texture Binder. More...
#include <Texture.hpp>
Public Member Functions | |
Binder (const Texture &t, unsigned int unit=0) | |
~Binder () | |
Scoped texture Binder.
Texture is unbound at destruction and previously bound texture is restored.
Should do nothing if the texture is already bound to the specified texture unit. However, this will always change the current active texture unit !
Texture::Binder::Binder | ( | const Texture & | t, |
unsigned int | unit = 0 |
||
) |
Texture::Binder::~Binder | ( | ) |