A tiny drawing library. include line draw and bitmap-font draw.bitmap-font is from linux-kernel-source.
Revision 4:68c16070d1db, committed 2010-11-06
- Comitter:
- tosihisa
- Date:
- Sat Nov 06 12:34:54 2010 +0000
- Parent:
- 3:c861edfe5dc1
- Commit message:
- Update comment(not changed code)
Changed in this revision
tinydraw.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r c861edfe5dc1 -r 68c16070d1db tinydraw.h --- a/tinydraw.h Sat Nov 06 12:29:36 2010 +0000 +++ b/tinydraw.h Sat Nov 06 12:34:54 2010 +0000 @@ -18,21 +18,27 @@ #include "linuxfont/linuxfont.h" +/** FrameBuffer(VRAM) X(Width) size */ #define TD_X_MAX (128) +/** FrameBuffer(VRAM) Y(Width) size */ #define TD_Y_MAX (64) +/** X/Y coordinate range type */ typedef short TD_XY_t; +/* X/Y coordinate type */ typedef struct td_point_s { TD_XY_t x; TD_XY_t y; } TD_POINT_t; +/** color type */ typedef unsigned char TD_COLOR_t; +/** color type (foreground and background pair) */ typedef struct td_color_pair_s { - TD_COLOR_t fore; - TD_COLOR_t back; + TD_COLOR_t fore; /**< foreground */ + TD_COLOR_t back; /**< background */ } TD_COLOR_PAIR_t; /**