diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-01-30 05:47:38 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-01-30 05:47:38 +0000 |
commit | 2523e50fbb5a076f9535c18dcce9ed7a0716e28d (patch) | |
tree | e9b5c891e426a38a451e52fbd9ece443b5f59457 /drv_generic_graphic.h | |
parent | 5eca256613eb7e4fb476d5efa71a835af5bb5d06 (diff) | |
download | lcd4linux-2523e50fbb5a076f9535c18dcce9ed7a0716e28d.tar.gz |
[lcd4linux @ 2006-01-30 05:47:34 by reinelt]
graphic subsystem changed to full-color RGBA
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@626 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_generic_graphic.h')
-rw-r--r-- | drv_generic_graphic.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/drv_generic_graphic.h b/drv_generic_graphic.h index a66999d..830172a 100644 --- a/drv_generic_graphic.h +++ b/drv_generic_graphic.h @@ -1,4 +1,4 @@ -/* $Id: drv_generic_graphic.h,v 1.10 2006/01/03 06:13:46 reinelt Exp $ +/* $Id: drv_generic_graphic.h,v 1.11 2006/01/30 05:47:38 reinelt Exp $ * * generic driver helper for graphic displays * @@ -23,6 +23,9 @@ * * * $Log: drv_generic_graphic.h,v $ + * Revision 1.11 2006/01/30 05:47:38 reinelt + * graphic subsystem changed to full-color RGBA + * * Revision 1.10 2006/01/03 06:13:46 reinelt * GPIO's for MatrixOrbital * @@ -70,21 +73,24 @@ #ifndef _DRV_GENERIC_GRAPHIC_H_ #define _DRV_GENERIC_GRAPHIC_H_ - -#include <termios.h> #include "widget.h" - +#include "rgb.h" extern int DROWS, DCOLS; /* display size */ -extern int LROWS, LCOLS; /* layout size */ extern int XRES, YRES; /* pixel width/height of one char */ -/* framebuffer */ -extern unsigned char *drv_generic_graphic_FB; +extern RGBA FG_COL; /* foreground color */ +extern RGBA HG_COL; /* halfground color */ +extern RGBA BG_COL; /* background color */ /* these functions must be implemented by the real driver */ extern void (*drv_generic_graphic_real_blit) (const int row, const int col, const int height, const int width); +/* helper function to get pixel color or gray value */ +extern RGBA drv_generic_graphic_rgb(const int row, const int col); +extern unsigned char drv_generic_graphic_gray(const int row, const int col); + + /* generic functions and widget callbacks */ int drv_generic_graphic_init(const char *section, const char *driver); int drv_generic_graphic_clear(void); |