X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Ftexturing.h;fp=source%2Frender%2Ftexturing.h;h=0000000000000000000000000000000000000000;hb=5b652353d545a3190ea2d86ba82a87b2e3382a0d;hp=44189c903c8a2dd55994788750a7fbd2786a8032;hpb=dbc91b65728ab9c0e574bb1127cfe4d2da55de7f;p=libs%2Fgl.git diff --git a/source/render/texturing.h b/source/render/texturing.h deleted file mode 100644 index 44189c90..00000000 --- a/source/render/texturing.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef MSP_GL_TEXTURING_H_ -#define MSP_GL_TEXTURING_H_ - -#include -#include "bindable.h" - -namespace Msp { -namespace GL { - -class Texture; - -class DEPRECATED Texturing: public Bindable -{ -private: - struct Attachment - { - unsigned unit; - const Texture *texture; - const Sampler *sampler; - - Attachment(unsigned, const Texture *, const Sampler *); - }; - - std::vector attachments; - -public: - ~Texturing(); - - int find_free_unit(const std::string & = std::string()) const; - void attach(unsigned, const Texture &, const Sampler * = 0); - void attach(unsigned, const Sampler &); - void detach(unsigned); -private: - void set_attachment(unsigned, const Texture *, const Sampler *); -public: - const Texture *get_attached_texture(unsigned) const; - const Sampler *get_attached_sampler(unsigned) const; - - void bind() const; - - static void unbind(); - -private: - void bind_attachment(const Attachment &) const; - static void unbind_attachment(unsigned); -}; - -} // namespace GL -} // namespace Msp; - -#endif