diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2005-02-10 21:12:59 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2005-02-10 21:12:59 +0000 |
| commit | c552e03c90859d476a5fbfe03b17e40ce21ef2fc (patch) | |
| tree | f2577979b265c1904423c79f76d128f3b6653143 /apps/plugins/lib/playergfx.h | |
| parent | 037083af2d99e1b82d9a11a2713c5a88ba0015ef (diff) | |
| download | rockbox-c552e03c90859d476a5fbfe03b17e40ce21ef2fc.zip rockbox-c552e03c90859d476a5fbfe03b17e40ce21ef2fc.tar.gz rockbox-c552e03c90859d476a5fbfe03b17e40ce21ef2fc.tar.bz2 rockbox-c552e03c90859d476a5fbfe03b17e40ce21ef2fc.tar.xz | |
Beginnings of a graphics library for the player LCD. So far the only drawing functions are clear_display(), drawpixel() and drawline().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5882 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/playergfx.h')
| -rw-r--r-- | apps/plugins/lib/playergfx.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/apps/plugins/lib/playergfx.h b/apps/plugins/lib/playergfx.h new file mode 100644 index 0000000..761c75f --- /dev/null +++ b/apps/plugins/lib/playergfx.h @@ -0,0 +1,37 @@ +/*************************************************************************** +* __________ __ ___. +* Open \______ \ ____ ____ | | _\_ |__ _______ ___ +* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / +* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < +* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ +* \/ \/ \/ \/ \/ +* $Id$ +* +* Bitmap graphics on player LCD! +* +* Copyright (C) 2005 Jens Arnold +* +* All files in this archive are subject to the GNU General Public License. +* See the file COPYING in the source tree root for full license agreement. +* +* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY +* KIND, either express or implied. +* +****************************************************************************/ + +#ifndef __PGFX_H__ +#define __PGFX_H__ + +#include "plugin.h" + +#ifdef HAVE_LCD_CHARCELLS /* Player only :) */ + +bool pgfx_init(struct plugin_api* newrb, int cwidth, int cheight); +void pgfx_release(void); +void pgfx_display(int cx, int cy); +void pgfx_clear_display(void); +void pgfx_drawpixel(int x, int y); +void pgfx_drawline(int x1, int y1, int x2, int y2); + +#endif /* HAVE_LCD_CHARCELLS */ +#endif /* __PGFX_H__ */ |