Add framebuffer filter modes (issue #112)

This commit is contained in:
vrld
2011-01-01 19:42:59 +01:00
parent 618d48ce39
commit 9dad948263
4 changed files with 75 additions and 2 deletions
+9 -1
View File
@@ -3,6 +3,7 @@
#include <graphics/Drawable.h>
#include <graphics/Volatile.h>
#include <graphics/Image.h>
#include <image/Image.h>
#include <image/ImageData.h>
#include <common/math.h>
@@ -30,7 +31,10 @@ namespace opengl
virtual void draw(float x, float y, float angle, float sx, float sy, float ox, float oy) const;
love::image::ImageData * getImageData(love::image::Image * image);
void setFilter(Image::Filter f);
Image::Filter getFilter() const;
bool loadVolatile();
void unloadVolatile();
@@ -44,6 +48,10 @@ namespace opengl
vertex vertices[4];
GLenum status;
struct {
Image::Filter filter;
} settings;
};
} // opengl