-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_height_map_16_standalone.dpr
70 lines (59 loc) · 2 KB
/
test_height_map_16_standalone.dpr
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{ AUTO-GENERATED PROGRAM FILE.
This file is used to build and run the application on desktop (standalone) platforms,
from various tools:
- Castle Game Engine command-line build tool
- Castle Game Engine editor
- Lazarus IDE
- Delphi IDE
You should not modify this file manually.
Regenerate it using CGE editor "Code -> Regenerate Program" menu item
or the command-line: "castle-engine generate-program".
Along with this file, we also generate CastleAutoGenerated unit. }
{ Note: The "program" declaration is optional in Pascal.
But we keep using it, otherwise Delphi IDE breaks the "uses" clause when
adding units to the project. }
program test_height_map_16_standalone;
{$ifdef MSWINDOWS} {$apptype GUI} {$endif}
{ This adds icons and version info for Windows,
automatically created by "castle-engine compile". }
{$ifdef CASTLE_AUTO_GENERATED_RESOURCES} {$R castle-auto-generated-resources.res} {$endif}
uses
{$if defined(FPC) and (not defined(CASTLE_DISABLE_THREADS))}
{$info Thread support enabled.}
{$ifdef UNIX} CThreads, {$endif}
{$endif}
CastleAutoGenerated, CastleWindow, GameInitialize;
{ Forces using a dedicated (faster) GPU on laptops with multiple GPUs.
See https://castle-engine.io/dedicated_gpu }
{$if (not defined(CASTLE_NO_FORCE_DEDICATED_GPU)) and
(defined(CPU386) or defined(CPUX64) or defined(CPUAMD64)) and
(defined(MSWINDOWS) or (defined(LINUX) and defined(FPC)))
}
{$ifdef FPC}
{$asmmode intel}
{$endif}
procedure NvOptimusEnablement; {$ifdef FPC}assembler; nostackframe;{$endif}
asm
{$ifdef CPU64}
{$ifndef FPC}
.NOFRAME
{$endif}
{$endif}
dd 1
end;
procedure AmdPowerXpressRequestHighPerformance; {$ifdef FPC}assembler; nostackframe;{$endif}
asm
{$ifdef CPU64}
{$ifndef FPC}
.NOFRAME
{$endif}
{$endif}
dd 1
end;
exports
NvOptimusEnablement,
AmdPowerXpressRequestHighPerformance;
{$ifend}
begin
Application.MainWindow.OpenAndRun;
end.