Added destructor in Frame.

This commit is contained in:
rude
2009-07-27 00:37:40 +02:00
parent 57aea1cd51
commit 76e59f37d0
3 changed files with 8 additions and 5 deletions
+4
View File
@@ -44,6 +44,10 @@ namespace opengl
vertices[2].s = (float)(x+w)/(float)sw; vertices[2].t = (float)(y+h)/(float)sh;
vertices[3].s = (float)(x+w)/(float)sw; vertices[3].t = (float)y/(float)sh;
}
Frame::~Frame()
{
}
void Frame::flip(bool x, bool y)
{
+4 -1
View File
@@ -22,6 +22,7 @@
#define LOVE_GRAPHICS_OPENGL_FRAME_H
// LOVE
#include <common/Object.h>
#include <common/math.h>
#include <graphics/Drawable.h>
@@ -31,7 +32,7 @@ namespace graphics
{
namespace opengl
{
class Frame
class Frame : public Object
{
private:
vertex vertices[4];
@@ -51,6 +52,8 @@ namespace opengl
**/
Frame(int x, int y, int w, int h, int sw, int sh);
virtual ~Frame();
void flip(bool x, bool y);
/**
@@ -754,14 +754,10 @@ namespace opengl
// Types for this module.
const lua_CFunction wrap_Graphics_types[] = {
//wrap_Color_open,
wrap_Font_open,
wrap_Image_open,
wrap_Frame_open,
//wrap_Animation_open,
//wrap_ParticleSystem_open,
//wrap_SpriteBatch_open,
//wrap_VertexBuffer_open,
0
};