Move fbo:grab() to love.graphics.setRenderTarget( fbo )
Move fbo:stop() to love.graphics.setRenderTarget( nil )

Rename fbo:render( func ) to fbo:renderTo( func )
This commit is contained in:
vrld
2010-08-26 20:44:30 +02:00
parent 98feae1950
commit 320ac05fd1
6 changed files with 67 additions and 56 deletions
+8 -6
View File
@@ -20,16 +20,18 @@ namespace opengl
Framebuffer(int width, int height);
virtual ~Framebuffer();
unsigned int getStatus() const { return status_; }
unsigned int getStatus() const { return status; }
bool grab();
bool stop();
static Framebuffer* current;
static void bindDefaultBuffer();
void startGrab();
void stopGrab();
virtual void draw(float x, float y, float angle, float sx, float sy, float ox, float oy) const;
private:
static bool isGrabbing;
private:
GLsizei width;
GLsizei height;
GLuint fbo;
@@ -38,7 +40,7 @@ namespace opengl
vertex vertices[4];
GLenum status_;
GLenum status;
};
} // opengl