GLS.Scene.inc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // The graphics platform GLScene https://github.com/glscene
  3. //
  4. // Define SCENA for VCL & ARENA for FMX
  5. {$DEFINE USE_SCENA}
  6. {.$DEFINE USE_ARENA}
  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. // Avtivate using depricated OpenGL code
  26. {$DEFINE USE_DEPRECATED}
  27. // Activate Multithread support
  28. {.$DEFINE USE_MULTITHREAD}
  29. // Enable service rendering context, which automatically activate USE_MULTITHREAD
  30. // This work only on windows platform with modern compilers (XE2 and FPC or higher}
  31. {.$DEFINE USE_SERVICE_CONTEXT}
  32. {$IFDEF USE_SERVICE_CONTEXT}
  33. // Activate Multithread support
  34. {$DEFINE USE_MULTITHREAD}
  35. {$ENDIF}
  36. // Activate support of Windows
  37. {$DEFINE MSWINDOWS}
  38. //
  39. // Platform Specific
  40. //
  41. {$IFDEF MSWINDOWS}
  42. {$DEFINE SUPPORT_WGL}
  43. {$ENDIF}
  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}