Unit Graph

InitGraph-Procedure


Declaration
Procedure InitGraph(var gd,gm : integer);
Function:

initializes the graph package

Description:

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 \DRIVERS <\code>.

An example for an ET 4000:

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.

Systems:

Dos, Turbo Pascal


back to Index