Fix Issue #278: Set default filter mode for new images.

Add the somewhat lengthy named love.graphics.getDefaultImageFilter() and
love.graphics.getDefaultImageFilter(). The verbose name should point to the
fact that changing the default filter midway through the game will not affect
the images already loaded using love.graphics.newImage().
This commit is contained in:
vrld
2011-10-07 14:44:17 +02:00
parent bee9d49515
commit 48137cd2e1
7 changed files with 64 additions and 7 deletions
+11
View File
@@ -113,6 +113,7 @@ namespace opengl
private:
Font * currentFont;
Image::Filter currentImageFilter;
DisplayMode currentMode;
float lineWidth;
@@ -332,6 +333,11 @@ namespace opengl
**/
void setColorMode (ColorMode mode);
/**
* Sets the current image filter.
**/
void setDefaultImageFilter(const Image::Filter& f);
/**
* Gets the current blend mode.
**/
@@ -342,6 +348,11 @@ namespace opengl
**/
ColorMode getColorMode();
/**
* Gets the current image filter.
**/
const Image::Filter& getDefaultImageFilter() const;
/**
* Sets the line width.
* @param width The new width of the line.