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.

101 lines
2.7KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2013 - Raw Material Software Ltd.
  5. Permission is granted to use this software under the terms of either:
  6. a) the GPL v2 (or any later version)
  7. b) the Affero GPL v3
  8. Details of these licenses can be found at: www.gnu.org/licenses
  9. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  11. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  12. ------------------------------------------------------------------------------
  13. To release a closed-source product which uses JUCE, commercial licenses are
  14. available: visit www.juce.com for more information.
  15. ==============================================================================
  16. */
  17. #ifndef JUCE_OPENGL_H_INCLUDED
  18. #define JUCE_OPENGL_H_INCLUDED
  19. #include "../juce_gui_extra/juce_gui_extra.h"
  20. #undef JUCE_OPENGL
  21. #define JUCE_OPENGL 1
  22. #if JUCE_IOS || JUCE_ANDROID
  23. #define JUCE_OPENGL_ES 1
  24. #define JUCE_USE_OPENGL_FIXED_FUNCTION 0
  25. #endif
  26. #if JUCE_WINDOWS
  27. #ifndef APIENTRY
  28. #define APIENTRY __stdcall
  29. #define CLEAR_TEMP_APIENTRY 1
  30. #endif
  31. #ifndef WINGDIAPI
  32. #define WINGDIAPI __declspec(dllimport)
  33. #define CLEAR_TEMP_WINGDIAPI 1
  34. #endif
  35. #include <gl/GL.h>
  36. #ifdef CLEAR_TEMP_WINGDIAPI
  37. #undef WINGDIAPI
  38. #undef CLEAR_TEMP_WINGDIAPI
  39. #endif
  40. #ifdef CLEAR_TEMP_APIENTRY
  41. #undef APIENTRY
  42. #undef CLEAR_TEMP_APIENTRY
  43. #endif
  44. #elif JUCE_LINUX
  45. #include <GL/gl.h>
  46. #undef KeyPress
  47. #elif JUCE_IOS
  48. #include <OpenGLES/ES2/gl.h>
  49. #elif JUCE_MAC
  50. #include <OpenGL/gl.h>
  51. #include "OpenGL/glext.h"
  52. #elif JUCE_ANDROID
  53. #include <GLES2/gl2.h>
  54. #endif
  55. #if ! defined (JUCE_USE_OPENGL_SHADERS)
  56. #define JUCE_USE_OPENGL_SHADERS 1
  57. #endif
  58. #ifndef JUCE_USE_OPENGL_FIXED_FUNCTION
  59. #define JUCE_USE_OPENGL_FIXED_FUNCTION 1
  60. #endif
  61. //=============================================================================
  62. namespace juce
  63. {
  64. #include "opengl/juce_OpenGLHelpers.h"
  65. // START_AUTOINCLUDE opengl
  66. #include "opengl/juce_Draggable3DOrientation.h"
  67. #include "opengl/juce_Matrix3D.h"
  68. #include "opengl/juce_OpenGLContext.h"
  69. #include "opengl/juce_OpenGLFrameBuffer.h"
  70. #include "opengl/juce_OpenGLGraphicsContext.h"
  71. #include "opengl/juce_OpenGLHelpers.h"
  72. #include "opengl/juce_OpenGLImage.h"
  73. #include "opengl/juce_OpenGLPixelFormat.h"
  74. #include "opengl/juce_OpenGLRenderer.h"
  75. #include "opengl/juce_OpenGLShaderProgram.h"
  76. #include "opengl/juce_OpenGLTexture.h"
  77. #include "opengl/juce_Quaternion.h"
  78. #include "opengl/juce_Vector3D.h"
  79. // END_AUTOINCLUDE
  80. }
  81. #endif // JUCE_OPENGL_H_INCLUDED