X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexturing.h;h=2b409d64fb713ee221a4842110832258bd92f711;hb=refs%2Fheads%2Fmaster;hp=cba77e3fb3e49a57e4ca98f7bb698f7ddf7f8489;hpb=96e13fc706ba4e1702ff90eb999ee0660278cb0d;p=libs%2Fgl.git diff --git a/source/texturing.h b/source/texturing.h deleted file mode 100644 index cba77e3f..00000000 --- a/source/texturing.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef MSP_GL_TEXTURING_H_ -#define MSP_GL_TEXTURING_H_ - -#include -#include "bindable.h" - -namespace Msp { -namespace GL { - -class Texture; - -class Texturing: public Bindable -{ -private: - struct Attachment - { - unsigned unit; - const Texture *texture; - - Attachment(unsigned, const Texture *); - }; - - std::vector 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