mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-28 17:29:41 +03:00
62d9d697a9
git-svn-id: svn://kolibrios.org@5296 a494cfbc-eb01-0410-851d-a64ba20cac60
32 lines
724 B
C++
32 lines
724 B
C++
#include "smalllibc/kosSyst.h"
|
|
|
|
#define DRAW_NONE 0
|
|
#define DRAW_ALPHA 1
|
|
#define DRAW_ALPHA_ADD 2
|
|
|
|
class CKosImage
|
|
{
|
|
private:
|
|
bool isColor;
|
|
RGB color;
|
|
int getPixel(int x, int y);
|
|
Byte mode;
|
|
int frame;
|
|
int frameWidth;
|
|
int frameHeight;
|
|
public:
|
|
CKosImage(CKosRender *render, RGBA *buffer, int width, int height);
|
|
~CKosImage(void);
|
|
|
|
void Draw(Point position, float angle, RGB color);
|
|
void Draw(Point position, float angle);
|
|
void Draw(Point position, float angle, int frame);
|
|
void Draw(Point position, float angle, int frame, RGB color);
|
|
void SetMode(int mode);
|
|
void SetFrameSize(int width, int height);
|
|
protected:
|
|
CKosRender *render;
|
|
RGBA *buffer;
|
|
int width;
|
|
int height;
|
|
}; |