diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-01-28 22:41:25 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-01-28 22:41:25 +0000 |
| commit | 1409af06f789ee1a832e61ed722cc48ed18f89f3 (patch) | |
| tree | f1393eff53f5b25ef4b005da1de981793037eb2c /hacks/gl/drawable.h | |
| parent | 4117c113eeffe817fddc1c63f5d10eb4e6ada4f9 (diff) | |
OpenGL hacks.
Diffstat (limited to 'hacks/gl/drawable.h')
| -rw-r--r-- | hacks/gl/drawable.h | 27 |
1 files changed, 27 insertions, 0 deletions
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 |
