+ static DataType get_alloc_type(PixelFormat);
+ void set_internal_format(PixelFormat);
+
+ void update_parameter(int) const;
+ void set_parameter_i(GLenum, int) const;
+ void set_parameter_f(GLenum, float) const;
+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. */
+ void set_wrap(TextureWrap);
+
+ void set_wrap_s(TextureWrap);
+ void set_wrap_t(TextureWrap);
+ void set_wrap_r(TextureWrap);
+
+ /** Sets automatic mipmap generation. If enabled, mipmaps are generated
+ when a texture image is uploaded. */
+ void set_generate_mipmap(bool);
+
+protected:
+ void auto_generate_mipmap();