SenOGL  0.2
Library aiming to ease the use of OpenGL
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Texture::Binder Class Reference

Scoped texture Binder. More...

#include <Texture.hpp>

Public Member Functions

 Binder (const Texture &t, unsigned int unit=0)
 
 ~Binder ()
 

Detailed Description

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 !

Constructor & Destructor Documentation

Texture::Binder::Binder ( const Texture t,
unsigned int  unit = 0 
)
Texture::Binder::~Binder ( )

The documentation for this class was generated from the following files: