-
Notifications
You must be signed in to change notification settings - Fork 2
/
common.pas
52 lines (38 loc) · 872 Bytes
/
common.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
UNIT common;
{$IFDEF FPC}
{$MODE Delphi}
{$ENDIF}
INTERFACE
USES vector, windows;
CONST
Tile_Width = 64;
Tile_Height = 64;
CONST
wm_app = 32678;
MSG_NEWLINE = WM_APP + 0;
TYPE
TVectorLine = ARRAY[0..Tile_Width - 1] OF TVector;
TVectorLinePtr = ^TVectorLine;
TYPE
PTileLine = ^TTileLine;
TTileLine = RECORD
x, y : INTEGER;
width : INTEGER;
line : TVectorLine;
END;
var sCtr,sDif,fc:double;
Bitmap: TBitmap;
Resolution: Longword = 512;
Reso2: Longword = 512;
RecursionDepth: Longword = 12;
ThreadCount: Longword;
Time, Freq,time_before_pause: Int64;
app_name:string;
scene_f:string;
samples_old,min_speed,max_speed:double;
Running: Boolean = False;
started: Boolean = False;
arrr:array of byte;
cosineAccumulation_mul:single;
IMPLEMENTATION
END.