]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture.h
Make better use of matrix operations in Camera
[libs/gl.git] / source / texture.h
index af0844c55e26938f00b2201e2f10abd576ece537..6b8117fe4f7d11b1c385e174cb343da29f48d909 100644 (file)
@@ -71,6 +71,7 @@ protected:
        public:
                Loader(Texture &);
        private:
+               void filter(TextureFilter);
                void generate_mipmap(bool);
                void mag_filter(TextureFilter);
                void max_anisotropy(float);
@@ -118,6 +119,11 @@ protected:
 public:
        void set_min_filter(TextureFilter);
        void set_mag_filter(TextureFilter);
+
+       /** Sets filter for both minification and magnification.  Since mipmapping
+       is not applicable to magnification, LINEAR is used instead. */
+       void set_filter(TextureFilter);
+
        void set_max_anisotropy(float);
 
        /** Sets the wrapping mode for all coordinates. */