-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathdefines.inc
More file actions
44 lines (38 loc) · 1.23 KB
/
defines.inc
File metadata and controls
44 lines (38 loc) · 1.23 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
// Shared compiler/platform defines for Apus.Engine.* units.
// Keep only cross-module defaults here; module-specific toggles stay in modules.
{$IFDEF FPC}
// Unify syntax with Delphi for FPC builds.
{$MODE DELPHI}
// Engine asm snippets are written in Intel syntax.
{$ASMMODE intel}
{$ELSE}
// Normalize compiler check to one symbol in code paths.
{$DEFINE DELPHI}
{$ENDIF}
{$IFDEF CPUX64}
// Backward-compatible alias used by legacy code paths.
{$DEFINE CPU64}
{$ENDIF}
{$IF Defined(MSWINDOWS) or Defined(LINUX)}
// Desktop OpenGL loader path (unit dglOpenGL + InitOpenGL/extension handling).
// Not defined for mobile targets where GLES headers are used instead.
{$DEFINE DGL}
{$ENDIF}
{$IFDEF IOS}
// iOS uses OpenGL ES profile.
{$DEFINE GLES}
// iOS legacy renderer paths expect GLES 1.1 symbol.
{$DEFINE GLES11}
// Marks OpenGL-family backend (desktop GL or GLES).
{$DEFINE OPENGL}
{$ENDIF}
{$IFDEF ANDROID}
// Android uses OpenGL ES profile.
{$DEFINE GLES}
// Android renderer paths use GLES 2.0 shader pipeline.
{$DEFINE GLES20}
// Marks OpenGL-family backend (desktop GL or GLES).
{$DEFINE OPENGL}
{$ENDIF}
// Keep deterministic floating-point behavior across compilers.
{$EXCESSPRECISION OFF}