X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexturing.h;h=2b409d64fb713ee221a4842110832258bd92f711;hp=51070ffa4d06cdbf3291529eef50cb1ca7a27821;hb=HEAD;hpb=f14435e58bfa0fa697a06ba9a454bb30cd37d9d8 diff --git a/source/texturing.h b/source/texturing.h deleted file mode 100644 index 51070ffa..00000000 --- a/source/texturing.h +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef MSP_GL_TEXTURING_H_ -#define MSP_GL_TEXTURING_H_ - -#include -#include "bindable.h" - -namespace Msp { -namespace GL { - -class TexEnv; -class Texture; - -class Texturing: public Bindable -{ -private: - struct Attachment - { - const Texture *tex; - const TexEnv *env; - - Attachment(); - }; - - std::vector attachments; - -public: - ~Texturing(); - - void attach(unsigned, const Texture &); - void attach(unsigned, const Texture &, const TexEnv &); - void detach(unsigned); -private: - void set_attachment(unsigned, const Texture *, const TexEnv *); - void bind_attachment(unsigned) const; - - static void unbind_attachment(unsigned); - -public: - void bind() const; - - static void unbind(); -}; - -} // namespace GL -} // namespace Msp; - -#endif