The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
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.

121 lines
4.1KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2022 - 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 7 End-User License
  8. Agreement and JUCE Privacy Policy.
  9. End User License Agreement: www.juce.com/juce-7-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. /*******************************************************************************
  19. The block below describes the properties of this module, and is read by
  20. the Projucer to automatically generate project code that uses it.
  21. For details about the syntax and how to create or use a module, see the
  22. JUCE Module Format.md file.
  23. BEGIN_JUCE_MODULE_DECLARATION
  24. ID: juce_opengl
  25. vendor: juce
  26. version: 7.0.9
  27. name: JUCE OpenGL classes
  28. description: Classes for rendering OpenGL in a JUCE window.
  29. website: http://www.juce.com/juce
  30. license: GPL/Commercial
  31. minimumCppStandard: 17
  32. dependencies: juce_gui_extra
  33. OSXFrameworks: OpenGL
  34. iOSFrameworks: OpenGLES
  35. linuxPackages: gl
  36. mingwLibs: opengl32
  37. END_JUCE_MODULE_DECLARATION
  38. *******************************************************************************/
  39. #pragma once
  40. #define JUCE_OPENGL_H_INCLUDED
  41. #include <juce_core/system/juce_TargetPlatform.h>
  42. #undef JUCE_OPENGL
  43. #define JUCE_OPENGL 1
  44. #if JUCE_IOS || JUCE_ANDROID
  45. #define JUCE_OPENGL_ES 1
  46. #include "opengl/juce_gles2.h"
  47. #else
  48. #include "opengl/juce_gl.h"
  49. #endif
  50. #include <juce_gui_extra/juce_gui_extra.h>
  51. //==============================================================================
  52. #if JUCE_OPENGL_ES || DOXYGEN
  53. /** This macro is a helper for use in GLSL shader code which needs to compile on both GLES and desktop GL.
  54. Since it's mandatory in GLES to mark a variable with a precision, but the keywords don't exist in normal GLSL,
  55. these macros define the various precision keywords only on GLES.
  56. */
  57. #define JUCE_MEDIUMP "mediump"
  58. /** This macro is a helper for use in GLSL shader code which needs to compile on both GLES and desktop GL.
  59. Since it's mandatory in GLES to mark a variable with a precision, but the keywords don't exist in normal GLSL,
  60. these macros define the various precision keywords only on GLES.
  61. */
  62. #define JUCE_HIGHP "highp"
  63. /** This macro is a helper for use in GLSL shader code which needs to compile on both GLES and desktop GL.
  64. Since it's mandatory in GLES to mark a variable with a precision, but the keywords don't exist in normal GLSL,
  65. these macros define the various precision keywords only on GLES.
  66. */
  67. #define JUCE_LOWP "lowp"
  68. #else
  69. #define JUCE_MEDIUMP
  70. #define JUCE_HIGHP
  71. #define JUCE_LOWP
  72. #endif
  73. //==============================================================================
  74. namespace juce
  75. {
  76. class OpenGLTexture;
  77. class OpenGLFrameBuffer;
  78. class OpenGLShaderProgram;
  79. }
  80. #include "geometry/juce_Vector3D.h"
  81. #include "geometry/juce_Matrix3D.h"
  82. #include "geometry/juce_Quaternion.h"
  83. #include "geometry/juce_Draggable3DOrientation.h"
  84. #include "opengl/juce_OpenGLHelpers.h"
  85. #include "opengl/juce_OpenGLPixelFormat.h"
  86. #include "native/juce_OpenGLExtensions.h"
  87. #include "opengl/juce_OpenGLRenderer.h"
  88. #include "opengl/juce_OpenGLContext.h"
  89. #include "opengl/juce_OpenGLFrameBuffer.h"
  90. #include "opengl/juce_OpenGLGraphicsContext.h"
  91. #include "opengl/juce_OpenGLImage.h"
  92. #include "opengl/juce_OpenGLShaderProgram.h"
  93. #include "opengl/juce_OpenGLTexture.h"
  94. #include "utils/juce_OpenGLAppComponent.h"