Procedure InitGraph(var gd,gm : integer;const path : string);
initializes the graph package
Before the graph unit can be used, the enviroment variable
GO32
must be set. This variable contains
informations about the installed graphics card and the deceided
graph mode.
Format of the variable:
GO32=driver [path\driver] gw [x-resolution] gh [y-resolution]
The driver directory is
An example for an ET 4000:
Dos, Turbo Pascal
\DRIVERS <\code>.
SET GO32=C:\PP\DRIVERS\TSENG4K.GRD gw 1024 gh 768 <\code>
program test_graph;
uses
graph;
var
gd,gm : integer;
begin
gd:=detect;
initgraph(gd,gm);
{ graphical operations }
closegraph;
end.
back to Index