Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. #ifndef __PIXLIB3_H__
  2. #define __PIXLIB3_H__
  3.  
  4. #include <stdint.h>
  5.  
  6. #define HW_BIT_BLIT         (1<<0)      /* BGRX blitter             */
  7. #define HW_TEX_BLIT         (1<<1)      /* stretch blit             */
  8. #define HW_VID_BLIT         (1<<2)      /* planar and packed video  */
  9.  
  10.  
  11. struct bitmap;
  12. typedef struct bitmap bitmap_t;
  13.  
  14. uint32_t pxInit(int hw);
  15. void pxFini();
  16.  
  17. bitmap_t *pxCreateBitmap(uint32_t width, uint32_t height);
  18.  
  19. int pxDestroyBitmap(bitmap_t *bitmap);
  20.  
  21. void *pxLockBitmap(bitmap_t *bitmap, uint32_t *pitch);
  22.  
  23. int pxResizeBitmap(bitmap_t *bitmap, uint32_t width, uint32_t height);
  24.  
  25. int pxBlitBitmap(bitmap_t *bitmap, int dst_x, int dst_y,
  26.                  uint32_t w, uint32_t h, int src_x, int src_y);
  27.  
  28. int pxCreateClient(int x, int y, uint32_t width, uint32_t height);
  29.  
  30. int pxResizeClient(int x, int y, uint32_t width, uint32_t height);
  31.  
  32. #endif
  33.  
  34.