Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

169 lines
5.2KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2015 - ROLI Ltd.
  5. Permission is granted to use this software under the terms of either:
  6. a) the GPL v2 (or any later version)
  7. b) the Affero GPL v3
  8. Details of these licenses can be found at: www.gnu.org/licenses
  9. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  11. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  12. ------------------------------------------------------------------------------
  13. To release a closed-source product which uses JUCE, commercial licenses are
  14. available: visit www.juce.com for more information.
  15. ==============================================================================
  16. */
  17. #ifdef JUCE_GRAPHICS_H_INCLUDED
  18. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  19. already included any other headers - just put it inside a file on its own, possibly with your config
  20. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  21. header files that the compiler may be using.
  22. */
  23. #error "Incorrect use of JUCE cpp file"
  24. #endif
  25. #define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
  26. #define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
  27. #define JUCE_CORE_INCLUDE_JNI_HELPERS 1
  28. #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
  29. #define JUCE_GRAPHICS_INCLUDE_COREGRAPHICS_HELPERS 1
  30. #include "juce_graphics.h"
  31. //==============================================================================
  32. #if JUCE_MAC
  33. #import <QuartzCore/QuartzCore.h>
  34. #elif JUCE_WINDOWS
  35. #if JUCE_MINGW && JUCE_USE_DIRECTWRITE
  36. #warning "DirectWrite not currently implemented with mingw..."
  37. #undef JUCE_USE_DIRECTWRITE
  38. #endif
  39. #if JUCE_USE_DIRECTWRITE
  40. /* If you hit a compile error trying to include these files, you may need to update
  41. your version of the Windows SDK to the latest one. The DirectWrite and Direct2D
  42. headers are in the version 7 SDKs.
  43. */
  44. #include <d2d1.h>
  45. #include <dwrite.h>
  46. #endif
  47. #if JUCE_MINGW
  48. #include <malloc.h>
  49. #endif
  50. #elif JUCE_IOS
  51. #import <QuartzCore/QuartzCore.h>
  52. #import <CoreText/CoreText.h>
  53. #if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_3_2
  54. #error "JUCE no longer supports targets earlier than iOS 3.2"
  55. #endif
  56. #elif JUCE_LINUX
  57. #ifndef JUCE_USE_FREETYPE
  58. #define JUCE_USE_FREETYPE 1
  59. #endif
  60. #endif
  61. #if JUCE_USE_FREETYPE
  62. #if JUCE_USE_FREETYPE_AMALGAMATED
  63. #include "native/freetype/FreeTypeAmalgam.h"
  64. #else
  65. #include <ft2build.h>
  66. #include FT_FREETYPE_H
  67. #endif
  68. #endif
  69. #undef SIZEOF
  70. #if (JUCE_MAC || JUCE_IOS) && USE_COREGRAPHICS_RENDERING && JUCE_USE_COREIMAGE_LOADER
  71. #define JUCE_USING_COREIMAGE_LOADER 1
  72. #else
  73. #define JUCE_USING_COREIMAGE_LOADER 0
  74. #endif
  75. //==============================================================================
  76. namespace juce
  77. {
  78. #include "colour/juce_Colour.cpp"
  79. #include "colour/juce_ColourGradient.cpp"
  80. #include "colour/juce_Colours.cpp"
  81. #include "colour/juce_FillType.cpp"
  82. #include "geometry/juce_AffineTransform.cpp"
  83. #include "geometry/juce_EdgeTable.cpp"
  84. #include "geometry/juce_Path.cpp"
  85. #include "geometry/juce_PathIterator.cpp"
  86. #include "geometry/juce_PathStrokeType.cpp"
  87. #include "placement/juce_RectanglePlacement.cpp"
  88. #include "contexts/juce_GraphicsContext.cpp"
  89. #include "contexts/juce_LowLevelGraphicsPostScriptRenderer.cpp"
  90. #include "contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp"
  91. #include "images/juce_Image.cpp"
  92. #include "images/juce_ImageCache.cpp"
  93. #include "images/juce_ImageConvolutionKernel.cpp"
  94. #include "images/juce_ImageFileFormat.cpp"
  95. #include "image_formats/juce_GIFLoader.cpp"
  96. #include "image_formats/juce_JPEGLoader.cpp"
  97. #include "image_formats/juce_PNGLoader.cpp"
  98. #include "fonts/juce_AttributedString.cpp"
  99. #include "fonts/juce_Typeface.cpp"
  100. #include "fonts/juce_CustomTypeface.cpp"
  101. #include "fonts/juce_Font.cpp"
  102. #include "fonts/juce_GlyphArrangement.cpp"
  103. #include "fonts/juce_TextLayout.cpp"
  104. #include "effects/juce_DropShadowEffect.cpp"
  105. #include "effects/juce_GlowEffect.cpp"
  106. #if JUCE_USE_FREETYPE
  107. #include "native/juce_freetype_Fonts.cpp"
  108. #endif
  109. //==============================================================================
  110. #if JUCE_MAC || JUCE_IOS
  111. #include "native/juce_mac_Fonts.mm"
  112. #include "native/juce_mac_CoreGraphicsContext.mm"
  113. #elif JUCE_WINDOWS
  114. #include "native/juce_win32_DirectWriteTypeface.cpp"
  115. #include "native/juce_win32_DirectWriteTypeLayout.cpp"
  116. #include "native/juce_win32_Fonts.cpp"
  117. #if JUCE_DIRECT2D
  118. #include "native/juce_win32_Direct2DGraphicsContext.cpp"
  119. #endif
  120. #elif JUCE_LINUX
  121. #include "native/juce_linux_Fonts.cpp"
  122. #elif JUCE_ANDROID
  123. #include "native/juce_android_GraphicsContext.cpp"
  124. #include "native/juce_android_Fonts.cpp"
  125. #endif
  126. }
  127. //==============================================================================
  128. #if JUCE_USE_FREETYPE && JUCE_USE_FREETYPE_AMALGAMATED
  129. #undef PIXEL_MASK
  130. #undef ZLIB_VERSION
  131. #undef Z_ASCII
  132. #undef ZEXTERN
  133. #undef ZEXPORT
  134. extern "C"
  135. {
  136. #include "native/freetype/FreeTypeAmalgam.c"
  137. }
  138. #endif