X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftexturing.h;h=2b409d64fb713ee221a4842110832258bd92f711;hb=HEAD;hp=c51782bbf237959558af379998d5f4bab504d962;hpb=abc16c5ab0fff0945d724febe9d5d3889fb8a6ce;p=libs%2Fgl.git diff --git a/source/texturing.h b/source/texturing.h deleted file mode 100644 index c51782bb..00000000 --- a/source/texturing.h +++ /dev/null @@ -1,54 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#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