GLScene.inc 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. //
  2. // This unit is part of the GLScene Engine, http://glscene.org
  3. //
  4. (* Include File for GLScene *)
  5. {$DEFINE GLSCENE}
  6. //
  7. // Additionnal support & dependencies
  8. //
  9. // Activate support for Graphics32 library
  10. // Can be found at https://github.com/graphics32
  11. {.$DEFINE USE_GRAPHICS32}
  12. // Activate support for FastMath library
  13. // Use https://github.com/neslib/FastMath
  14. {.$DEFINE USE_FASTMATH}
  15. // Activate support for some optimizations by disabling checks that occur very often
  16. // Warning: it will disable some options (like ShowAxis and OptSaveGLStack)
  17. {.$DEFINE USE_OPTIMIZATIONS}
  18. // Activate assembly routines - Warning! Some components not working!!!
  19. {.$DEFINE USE_ASM}
  20. // Activate Logging
  21. {.$DEFINE USE_LOGGING}
  22. // Activate OpenGL debug mode
  23. {.$DEFINE USE_OPENGL_DEBUG}
  24. // Avtivate using depricated OpenGL code
  25. {$DEFINE USE_DEPRECATED}
  26. // Activate Multithread support
  27. {.$DEFINE USE_MULTITHREAD}
  28. // Enable service rendering context, which automatically activate USE_MULTITHREAD
  29. // This work only on windows platform with modern compilers (XE2 and FPC or higher}
  30. {.$DEFINE USE_SERVICE_CONTEXT}
  31. {$IFDEF USE_SERVICE_CONTEXT}
  32. // Activate Multithread support
  33. {$DEFINE USE_MULTITHREAD}
  34. {$ENDIF}
  35. // Activate support of Windows
  36. {$DEFINE MSWINDOWS}
  37. // Activate support of Linux
  38. {.$DEFINE LINUX}
  39. // Activate support of Mac OS
  40. {.$DEFINE MACOS}
  41. // Activate support of iOS
  42. {.$DEFINE iOS}
  43. // Activate support of Android
  44. {.$DEFINE ANDROID}
  45. // Activate support X Window System
  46. {.$DEFINE X11_SUPPORT}
  47. // Activate OpenGL ES
  48. {.$DEFINE OPENGL_ES}
  49. //
  50. // Platform Specific
  51. //
  52. // by default, GLX is not supported on windows, although windows implementations
  53. // do exist
  54. {$IFDEF MSWINDOWS}
  55. {$UNDEF SUPPORT_GLX}
  56. {$UNDEF X11_SUPPORT}
  57. {$DEFINE SUPPORT_WGL}
  58. {$ENDIF}
  59. {$IFDEF LINUX}
  60. {$UNDEF SUPPORT_WGL}
  61. {$UNDEF USE_ASM}
  62. {$DEFINE UNIX}
  63. {$DEFINE SUPPORT_GLX}
  64. {$DEFINE X11_SUPPORT}
  65. {$ENDIF}
  66. // .NET
  67. {$IFDEF CLR}
  68. {$UNDEF USE_ASM}
  69. {$UNSAFECODE ON}
  70. {$ENDIF}