Debian Codegraph @

examples/short_api_samples/transform_save_load/castleautogenerated.pas

raw
1 { Auto-generated unit with information about the project.
2 The information set here reflects the CastleEngineManifest.xml properties.
3
4 You should not modify this file manually.
5 Regenerate it using CGE editor "Code -> Regenerate Project" menu item
6 (or command-line: "castle-engine generate-program").
7
8 Note: This file has UTF-8 BOM, which makes sure that string literals
9 are interpreted as UTF-8. This is important, as CGE build tool will
10 place here caption encoded in UTF-8.
11 Without the BOM, right now both FPC and Delphi
12 would interpret the file as having ANSI encoding on Windows (see
13 https://blogs.embarcadero.com/the-delphi-compiler-and-utf-8-encoded-source-code-files-with-no-bom/ ,
14 https://wiki.freepascal.org/FPC_Unicode_support#Source_file_codepage ) }
15 unit CastleAutoGenerated;
16
17 interface
18
19 implementation
20
21 uses CastleApplicationProperties, CastleWindow, CastleLog;
22
23 initialization
24 ApplicationProperties.ApplicationName := 'transform_save_load';
25 ApplicationProperties.Caption := 'transform_save_load';
26 ApplicationProperties.Version := '0.1';
27
28 if not IsLibrary then
29 Application.ParseStandardParameters;
30
31 { Start logging.
32
33 Should be done after setting ApplicationProperties.ApplicationName/Version,
34 since they are recorded in the first automatic log messages.
35
36 Should be done after basic command-line parameters are parsed
37 for standalone programs (when "not IsLibrary").
38 This allows to handle --version and --help command-line parameters
39 without any extra output on Unix, and to set --log-file . }
40 InitializeLog;
41
42 {$ifdef DEBUG}
43 { Enable debug features, like inspector and file monitor, in debug mode.
44 We call it here, to depend on the DEBUG define when compiling the project
45 -- and not depend on DEBUG define when compiling the engine. }
46 ApplicationProperties.InitializeDebug;
47 {$else}
48 { Enable release features at run-time.
49 This does *nothing* for now, but enables possible future extensions
50 (e.g. special optimizations). }
51 ApplicationProperties.InitializeRelease;
52 {$endif}
53 end.