ugfx/drivers/multiple/Win32/readme.txt

30 lines
1 KiB
Text
Raw Normal View History

2013-02-11 09:25:45 +01:00
To use this driver:
2013-10-17 14:55:10 +10:00
This driver is special in that it implements both the gdisp low level driver,
optionally a touchscreen driver, and optionally a toggle driver.
2013-02-11 09:25:45 +01:00
1. Add in your gfxconf.h:
2013-02-11 09:25:45 +01:00
a) #define GFX_USE_GDISP TRUE
2013-10-17 14:55:10 +10:00
b) Optionally #define GFX_USE_GINPUT TRUE
#define GINPUT_USE_MOUSE TRUE
#define GINPUT_USE_TOGGLE TRUE
2013-02-11 09:25:45 +01:00
c) Any optional high level driver defines (see gdisp.h) eg: GDISP_NEED_MULTITHREAD
2013-10-17 14:55:10 +10:00
d) Optionally the following (with appropriate values):
2013-02-11 09:25:45 +01:00
#define GDISP_SCREEN_WIDTH 640
#define GDISP_SCREEN_HEIGHT 480
2. To your makefile add the following lines:
include $(GFXLIB)/gfx.mk
2014-07-23 18:20:54 +02:00
include $(GFXLIB)/drivers/multiple/Win32/driver.mk
However, consider using the Win32 board file instead as this does include all
the possible drivers that can be used (eg. for the GAUDIO module) by using:
include $(GFXLIB)/gfx.mk
include $(GFXLIB)/boards/base/Win32/board.mk
2013-02-11 09:25:45 +01:00
2013-10-17 14:55:10 +10:00
3. Modify your makefile to add -lws2_32 and -lgdi32 to the DLIBS line. i.e.
2013-02-11 09:25:45 +01:00
DLIBS = -lws2_32 -lgdi32