Gerald Friedland (Fractor/MXP of NTR)
					proudly presents
								 graphdrv

1.) What it is
~~~~~~~~~~~~~~
	Graphdrv was designed to assist coding small VGA based video 
	games portably. Calling the function graphdrv implements you 
	won't have to bother about portable video I/O routines, 
	keyboard handling or mouse support. Graphdrv does all this for
	you. In fact, when compiled with a DOS compiler, graphdrv uses
	direct I/O port access and inline assembly - as you are used to 
	do when coding under DOS. When compiled with a Linux compiler it
	uses svgalib to implement these functions.
	So if you now code a video game under Linux or under DOS, just 
	use these routines and your game will compile under both 
	systems.

2.) How to compile
~~~~~~~~~~~~~~~~~~
	Under DOS Watcom C/C++ 10.0 or later is required.
	Just use a command line like:
	C:\> wcl386 myprog.c graphdrv.c
	And you get an executable called myprog.exe

	Under Linux GNU C/C++ and the svgalib is required, get those
	and use a command like:
	~/> gcc myprog.c graphdrv.c -lvga

3.) Implemented functions / how to use
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	Most function needed for VGA, keyboard and mouse I/O are 
	implemented. Just take a look at graphdrv.h for a short 
	description. This is just easy. If you don't understand them, 
	then you probably are no game programmer under DOS and so you
	should start with other libraries first. This is only useful
	for people, who know what they do.
	For those wanting an example, take a look at testdrv.c

4.) Copyright
~~~~~~~~~~~~~
	graphdrv is written 1997 by Gerald Friedland (Fractor/MXP of NTR)
	E-mail: fractor@germanymail.com
	WWW: http://www.obh.snafu.de/~marte/friends/fractor.html or mxp.html
	
	graphdrv can be distributed following the terms of the GNU GENERAL 
	PUBLIC LICENSE Version 2.00 or higher.
	
5.) Additional comments
~~~~~~~~~~~~~~~~~~~~~~~
	Why Watcom C/C++32 ?
	a) Because I hate MS !
	b) Because I have no other compiler.
	c) Because game programming gurus write their progs using DOS4GW

	Does it compile without DOS4GW, too ?
	Yes, you must replace all "int386" with "int86" and change
	the addresses correctly.

	Under Linux it says something like "Cannot get I/O permissions"!
	Run the program as root, or in order to let users run the 
	program, chown it to root and chmod a+s the program.
	(Look into svgalib's documentation for more informations in this)

	How can I write directly to I/O ports under Linux ?
	Look for the Linux-conio written by the same author.
	(The best thing is to look at his home page... :))
