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.

128 lines
3.6KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library - "Jules' Utility Class Extensions"
  4. Copyright 2004-11 by Raw Material Software Ltd.
  5. ------------------------------------------------------------------------------
  6. JUCE can be redistributed and/or modified under the terms of the GNU General
  7. Public License (Version 2), as published by the Free Software Foundation.
  8. A copy of the license is included in the JUCE distribution, or can be found
  9. online at www.gnu.org/licenses.
  10. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  11. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  13. ------------------------------------------------------------------------------
  14. To release a closed-source product which uses JUCE, commercial licenses are
  15. available: visit www.rawmaterialsoftware.com/juce for more information.
  16. ==============================================================================
  17. */
  18. #ifndef __JUCE_OPENGL_JUCEHEADER__
  19. #define __JUCE_OPENGL_JUCEHEADER__
  20. #include "../juce_gui_extra/juce_gui_extra.h"
  21. #undef JUCE_OPENGL
  22. #define JUCE_OPENGL 1
  23. #if JUCE_IOS || JUCE_ANDROID
  24. #define JUCE_OPENGL_ES 1
  25. #define JUCE_USE_OPENGL_FIXED_FUNCTION 0
  26. #endif
  27. #if JUCE_WINDOWS
  28. #ifndef APIENTRY
  29. #define APIENTRY __stdcall
  30. #define CLEAR_TEMP_APIENTRY 1
  31. #endif
  32. #ifndef WINGDIAPI
  33. #define WINGDIAPI __declspec(dllimport)
  34. #define CLEAR_TEMP_WINGDIAPI 1
  35. #endif
  36. #include <gl/GL.h>
  37. #ifdef CLEAR_TEMP_WINGDIAPI
  38. #undef WINGDIAPI
  39. #undef CLEAR_TEMP_WINGDIAPI
  40. #endif
  41. #ifdef CLEAR_TEMP_APIENTRY
  42. #undef APIENTRY
  43. #undef CLEAR_TEMP_APIENTRY
  44. #endif
  45. #elif JUCE_LINUX
  46. #include <GL/gl.h>
  47. #undef KeyPress
  48. #elif JUCE_IOS
  49. #include <OpenGLES/ES2/gl.h>
  50. #elif JUCE_MAC
  51. #include <OpenGL/gl.h>
  52. #include "OpenGL/glext.h"
  53. #elif JUCE_ANDROID
  54. #include <GLES2/gl2.h>
  55. #endif
  56. #if ! defined (JUCE_USE_OPENGL_SHADERS)
  57. #define JUCE_USE_OPENGL_SHADERS 1
  58. #endif
  59. #ifndef JUCE_USE_OPENGL_FIXED_FUNCTION
  60. #define JUCE_USE_OPENGL_FIXED_FUNCTION 1
  61. #endif
  62. //=============================================================================
  63. namespace juce
  64. {
  65. #include "opengl/juce_OpenGLHelpers.h"
  66. // START_AUTOINCLUDE opengl
  67. #ifndef __JUCE_DRAGGABLE3DORIENTATION_JUCEHEADER__
  68. #include "opengl/juce_Draggable3DOrientation.h"
  69. #endif
  70. #ifndef __JUCE_MATRIX3D_JUCEHEADER__
  71. #include "opengl/juce_Matrix3D.h"
  72. #endif
  73. #ifndef __JUCE_OPENGLCONTEXT_JUCEHEADER__
  74. #include "opengl/juce_OpenGLContext.h"
  75. #endif
  76. #ifndef __JUCE_OPENGLFRAMEBUFFER_JUCEHEADER__
  77. #include "opengl/juce_OpenGLFrameBuffer.h"
  78. #endif
  79. #ifndef __JUCE_OPENGLGRAPHICSCONTEXT_JUCEHEADER__
  80. #include "opengl/juce_OpenGLGraphicsContext.h"
  81. #endif
  82. #ifndef __JUCE_OPENGLHELPERS_JUCEHEADER__
  83. #include "opengl/juce_OpenGLHelpers.h"
  84. #endif
  85. #ifndef __JUCE_OPENGLIMAGE_JUCEHEADER__
  86. #include "opengl/juce_OpenGLImage.h"
  87. #endif
  88. #ifndef __JUCE_OPENGLPIXELFORMAT_JUCEHEADER__
  89. #include "opengl/juce_OpenGLPixelFormat.h"
  90. #endif
  91. #ifndef __JUCE_OPENGLRENDERER_JUCEHEADER__
  92. #include "opengl/juce_OpenGLRenderer.h"
  93. #endif
  94. #ifndef __JUCE_OPENGLSHADERPROGRAM_JUCEHEADER__
  95. #include "opengl/juce_OpenGLShaderProgram.h"
  96. #endif
  97. #ifndef __JUCE_OPENGLTEXTURE_JUCEHEADER__
  98. #include "opengl/juce_OpenGLTexture.h"
  99. #endif
  100. #ifndef __JUCE_QUATERNION_JUCEHEADER__
  101. #include "opengl/juce_Quaternion.h"
  102. #endif
  103. #ifndef __JUCE_VECTOR3D_JUCEHEADER__
  104. #include "opengl/juce_Vector3D.h"
  105. #endif
  106. // END_AUTOINCLUDE
  107. }
  108. #endif // __JUCE_OPENGL_JUCEHEADER__