mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
Reworked internal anisotropic filtering code to be more concise and intuitive
This commit is contained in:
@@ -56,6 +56,7 @@ public:
|
||||
FilterMode min;
|
||||
FilterMode mag;
|
||||
FilterMode mipmap;
|
||||
float anisotropy;
|
||||
};
|
||||
|
||||
struct Wrap
|
||||
@@ -71,10 +72,6 @@ public:
|
||||
static void setDefaultFilter(const Filter &f);
|
||||
static const Filter &getDefaultFilter();
|
||||
|
||||
// The default amount of anisotropic filtering.
|
||||
static void setDefaultAnisotropy(float anisotropy);
|
||||
static float getDefaultAnisotropy();
|
||||
|
||||
static bool getConstant(const char *in, FilterMode &out);
|
||||
static bool getConstant(FilterMode in, const char *&out);
|
||||
static bool getConstant(const char *in, WrapMode &out);
|
||||
@@ -82,12 +79,9 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
// The default image filter.
|
||||
// The default texture filter.
|
||||
static Filter defaultFilter;
|
||||
|
||||
// The default amount of anisotropic filtering.
|
||||
static float defaultAnisotropy;
|
||||
|
||||
static StringMap<FilterMode, FILTER_MAX_ENUM>::Entry filterModeEntries[];
|
||||
static StringMap<FilterMode, FILTER_MAX_ENUM> filterModes;
|
||||
static StringMap<WrapMode, WRAP_MAX_ENUM>::Entry wrapModeEntries[];
|
||||
|
||||
Reference in New Issue
Block a user