blob: 660652b578d99c23a829838a19d88f53784045d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
|