OpenGL hacks.
[dcpomatic.git] / hacks / gl / drawable.h
diff --git a/hacks/gl/drawable.h b/hacks/gl/drawable.h
new file mode 100644 (file)
index 0000000..660652b
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef _drawable_
+#define _drawable_
+
+#include "image.h"
+
+class DrawableThing
+{
+public:
+    int x,y, angle, hotspotX, hotspotY;
+    float xscale, yscale;
+    Image* image;
+    bool xflip, yflip;
+
+    DrawableThing(Image* image=0);
+    void setFlip(bool x, bool y);
+    void move(int x, int y);
+    void setHotspot(int x, int y);
+    void scale(float x, float y);
+    void scale(float k);
+    void setImage(Image* image);
+    void render();
+    void rotate(int angle);
+
+};
+
+
+#endif