-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
DevIL_defs.inc
90 lines (71 loc) · 2.27 KB
/
DevIL_defs.inc
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
DevIL_UseAuxExceptions
If you want library-specific exceptions to be based on more advanced classes
provided by AuxExceptions library instead of basic Exception class, and don't
want to or cannot change code in this unit, you can define global symbol
DevIL_UseAuxExceptions to achieve this.
}
{$IF Defined(DevIL_UseAuxExceptions)}
{$DEFINE UseAuxExceptions}
{$IFEND}
//------------------------------------------------------------------------------
{$IF defined(CPUX86_64) or defined(CPUX64)}
{$DEFINE x64}
{$ELSEIF defined(CPU386)}
{$DEFINE x86}
{$ELSE}
{$MESSAGE FATAL 'Unsupported CPU.'}
{$IFEND}
{$IF Defined(WINDOWS) or Defined(MSWINDOWS)}
{$DEFINE Windows}
{$ELSE}
{$MESSAGE FATAL 'Unsupported operating system.'}
{$IFEND}
{$IFDEF FPC}
{$MODE ObjFPC}
{$MODESWITCH ClassicProcVars+}
{$ENDIF}
{$H+}
//------------------------------------------------------------------------------
{
DevIL_Unicode
When defined, the binding is using unicode (wide) strings in the interface
calls. Note that the use of this requires that the linked libraries (*.DLL)
are also of proper (unicode) build.
Not defined by default.
To enable/define this symbol in a project without changing this library,
define project-wide symbol DevIL_Unicode_On.
}
{$UNDEF DevIL_Unicode}
{$IFDEF DevIL_Unicode_On}
{$DEFINE DevIL_Unicode}
{$ENDIF}
{
DevILUT_UseOpenGL
When defined, the binding for ILUT (DevILUT.pas) provides functions for
cooperation with OpenGL.
Defined by default.
To disable/undefine this symbol in a project without changing this library,
define project-wide symbol DevILUT_UseOpenGL_Off.
}
{$DEFINE DevILUT_UseOpenGL}
{$IFDEF DevILUT_UseOpenGL_Off}
{$UNDEF DevILUT_UseOpenGL}
{$ENDIF}
{
DevILUT_UseWin32
When defined, the binding for ILUT (DevILUT.pas) provides functions for
cooperation with Windows GDI subsystem.
This symbol has effect only on Windows operating system.
Defined by default.
To disable/undefine this symbol in a project without changing this library,
define project-wide symbol DevILUT_UseWin32_Off.
}
{$DEFINE DevILUT_UseWin32}
{$IFDEF DevILUT_UseWin32_Off}
{$UNDEF DevILUT_UseWin32}
{$ENDIF}
//-- do not touch followng lines -----------------------------------------------
{$IFNDEF Windows}
{$UNDEF DevILUT_UseWin32}
{$ENDIF}