X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture.h;h=477eaca382fa55dbe6ab1925fb62677db1ed72c1;hb=912ae952489699769be43f90d4478263461964a4;hp=c091c884cacfd592833120b785c7f83ff2fe303e;hpb=6fd9b09f47ff6a07bd5ca7f9e8887db3486bfcb1;p=libs%2Fgl.git diff --git a/source/texture.h b/source/texture.h index c091c884..477eaca3 100644 --- a/source/texture.h +++ b/source/texture.h @@ -8,6 +8,8 @@ namespace Msp { namespace GL { +class Resources; + enum TextureFilter { /// No filtering @@ -66,11 +68,17 @@ wrapping is applied. The default for all directions is REPEAT. class Texture { protected: - class Loader: public DataFile::ObjectLoader + class Loader: public DataFile::CollectionObjectLoader { + protected: + bool srgb; + public: Loader(Texture &); + Loader(Texture &, Collection &); private: + void init(); + void filter(TextureFilter); void generate_mipmap(bool); void mag_filter(TextureFilter);