Subversion Repositories Kolibri OS

Rev

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

  1. #ifndef KOLIBRI_GB_H
  2. #define KOLIBRI_GB_H
  3.  
  4. #pragma pack(push, 1)
  5. typedef struct
  6. {
  7.     int w;
  8.     int h;
  9.     char* bmp;
  10.     char* alpha;
  11. } GB_BMP;
  12. #pragma pack(pop)
  13.  
  14. void gb_pixel_set(GB_BMP* b, int x, int y, unsigned c);
  15. int gb_pixel_get(GB_BMP* b, int x, int y, unsigned* c);
  16. void gb_line(GB_BMP* b, int x1, int y1, int x2, int y2, unsigned c);
  17. void gb_rect(GB_BMP* b, int x, int y, int w, int h, unsigned c);
  18. void gb_bar(GB_BMP* b, int x, int y, int w, int h, unsigned c);
  19. void gb_circle(GB_BMP* b, int x, int y, int r, unsigned c);
  20. void gb_image_set(GB_BMP* b_dest, int x_d, int y_d, GB_BMP* b_src, int x_s, int y_s, int w, int h);
  21. void gb_image_set_t(GB_BMP* b_dest, int x_d, int y_d, GB_BMP* b_src, int x_s, int y_s, int w, int h, unsigned c);
  22.  
  23. #endif // KOLIBRI_GB_H