home *** CD-ROM | disk | FTP | other *** search
- unit graf3;
-
-
-
-
-
- interface
-
-
-
-
- uses Crt,Dos,Graph,
- {$IFDEF DPMI} winapi, {$endif}
- generic;
-
-
-
-
-
-
-
-
- var mousesize:longint; { size of image behind mouse }
- mouseptr:pointer; { image behind mouse }
- graffont,graffontsize, { font used for menus etc. set by grafon. }
- hrmousex,hrmousey, { mouse x & y - graf coords - hi res vid modes }
- grafdriver,grafmode,grafresult,vesa16num,bgi256num,
- { set by initgraph in grafon }
- vidmode:integer; { vidmode is set by grafon.
- 1=EGA 640x350
- 2=VGA 640x480
- 3=VESA 800x600
- 4=VESA 1024x768
- 5=VESA 1280x1024
- 6=320x200 256 colors
- 7=600x400 256 colors
- 8=600x480 256 colors
- 9=800x600 256 colors
- 10=1024x768 256 colors }
-
-
- procedure grafon(fontpath:string);
- { initgraf with egavga, vesa16, and 256 color drivers and 10 fonts.
- works in both real and protected modes. use instead of initgraf. speeds up
- graphics. looks in current dir for external drivers & fonts. automatically
- loads and registers all 10 stroked fonts. fontpath is directory containing
- drivers and font files (''=current dir). if any command line param 1-5 is
- bgidir=<dir> then uses <dir> to override fontpath. searches for
- rockvid.dat file in current dir. if found reads in vidmode setting in
- rockvid.dat and starts in that video mode. Otherwise it autodetects the
- best mode available and starts in that video mode. Use closegraph
- (in bp7 graph unit) to return to text mode. }
-
-
- procedure setvid(k:integer);
- { sets video to start in a specific mode. call before grafon. writes a
- rockvid.dat file to the current dir, which is then found and used by
- grafon. K is the video mode to start in. values for k are same as
- vidmode values listed above. }
-
- procedure initdrivers(fontpath:string; load256:boolean);
- { allocates memory for fonts and video drivers, loads fonts and drivers,
- registers fonts and drivers. call once at program start before using the
- heap and before calling grafon for the first time. fontpath is same as
- in grafon. if load256=true, loads & registers 256 color driver. 256
- color driver works in real mode only. }
-
-
-
-
- implementation
-
-
-