Subversion Repositories Kolibri OS

Rev

Rev 5281 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #include "smalllibc/kosSyst.h"
  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);
  24.         void Draw(Point position, float angle, int frame, RGB color);
  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. };