| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- //
- // This unit is part of the GLScene Engine, http://glscene.org
- //
- (* Include File for GLScene *)
- {$DEFINE GLSCENE}
- //
- // Additionnal support & dependencies
- //
- // Activate support for Graphics32 library
- // Can be found at https://github.com/graphics32
- {.$DEFINE USE_GRAPHICS32}
- // Activate support for FastMath library
- // Use https://github.com/neslib/FastMath
- {.$DEFINE USE_FASTMATH}
- // Activate support for some optimizations by disabling checks that occur very often
- // Warning: it will disable some options (like ShowAxis and OptSaveGLStack)
- {.$DEFINE USE_OPTIMIZATIONS}
- // Activate assembly routines - Warning! Some components not working!!!
- {.$DEFINE USE_ASM}
- // Activate Logging
- {.$DEFINE USE_LOGGING}
- // Activate OpenGL debug mode
- {.$DEFINE USE_OPENGL_DEBUG}
- // Avtivate using depricated OpenGL code
- {$DEFINE USE_DEPRECATED}
- // Activate Multithread support
- {.$DEFINE USE_MULTITHREAD}
- // Enable service rendering context, which automatically activate USE_MULTITHREAD
- // This work only on windows platform with modern compilers (XE2 and FPC or higher}
- {.$DEFINE USE_SERVICE_CONTEXT}
- {$IFDEF USE_SERVICE_CONTEXT}
- // Activate Multithread support
- {$DEFINE USE_MULTITHREAD}
- {$ENDIF}
- // Activate support of Windows
- {$DEFINE MSWINDOWS}
- // Activate support of Linux
- {.$DEFINE LINUX}
- // Activate support of Mac OS
- {.$DEFINE MACOS}
- // Activate support of iOS
- {.$DEFINE iOS}
- // Activate support of Android
- {.$DEFINE ANDROID}
- // Activate support X Window System
- {.$DEFINE X11_SUPPORT}
- // Activate OpenGL ES
- {.$DEFINE OPENGL_ES}
- //
- // Platform Specific
- //
- // by default, GLX is not supported on windows, although windows implementations
- // do exist
- {$IFDEF MSWINDOWS}
- {$UNDEF SUPPORT_GLX}
- {$UNDEF X11_SUPPORT}
- {$DEFINE SUPPORT_WGL}
- {$ENDIF}
- {$IFDEF LINUX}
- {$UNDEF SUPPORT_WGL}
- {$UNDEF USE_ASM}
- {$DEFINE UNIX}
- {$DEFINE SUPPORT_GLX}
- {$DEFINE X11_SUPPORT}
- {$ENDIF}
- // .NET
- {$IFDEF CLR}
- {$UNDEF USE_ASM}
- {$UNSAFECODE ON}
- {$ENDIF}
|