X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture.h;h=af0844c55e26938f00b2201e2f10abd576ece537;hb=2b779717e42b514210f7128cf9aee2276650e003;hp=30ad484cbc29835108788add581d54ad48791fd1;hpb=e003d7a1497dad3b13e4e88e681f8fa2afc40c83;p=libs%2Fgl.git diff --git a/source/texture.h b/source/texture.h index 30ad484c..af0844c5 100644 --- a/source/texture.h +++ b/source/texture.h @@ -70,8 +70,10 @@ protected: { public: Loader(Texture &); + private: void generate_mipmap(bool); void mag_filter(TextureFilter); + void max_anisotropy(float); void min_filter(TextureFilter); void wrap(TextureWrap); void wrap_r(TextureWrap); @@ -88,13 +90,15 @@ protected: WRAP_R = 16, GENERATE_MIPMAP = 32, COMPARE = 64, - COMPARE_FUNC = 128 + COMPARE_FUNC = 128, + MAX_ANISOTROPY = 256 }; unsigned id; GLenum target; TextureFilter min_filter; TextureFilter mag_filter; + float max_anisotropy; TextureWrap wrap_s; TextureWrap wrap_t; TextureWrap wrap_r; @@ -114,6 +118,7 @@ protected: public: void set_min_filter(TextureFilter); void set_mag_filter(TextureFilter); + void set_max_anisotropy(float); /** Sets the wrapping mode for all coordinates. */ void set_wrap(TextureWrap);