cirrus.h 708 B

1234567891011121314151617181920212223
  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. void cirrus_cursor_setup(void);
  16. void cirrus_cursor_move(unsigned int x, unsigned int y);
  17. void cirrus_cursor_show(int show);
  18. #endif