@@ -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)
{
@@ -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
};