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

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