Move the default image filter to the Image class, instead of Graphics applying it on newImage

This commit is contained in:
Bart van Strien
2012-05-18 17:35:51 +02:00
parent 1a89622262
commit 1e00f0f981
4 changed files with 23 additions and 6 deletions
+7
View File
@@ -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;