From 93867305d514b90bec2d5d7541297aef6a157efa Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Thu, 30 Jun 2005 21:07:00 +0000 Subject: Player graphics library extended and converted to new api. Please note that the player gfx bitmap format chas changed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6956 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/playergfx.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'apps/plugins/lib/playergfx.h') diff --git a/apps/plugins/lib/playergfx.h b/apps/plugins/lib/playergfx.h index ced4843..a0e3973 100644 --- a/apps/plugins/lib/playergfx.h +++ b/apps/plugins/lib/playergfx.h @@ -30,16 +30,20 @@ bool pgfx_init(struct plugin_api* newrb, int cwidth, int cheight); void pgfx_release(void); void pgfx_display(int cx, int cy); void pgfx_update(void); + +void pgfx_set_drawmode(int mode); +int pgfx_get_drawmode(void); + void pgfx_clear_display(void); void pgfx_drawpixel(int x, int y); -void pgfx_clearpixel(int x, int y); -void pgfx_invertpixel(int x, int y); void pgfx_drawline(int x1, int y1, int x2, int y2); -void pgfx_clearline(int x1, int y1, int x2, int y2); -void pgfx_invertline(int x1, int y1, int x2, int y2); -void pgfx_invertrect (int x, int y, int nx, int ny); -void pgfx_bitmap (const unsigned char *src, int x, int y, int nx, int ny, - bool clear); +void pgfx_hline(int x1, int x2, int y); +void pgfx_vline(int x, int y1, int y2); +void pgfx_drawrect(int x, int y, int width, int height); +void pgfx_fillrect(int x, int y, int width, int height); +void pgfx_bitmap_part(const unsigned char *src, int src_x, int src_y, + int stride, int x, int y, int width, int height); +void pgfx_bitmap(const unsigned char *src, int x, int y, int width, int height); #endif /* HAVE_LCD_CHARCELLS */ #endif /* __PGFX_H__ */ -- cgit v1.1