Rev 5281 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5281 | ZblCoder | 1 | #include "smalllibc/kosSyst.h" |
5276 | ZblCoder | 2 | |
3 | #define DRAW_NONE 0 |
||
4 | #define DRAW_ALPHA 1 |
||
5 | #define DRAW_ALPHA_ADD 2 |
||
6 | |||
7 | class CKosImage |
||
8 | { |
||
9 | private: |
||
10 | bool isColor; |
||
11 | RGB color; |
||
12 | int getPixel(int x, int y); |
||
13 | Byte mode; |
||
14 | int frame; |
||
15 | int frameWidth; |
||
16 | int frameHeight; |
||
17 | public: |
||
18 | CKosImage(CKosRender *render, RGBA *buffer, int width, int height); |
||
19 | ~CKosImage(void); |
||
20 | |||
21 | void Draw(Point position, float angle, RGB color); |
||
22 | void Draw(Point position, float angle); |
||
23 | void Draw(Point position, float angle, int frame); |
||
5296 | ZblCoder | 24 | void Draw(Point position, float angle, int frame, RGB color); |
5276 | ZblCoder | 25 | void SetMode(int mode); |
26 | void SetFrameSize(int width, int height); |
||
27 | protected: |
||
28 | CKosRender *render; |
||
29 | RGBA *buffer; |
||
30 | int width; |
||
31 | int height; |
||
32 | }; |