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.4KB

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