X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=hacks%2Fgl%2Fdrawable.h;fp=hacks%2Fgl%2Fdrawable.h;h=660652b578d99c23a829838a19d88f53784045d9;hb=1409af06f789ee1a832e61ed722cc48ed18f89f3;hp=0000000000000000000000000000000000000000;hpb=4117c113eeffe817fddc1c63f5d10eb4e6ada4f9;p=dcpomatic.git diff --git a/hacks/gl/drawable.h b/hacks/gl/drawable.h new file mode 100644 index 000000000..660652b57 --- /dev/null +++ b/hacks/gl/drawable.h @@ -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