home *** CD-ROM | disk | FTP | other *** search
- const
- MaxWorldsGlb = 4;
- MaxWindowsGlb = 16;
- MaxPiesGlb = 10;
- MaxPlotGlb = 100;
- StringSizeGlb = 80;
- HeaderSizeGlb = 10;
- MaxProcsGlb = 26;
- MaxErrsGlb = 7;
- RamScreenGlb : boolean = true;
- CharFile : string[StringSizeGlb] = '4x6.fon';
-
-
- type
- WrkString = string[StringSizeGlb];
- WorldType = record
- X1, Y1, X2, Y2 : real;
- end;
- WindowType = record
- X1, Y1, X2, Y2 : integer;
- Header : WrkString;
- Drawn, Top : boolean;
- Size : integer;
- end;
- Worlds = array[1..MaxWorldsGlb] of WorldType;
- Windows = array[1..MaxWindowsGlb] of WindowType;
- PlotArray = array[1..MaxPlotGlb,1..2] of real;
- Character = array[1..3] of byte;
- CharArray = array[32..126] of Character;
- PieType = record
- Area : real;
- Text : WrkString;
- end;
- PieArray = array[1..MaxPiesGlb] of PieType;
- BackgroundArray = array[0..7] of byte;
- LineStyleArray = array[0..7] of boolean;
-
- var
- X1WldGlb, X2WldGlb, Y1WldGlb, Y2WldGlb, AxGlb, AyGlb, BxGlb, ByGlb : real;
- X1RefGlb, X2RefGlb, Y1RefGlb, Y2RefGlb : integer;
- LinestyleGlb, MaxWorldGlb, MaxWindowGlb, WindowNdxGlb : integer;
- X1Glb, X2Glb, Y1Glb, Y2Glb : integer;
- XTextGlb, YTextGlb, VStepGlb : integer;
- PieGlb, DirectModeGlb, ClippingGlb, AxisGlb, HatchGlb : boolean;
- MessageGlb, BrkGlb, HeaderGlb, TopGlb, GrafModeGlb : boolean;
- CntGlb, ColorGlb : byte;
- ErrCodeGlb : byte;
- LineStyleArrayGlb : LineStyleArray;
- ErrorProc : array[0..MaxProcsGlb] of ^WrkString;
- ErrorCode : array[0..MaxErrsGlb] of ^WrkString;
- PcGlb : string[40];
- AspectGlb : real;
- GrafBase : integer;
- World : Worlds;
- Window : Windows;
- CharSet : CharArray;
-
- const
- XMaxGlb = 79;
- XScreenMaxGlb = 639;
- YMaxGlb = 199;
- IVStepGlb = 2;
- ScreenSizeGlb = 8191;
- HardwareGrafBase = $B800;
- FontLoaded : boolean = false;
- MinForeground = 1;
- MaxForeground = 15;
- MinBackground = 0;
- MaxBackground = 0;
- AspectFactor = 0.44;
- SaveStateGlb : integer = 10;
- RamScreenInCard : boolean = false;
-
- type
- ScreenType = array[0..ScreenSizeGlb] of integer;
- ScreenPointer = ^ScreenType;
- WindowStackRecord = record
- W : WindowType;
- Contents : ScreenPointer;
- end;
- Stacks = array[1..MaxWindowsGlb] of WindowStackRecord;
-
- var
- ScreenGlb : ScreenPointer;
- ConOutPtrSave : integer;
- Stack : Stacks;
-
- function HardwarePresent : boolean; begin end;
- function BaseAddress(Y : integer) : integer; begin end;
- procedure LeaveGraphic; begin end;
- procedure DC(C : byte); begin end;
- procedure DisplayChar(C : byte); begin end;
- procedure SetForegroundColor(Color : integer); begin end;
- procedure SetBackgroundColor(Color : integer); begin end;
- procedure ClearScreen; begin end;
- procedure EnterGraphic; begin end;
- procedure DP(X, Y : integer); begin end;
- function PD(X, Y :integer) : boolean; begin end;
- procedure SetBackground8(Background : BackgroundArray); begin end;
- procedure SetBackground(Byt : byte); begin end;
- procedure DrawStraight(X1, X2, Y : integer); begin end;
- procedure SaveScreen(FileName : WrkString); begin end;
- procedure LoadScreen(FileName : WrkString); begin end;
- procedure SwapScreen; begin end;
- procedure CopyScreen; begin end;
- procedure InvertScreen; begin end;
- procedure GotoXYTurbo(X, Y : integer); begin end;
- procedure GotoXY(X, Y : integer); begin end;
- procedure ClrEOLTurbo; begin end;
- procedure ClrEOL; begin end;
- procedure Error(ErrProc, ErrCode : integer); begin end;
- procedure SetBreakOff; begin end;
- procedure SetBreakOn; begin end;
- function GetErrorCode : byte; begin end;
- procedure SetWindowModeOff; begin end;
- procedure SetWindowModeOn; begin end;
- procedure SetClippingOn; begin end;
- procedure SetClippingOff; begin end;
- procedure SetMessageOn; begin end;
- procedure SetMessageOff; begin end;
- procedure SetHeaderOn; begin end;
- procedure SetHeaderOff; begin end;
- procedure SetHeaderToTop; begin end;
- procedure SetHeaderToBottom; begin end;
- procedure RemoveHeader(I : integer); begin end;
- procedure SetColorWhite; begin end;
- procedure SetColorBlack; begin end;
- function GetWindow : integer; begin end;
- function GetColor : integer; begin end;
- function Clipping : boolean; begin end;
- function WindowMode : boolean; begin end;
- procedure SetScreenAspect(Aspect : real); begin end;
- function GetScreenAspect : real; begin end;
- procedure SetAspect(Aspect : real); begin end;
- function GetAspect : real; begin end;
- procedure SetLinestyle(Ls : integer); begin end;
- function GetLinestyle : integer; begin end;
- procedure SetVStep(Vs : integer); begin end;
- function GetVStep : integer; begin end;
- procedure DefineHeader(I : integer; Hdr : WrkString); begin end;
- procedure SelectScreen(I : integer); begin end;
- function GetScreen : byte; begin end;
- procedure DefineWorld(I : integer; X_1, Y_1, X_2, Y_2 : real); begin end;
- procedure SelectWorld(I : integer); begin end;
- procedure DefineWindow(I, X_1, Y_1, X_2, Y_2 : integer); begin end;
- function TextLeft(TX, Boundary : integer) : integer; begin end;
- function TextRight(TX, Boundary : integer) : integer; begin end;
- function TextUp(TX, Boundary : integer) : integer; begin end;
- function TextDown(TX, Boundary : integer) : integer; begin end;
- procedure DefineTextWindow(I, X1, Y1, X2, Y2, B : integer); begin end;
- procedure SelectWindow(I : integer); begin end;
- function WindowX(X : real) : integer; begin end;
- function WindowY(Y : real) : integer; begin end;
- procedure InitGraphic;
- begin
- Writeln('Program compiled with dummy graphics library - aborting');
- Halt;
- end; { InitGraphic }
- procedure ResetWindows; begin end;
- procedure ResetWorlds; begin end;
- function Clip(var X1, Y1, X2, Y2 : integer) : boolean; begin end;
- procedure DrawPoint(Xr, Yr : real); begin end;
- function PointDrawn(Xr, Yr : real) : boolean; begin end;
- procedure DrawLine(X1, Y1, X2, Y2 : real); begin end;
- procedure DrawLineClipped(X1, Y1, X2, Y2 : integer); begin end;
- procedure DrawCrossDiag(X, Y, Scale : integer); begin end;
- procedure DrawWye(X, Y, Scale : integer); begin end;
- procedure DrawDiamond(X, Y, Scale : integer); begin end;
- procedure DrawCircleDirect(Xr, Yr, R : integer; DirectModeLoc : boolean); begin end;
- procedure DrawCircle(X_R, Y_R, Xradius : real); begin end;
- procedure DrawCross(X1, Y1, Scale : integer); begin end;
- procedure DrawStar(X, Y, Scale : integer); begin end;
- procedure DrawSquareC(X1, Y1, X2, Y2 : integer; Fill : boolean); begin end;
- procedure DrawSquare(X1, Y1, X2, Y2 : real; Fill : boolean); begin end;
- procedure DrawAscii(var X, Y : integer; Size, Ch : byte); begin end;
- procedure DrawText(X, Y, Scale : integer; Txt : WrkString); begin end;
- procedure DrawTextW(X,Y : real; Scale : integer; Txt : WrkString); begin end;
- procedure DrawBorder; begin end;
- procedure hardcopy(Inverse : boolean; Mode : byte); begin end;
- procedure MoveVer(Delta : integer; FillOut : boolean); begin end;
- procedure MoveHor(Delta : integer; FillOut : boolean); begin end;
- procedure CopyWindow(From, Tu :byte; X1, Y1 : integer); begin end;
- procedure SaveWindow(N : integer; FileName : WrkString); begin end;
- procedure LoadWindow(N, Xpos, Ypos : integer; FileName : WrkString); begin end;
- function WindowSize(Win : integer) : integer; begin end;
- procedure ClearWindowStack(Win : integer); begin end;
- procedure StoreWindow(Win : integer); begin end;
- procedure RestoreWindow(Win, DeltaX, DeltaY : integer); begin end;
- procedure SaveWindowStack(FileName : WrkString); begin end;
- procedure LoadWindowStack(FileName : WrkString); begin end;
- procedure ResetWindowStack; begin end;
- procedure InvertWindow; begin end;
- procedure DrawCircleSegment(Xr0, Yr0 : real; var Xr1, Yr1 : real;
- Inner, Outer, Phi, Area : real; Txt : WrkString; Prior, Scale : byte); begin end;
- procedure Hatch(X_1, Y_1, X_2, Y_2, Delta : real); begin end;
- procedure DrawAxis(XDens, YDens, XLeft, YTop, XRight, YBottom, XAxis, YAxis : integer;
- HistoTyp : boolean); begin end;
- procedure Bezier( A : PlotArray; MaxContrPoints : integer; var B : PlotArray;
- MaxIntPoints : integer); begin end;
- procedure FindWorld(I : integer; A : PlotArray; NPoints : integer; ScaleX, ScaleY : real);
- begin end;
- procedure RotatePolygonAbout(Var A : PlotArray; NPoints : integer;
- Theta, X0, Y0 : real); begin end;
- procedure RotatePolygon(var A : PlotArray; NPoints : integer; Theta : real);
- begin end;
- procedure TranslatePolygon(var A : PlotArray; N : integer; DeltaX, DeltaY : real);
- begin end;
- procedure ScalePolygon(var A : PlotArray; N :integer; ScaleX, ScaleY : real);
- begin end;
- procedure DrawPolygon(A : PlotArray; I0, NPoints, Line, Scale, Lines : integer);
- begin end;
- procedure Spline(A : PlotArray; N : integer; X1, XM : real; var B : PlotArray; M : integer);
- begin end;
- procedure DrawHistogram(A : PlotArray; NPoints : integer; Hatching : boolean;
- HatchStyle : integer); begin end;
- procedure DrawCartPie(X1, Y1, X2, Y2, Inner, Outer : real; A : PieArray;
- N, Prior, Scale : integer); begin end;
- procedure DrawPolarPie(X1, Y1, Radius, Angle, Inner, Outer : real; A : PieArray;
- N, Prior, Scale : integer); begin end;
- procedure RedefineWindow(I, X_1, Y_1, X_2, Y_2 : integer); begin end;