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.

juce_graphics.cpp 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2017 - ROLI Ltd.
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. By using JUCE, you agree to the terms of both the JUCE 5 End-User License
  8. Agreement and JUCE 5 Privacy Policy (both updated and effective as of the
  9. 27th April 2017).
  10. End User License Agreement: www.juce.com/juce-5-licence
  11. Privacy Policy: www.juce.com/juce-5-privacy-policy
  12. Or: You may also use this code under the terms of the GPL v3 (see
  13. www.gnu.org/licenses).
  14. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  15. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  16. DISCLAIMED.
  17. ==============================================================================
  18. */
  19. #ifdef JUCE_GRAPHICS_H_INCLUDED
  20. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  21. already included any other headers - just put it inside a file on its own, possibly with your config
  22. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  23. header files that the compiler may be using.
  24. */
  25. #error "Incorrect use of JUCE cpp file"
  26. #endif
  27. #include "AppConfig.h"
  28. #define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
  29. #define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
  30. #define JUCE_CORE_INCLUDE_JNI_HELPERS 1
  31. #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
  32. #define JUCE_GRAPHICS_INCLUDE_COREGRAPHICS_HELPERS 1
  33. #include "juce_graphics.h"
  34. //==============================================================================
  35. #if JUCE_MAC
  36. #import <QuartzCore/QuartzCore.h>
  37. #elif JUCE_WINDOWS
  38. // get rid of some warnings in Window's own headers
  39. #ifdef JUCE_MSVC
  40. #pragma warning (push)
  41. #pragma warning (disable : 4458)
  42. #endif
  43. #if JUCE_MINGW && JUCE_USE_DIRECTWRITE
  44. #warning "DirectWrite not currently implemented with mingw..."
  45. #undef JUCE_USE_DIRECTWRITE
  46. #endif
  47. #if JUCE_USE_DIRECTWRITE || JUCE_DIRECT2D
  48. /* If you hit a compile error trying to include these files, you may need to update
  49. your version of the Windows SDK to the latest one. The DirectWrite and Direct2D
  50. headers are in the version 7 SDKs.
  51. */
  52. #include <d2d1.h>
  53. #include <dwrite.h>
  54. #endif
  55. #if JUCE_MINGW
  56. #include <malloc.h>
  57. #include <cstdio>
  58. #endif
  59. #ifdef JUCE_MSVC
  60. #pragma warning (pop)
  61. #endif
  62. #elif JUCE_IOS
  63. #import <QuartzCore/QuartzCore.h>
  64. #import <CoreText/CoreText.h>
  65. #if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_3_2
  66. #error "JUCE no longer supports targets earlier than iOS 3.2"
  67. #endif
  68. #elif JUCE_LINUX
  69. #ifndef JUCE_USE_FREETYPE
  70. #define JUCE_USE_FREETYPE 1
  71. #endif
  72. #endif
  73. #if JUCE_USE_FREETYPE
  74. #if JUCE_USE_FREETYPE_AMALGAMATED
  75. #include "native/freetype/FreeTypeAmalgam.h"
  76. #else
  77. #include <ft2build.h>
  78. #include FT_FREETYPE_H
  79. #endif
  80. #endif
  81. #undef SIZEOF
  82. #if (JUCE_MAC || JUCE_IOS) && USE_COREGRAPHICS_RENDERING && JUCE_USE_COREIMAGE_LOADER
  83. #define JUCE_USING_COREIMAGE_LOADER 1
  84. #else
  85. #define JUCE_USING_COREIMAGE_LOADER 0
  86. #endif
  87. //==============================================================================
  88. #include "colour/juce_Colour.cpp"
  89. #include "colour/juce_ColourGradient.cpp"
  90. #include "colour/juce_Colours.cpp"
  91. #include "colour/juce_FillType.cpp"
  92. #include "geometry/juce_AffineTransform.cpp"
  93. #include "geometry/juce_EdgeTable.cpp"
  94. #include "geometry/juce_Path.cpp"
  95. #include "geometry/juce_PathIterator.cpp"
  96. #include "geometry/juce_PathStrokeType.cpp"
  97. #include "placement/juce_RectanglePlacement.cpp"
  98. #include "contexts/juce_GraphicsContext.cpp"
  99. #include "contexts/juce_LowLevelGraphicsPostScriptRenderer.cpp"
  100. #include "contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp"
  101. #include "images/juce_Image.cpp"
  102. #include "images/juce_ImageCache.cpp"
  103. #include "images/juce_ImageConvolutionKernel.cpp"
  104. #include "images/juce_ImageFileFormat.cpp"
  105. #include "image_formats/juce_GIFLoader.cpp"
  106. #include "image_formats/juce_JPEGLoader.cpp"
  107. #include "image_formats/juce_PNGLoader.cpp"
  108. #include "fonts/juce_AttributedString.cpp"
  109. #include "fonts/juce_Typeface.cpp"
  110. #include "fonts/juce_CustomTypeface.cpp"
  111. #include "fonts/juce_Font.cpp"
  112. #include "fonts/juce_GlyphArrangement.cpp"
  113. #include "fonts/juce_TextLayout.cpp"
  114. #include "effects/juce_DropShadowEffect.cpp"
  115. #include "effects/juce_GlowEffect.cpp"
  116. #if JUCE_USE_FREETYPE
  117. #include "native/juce_freetype_Fonts.cpp"
  118. #endif
  119. //==============================================================================
  120. #if JUCE_MAC || JUCE_IOS
  121. #include "native/juce_mac_Fonts.mm"
  122. #include "native/juce_mac_CoreGraphicsContext.mm"
  123. #include "native/juce_mac_IconHelpers.cpp"
  124. #elif JUCE_WINDOWS
  125. #include "native/juce_win32_DirectWriteTypeface.cpp"
  126. #include "native/juce_win32_DirectWriteTypeLayout.cpp"
  127. #include "native/juce_win32_Fonts.cpp"
  128. #include "native/juce_win32_IconHelpers.cpp"
  129. #if JUCE_DIRECT2D
  130. #include "native/juce_win32_Direct2DGraphicsContext.cpp"
  131. #endif
  132. #elif JUCE_LINUX
  133. #include "native/juce_linux_Fonts.cpp"
  134. #include "native/juce_linux_IconHelpers.cpp"
  135. #elif JUCE_ANDROID
  136. #include "native/juce_android_GraphicsContext.cpp"
  137. #include "native/juce_android_Fonts.cpp"
  138. #include "native/juce_android_IconHelpers.cpp"
  139. #endif
  140. //==============================================================================
  141. #if JUCE_USE_FREETYPE && JUCE_USE_FREETYPE_AMALGAMATED
  142. #undef PIXEL_MASK
  143. #undef ZLIB_VERSION
  144. #undef Z_ASCII
  145. #undef ZEXTERN
  146. #undef ZEXPORT
  147. extern "C"
  148. {
  149. #include "native/freetype/FreeTypeAmalgam.c"
  150. }
  151. #endif