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.

114 lines
3.9KB

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