mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Move the default image filter to the Image class, instead of Graphics applying it on newImage
This commit is contained in:
@@ -71,6 +71,9 @@ namespace opengl
|
||||
bool loadVolatilePOT();
|
||||
bool loadVolatileNPOT();
|
||||
|
||||
// The default image filter
|
||||
static Image::Filter defaultFilter;
|
||||
|
||||
public:
|
||||
|
||||
/**
|
||||
@@ -141,6 +144,10 @@ namespace opengl
|
||||
|
||||
static bool hasNpot();
|
||||
|
||||
// The default filter.
|
||||
static void setDefaultFilter(const Image::Filter &f);
|
||||
static const Image::Filter &getDefaultFilter();
|
||||
|
||||
private:
|
||||
|
||||
void drawv(const Matrix & t, const vertex * v) const;
|
||||
|
||||
Reference in New Issue
Block a user