made Framebuffer Volatile and fixed a few bugs

This commit is contained in:
Bill Meltsner
2010-08-28 13:02:28 -05:00
parent ee3b74e66d
commit 769842ce6e
2 changed files with 23 additions and 8 deletions
+5 -1
View File
@@ -2,6 +2,7 @@
#define LOVE_GRAPHICS_FRAMEBUFFER_H
#include <graphics/Drawable.h>
#include <graphics/Volatile.h>
#include <image/Image.h>
#include <image/ImageData.h>
#include <common/math.h>
@@ -15,7 +16,7 @@ namespace graphics
namespace opengl
{
class Framebuffer : public Drawable
class Framebuffer : public Drawable, public Volatile
{
public:
Framebuffer(int width, int height);
@@ -31,6 +32,9 @@ 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);
bool loadVolatile();
void unloadVolatile();
private:
GLsizei width;