1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Bitmap graphics on player LCD!
12 * Copyright (C) 2005 Jens Arnold
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 * KIND, either express or implied.
22 ****************************************************************************/
29 #ifdef HAVE_LCD_CHARCELLS /* Player only :) */
31 bool pgfx_init(int cwidth
, int cheight
);
32 void pgfx_release(void);
33 void pgfx_display(int cx
, int cy
);
34 void pgfx_display_block(int cx
, int cy
, int x
, int y
);
35 void pgfx_update(void);
37 void pgfx_set_drawmode(int mode
);
38 int pgfx_get_drawmode(void);
40 void pgfx_clear_display(void);
41 void pgfx_drawpixel(int x
, int y
);
42 void pgfx_drawline(int x1
, int y1
, int x2
, int y2
);
43 void pgfx_hline(int x1
, int x2
, int y
);
44 void pgfx_vline(int x
, int y1
, int y2
);
45 void pgfx_drawrect(int x
, int y
, int width
, int height
);
46 void pgfx_fillrect(int x
, int y
, int width
, int height
);
47 void pgfx_bitmap_part(const unsigned char *src
, int src_x
, int src_y
,
48 int stride
, int x
, int y
, int width
, int height
);
49 void pgfx_bitmap(const unsigned char *src
, int x
, int y
, int width
, int height
);
51 #define pgfx_mono_bitmap_part pgfx_bitmap_part
52 #define pgfx_mono_bitmap pgfx_bitmap
54 #endif /* HAVE_LCD_CHARCELLS */
55 #endif /* __PGFX_H__ */