Stage.Defines.inc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. //
  2. // The graphics platform GLScene https://github.com/glscene
  3. //
  4. // Define GLS for VCL or GXS for FMX
  5. {$DEFINE USE_GLS}
  6. {.$DEFINE USE_GXS}
  7. //
  8. // Additionnal support & dependencies
  9. //
  10. // Activate support Graphics32 library
  11. // Can be found at https://github.com/graphics32
  12. {.$DEFINE USE_GRAPHICS32}
  13. // Activate support FastMath library
  14. // Use https://github.com/neslib/FastMath
  15. {.$DEFINE USE_FASTMATH}
  16. // Activate support for some optimizations by disabling checks that occur very often
  17. // Warning: it will disable some options (like ShowAxis and OptSaveGLStack)
  18. {.$DEFINE USE_OPTIMIZATIONS}
  19. // Activate assembly routines - Warning! Some components not working!!!
  20. {.$DEFINE USE_ASM}
  21. // Activate Logging
  22. {.$DEFINE USE_LOGGING}
  23. // Activate OpenGL debug mode
  24. {.$DEFINE USE_OPENGL_DEBUG}
  25. // Activate support of Windows
  26. {.$DEFINE MSWINDOWS}
  27. // Avtivate using depricated OpenGL code
  28. {$DEFINE USE_DEPRECATED}
  29. {$IFDEF MSWINDOWS}
  30. {$DEFINE SUPPORT_WGL}
  31. {$ENDIF}
  32. // Activate Multithread support
  33. {.$DEFINE USE_MULTITHREAD}
  34. // Enable service rendering context, which automatically activate USE_MULTITHREAD
  35. // This work only on windows platform with modern compilers (XE2 and FPC or higher}
  36. {.$DEFINE USE_SERVICE_CONTEXT}
  37. {$IFDEF USE_SERVICE_CONTEXT}
  38. // Activate Multithread support
  39. {$DEFINE USE_MULTITHREAD}
  40. {$ENDIF}
  41. //
  42. // Platform Specific
  43. //
  44. {$IFNDEF CROSSVCL}
  45. {$IFDEF LINUX}
  46. {$UNDEF SUPPORT_WGL}
  47. {$UNDEF USE_ASM}
  48. {$DEFINE UNIX}
  49. {$DEFINE SUPPORT_GLX}
  50. {$DEFINE X11_SUPPORT}
  51. {$ENDIF}
  52. {$ENDIF}
  53. // .NET
  54. {$IFDEF CLR}
  55. {$UNDEF USE_ASM}
  56. {$UNSAFECODE ON}
  57. {$ENDIF}