cirrus.h 865 B

1234567891011121314151617181920212223242526
  1. /* Cirrus Logic GD5446 hardware acceleration (BitBLT engine). */
  2. #ifndef CIRRUS_H
  3. #define CIRRUS_H
  4. void cirrus_init(void);
  5. int cirrus_available(void);
  6. /* Copy a pixel rectangle from (sx,sy) to (dx,dy), both within VRAM. */
  7. void cirrus_blit(unsigned int sx, unsigned int sy,
  8. unsigned int dx, unsigned int dy,
  9. unsigned int w, unsigned int h);
  10. /* Fill a pixel rectangle in VRAM with a solid color. */
  11. void cirrus_fill(unsigned int x, unsigned int y,
  12. unsigned int w, unsigned int h,
  13. unsigned int r, unsigned int g, unsigned int b);
  14. /* Hardware cursor (32x32). */
  15. struct cursor_image;
  16. void cirrus_cursor_setup(const struct cursor_image *img);
  17. void cirrus_cursor_load(const struct cursor_image *img);
  18. /* (x,y) is the image's top-left; negative values are clamped to 0. */
  19. void cirrus_cursor_move(int x, int y);
  20. void cirrus_cursor_show(int show);
  21. #endif