X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexunit.h;fp=source%2Fcore%2Ftexunit.h;h=0000000000000000000000000000000000000000;hb=9b3bce7ae76ff8c0c81315d2505ea96bf422a318;hp=8fefc3a817c28fe1899e1d169e8a705f8097551d;hpb=a482029babea3210840d8c62e9df9ece4342b2b9;p=libs%2Fgl.git diff --git a/source/core/texunit.h b/source/core/texunit.h deleted file mode 100644 index 8fefc3a8..00000000 --- a/source/core/texunit.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef MSP_GL_TEXUNIT_H_ -#define MSP_GL_TEXUNIT_H_ - -#include - -namespace Msp { -namespace GL { - -class Sampler; -class Texture; - -/** -Keeps track of texture unit related state. Intended for internal use. -*/ -class TexUnit -{ -private: - unsigned index; - const Texture *texture; - const Sampler *sampler; - - static std::vector units; - static TexUnit *cur_unit; - - TexUnit(); - -public: - unsigned get_index() const { return index; } - bool set_texture(const Texture *); - const Texture *get_texture() const { return texture; } - bool set_sampler(const Sampler *); - const Sampler *get_sampler() const { return sampler; } - void bind(); - - DEPRECATED static unsigned get_n_units(); - static TexUnit &get_unit(unsigned); - static TexUnit ¤t(); - static TexUnit *find_unit(const Texture *); -}; - -} // namespace GL -} // namespace Msp - -#endif