Programs for use with "Graphics Programming in C"
By Roger T. Stevens
This disk contains six archived files. One of these contains all
of ÿthe files for the Hercules graphics card. ÿIf you ÿhave ÿthis
card, you need to copy `pkunzip.exe ÿand `herc.zip ÿto a fresh disk
and then type:
pkunzip herc.zip
to ÿdearchive all of the Hercules programs. ÿIf you have a ÿCGA,
EGA or VGA, ÿyou need to copy the `.zip' ÿfile for your particular
card to a fresh disk, together with `demos.zip', `source.zip', and
`pkunzip.exe' and then type;
pkunzip *.zip
to dearchive all of the programs for your adapter card. You will
find that there are files for the `gtools' and `gdraws' libraries,
for ÿuse ÿwith ÿTurbo ÿC and an `mcgraph' ÿlibrary ÿfor ÿuse ÿwith
Microsoft C. ÿIn addition are source code listings for all of the
library functions, ÿin ÿcase ÿyou want to change them. ÿThere are
also ÿseveral ÿdemonstration ÿprograms. ÿThese ÿinclude ÿthe ÿtwo
described ÿin Chapter 21 ÿof "Graphics Programming in C," ÿÿnamely
`demo' ÿand `demo3d. ÿThe `cursor' ÿprogram from Chapter 15, ÿthe
`quadrics' ÿprogram from Chapter 18, ÿand the `image' program from
Chapter ÿ23 ÿare also included. ÿAll of these programs are in the
CGA, ÿEGA, and VGA files. The Hercules file does not contain part
of the three-dimensional demonstration program, ÿsince the ÿshaded
figures ÿwere ÿnot implemented for that card. The `gmenu' program
is ÿincluded for the CGA and EGA adapters, ÿbut not for ÿthe ÿVGA,
since ÿits ÿsingle ÿmemory ÿpage ÿprecludes ÿuse ÿof ÿthe ÿÿwindow
save/restore technique.
Turbo ÿC project files are included for each of the ÿdemonstration
programs. All you need to do to compile and run a demo program in
Turbo ÿC is to use the Alt-P menu selection to select the ÿproject
file ÿwhose ÿname is the same as the demo program, ÿthen load ÿthe
demo program and hit Alt-R to compile.
To compile one of the demo programs with Microsoft C, you need to
type the line:
cl demoname.c /lmcgraph.lib
where demoname.c is the name of the desired demo program. Then
run the `demoname.exe file that is created by the compiler and
linker.
*************************** NOTE *********************************
References to ARCE.EXE have been changed to PKUNZIP.EXE, and all
.ARC files have been changed to .ZIP files. PKUNZIP.EXE is not
included in the .ZIP files... download PKZ092.EXE or PKZ090.EXE
from this or other any well-managed BBS to obtain a self-extrac-
ting set of files for Phil Katz ZIP archiving program.
******************************************************************