+++ /dev/null
-#ifndef MSP_GL_TEXTURING_H_
-#define MSP_GL_TEXTURING_H_
-
-#include <vector>
-#include "bindable.h"
-
-namespace Msp {
-namespace GL {
-
-class Texture;
-
-class Texturing: public Bindable<Texturing>
-{
-private:
- struct Attachment
- {
- unsigned unit;
- const Texture *texture;
-
- Attachment(unsigned, const Texture *);
- };
-
- std::vector<Attachment> attachments;
-
-public:
- ~Texturing();
-
- int find_free_unit(const std::string & = std::string()) const;
- void attach(unsigned, const Texture &);
- void detach(unsigned);
-private:
- void set_attachment(unsigned, const Texture *);
-public:
- const Texture *get_attached_texture(unsigned) const;
-
- void bind() const;
-
- static void unbind();
-};
-
-} // namespace GL
-} // namespace Msp;
-
-#endif