-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdemo.dpr
More file actions
64 lines (50 loc) · 1.59 KB
/
demo.dpr
File metadata and controls
64 lines (50 loc) · 1.59 KB
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
(******************************************************************************
Pascal Game Development Community Engine (PGDCE)
The contents of this file are subject to the license defined in the file
'licence.md' which accompanies this file; you may not use this file except
in compliance with the license.
This file is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
either express or implied. See the license for the specific language governing
rights and limitations under the license.
The Original Code is wintest.dpr
The Initial Developer of the Original Code is documented in the accompanying
help file PGDCE.chm. Portions created by these individuals are Copyright (C)
2015 of these individuals.
******************************************************************************)
{
@abstract(Engine demo application)
This is a crossplatform (Windows/X Window) engine test application
@author(George Bakhtadze (avagames@gmail.com))
}
program demo;
{$Include PGDCE.inc}
{$APPTYPE CONSOLE}
uses
{$IFDEF WINDOWS}
CEWindowsApplication,
{$IFDEF OPENGLES_EMULATION}
CEOpenGLES2Renderer,
{$ELSE}
CEOpenGL4Renderer,
{$ENDIF}
{$ELSE}
CEXWindowApplication,
{$ENDIF}
DemoMain, CELog,
sysutils;
var
DemoObj: TDemo;
begin
{$IF Declared(ReportMemoryLeaksOnShutdown)}
ReportMemoryLeaksOnShutdown := True;
{$IFEND}
try
DemoObj := TDemo.Create(TCEApplicationClass.Create());
while DemoObj.Process() do;
DemoObj.Free();
except
on E: Exception do begin
CELog.Error('Error occured: ' + E.Message);
end;
end;
end.