mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
More code restructuring.
Move all love.graphics functionality that doesn’t call OpenGL out of the OpenGL backend Graphics class. --HG-- branch : minor
This commit is contained in:
@@ -81,6 +81,10 @@ public:
|
||||
Texture();
|
||||
virtual ~Texture();
|
||||
|
||||
static Filter defaultFilter;
|
||||
static FilterMode defaultMipmapFilter;
|
||||
static float defaultMipmapSharpness;
|
||||
|
||||
// Drawable.
|
||||
void draw(Graphics *gfx, const Matrix4 &m) override;
|
||||
|
||||
@@ -109,10 +113,6 @@ public:
|
||||
|
||||
virtual ptrdiff_t getHandle() const = 0;
|
||||
|
||||
// The default filter.
|
||||
static void setDefaultFilter(const Filter &f);
|
||||
static const Filter &getDefaultFilter();
|
||||
|
||||
static bool validateFilter(const Filter &f, bool mipmapsAllowed);
|
||||
|
||||
static bool getConstant(const char *in, FilterMode &out);
|
||||
@@ -140,9 +140,6 @@ protected:
|
||||
|
||||
private:
|
||||
|
||||
// The default texture filter.
|
||||
static Filter defaultFilter;
|
||||
|
||||
static StringMap<FilterMode, FILTER_MAX_ENUM>::Entry filterModeEntries[];
|
||||
static StringMap<FilterMode, FILTER_MAX_ENUM> filterModes;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user