| 1234567891011121314151617181920212223242526 |
- /* Cirrus Logic GD5446 hardware acceleration (BitBLT engine). */
- #ifndef CIRRUS_H
- #define CIRRUS_H
- void cirrus_init(void);
- int cirrus_available(void);
- /* Copy a pixel rectangle from (sx,sy) to (dx,dy), both within VRAM. */
- void cirrus_blit(unsigned int sx, unsigned int sy,
- unsigned int dx, unsigned int dy,
- unsigned int w, unsigned int h);
- /* Fill a pixel rectangle in VRAM with a solid color. */
- void cirrus_fill(unsigned int x, unsigned int y,
- unsigned int w, unsigned int h,
- unsigned int r, unsigned int g, unsigned int b);
- /* Hardware cursor (32x32). */
- struct cursor_image;
- void cirrus_cursor_setup(const struct cursor_image *img);
- void cirrus_cursor_load(const struct cursor_image *img);
- /* (x,y) is the image's top-left; negative values are clamped to 0. */
- void cirrus_cursor_move(int x, int y);
- void cirrus_cursor_show(int show);
- #endif
|