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.

153 lines
5.0KB

  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. /** These are important openGL values that aren't defined by default
  18. by the GL headers on various platforms.
  19. */
  20. enum MissingOpenGLDefinitions
  21. {
  22. #ifndef GL_CLAMP_TO_EDGE
  23. GL_CLAMP_TO_EDGE = 0x812f,
  24. #endif
  25. #ifndef GL_NUM_EXTENSIONS
  26. GL_NUM_EXTENSIONS = 0x821d,
  27. #endif
  28. #ifndef GL_BGRA_EXT
  29. GL_BGRA_EXT = 0x80e1,
  30. #endif
  31. #ifndef GL_DEPTH24_STENCIL8
  32. GL_DEPTH24_STENCIL8 = 0x88F0,
  33. #endif
  34. #ifndef GL_RGBA8
  35. GL_RGBA8 = GL_RGBA,
  36. #endif
  37. #ifndef GL_RGBA32F
  38. GL_RGBA32F = 0x8814,
  39. #endif
  40. #ifndef GL_COLOR_ATTACHMENT0
  41. GL_COLOR_ATTACHMENT0 = 0x8CE0,
  42. #endif
  43. #ifndef GL_DEPTH_ATTACHMENT
  44. GL_DEPTH_ATTACHMENT = 0x8D00,
  45. #endif
  46. #ifndef GL_FRAMEBUFFER
  47. GL_FRAMEBUFFER = 0x8D40,
  48. #endif
  49. #ifndef GL_FRAMEBUFFER_BINDING
  50. GL_FRAMEBUFFER_BINDING = 0x8CA6,
  51. #endif
  52. #ifndef GL_FRAMEBUFFER_COMPLETE
  53. GL_FRAMEBUFFER_COMPLETE = 0x8CD5,
  54. #endif
  55. #ifndef GL_RENDERBUFFER
  56. GL_RENDERBUFFER = 0x8D41,
  57. #endif
  58. #ifndef GL_RENDERBUFFER_DEPTH_SIZE
  59. GL_RENDERBUFFER_DEPTH_SIZE = 0x8D54,
  60. #endif
  61. #ifndef GL_STENCIL_ATTACHMENT
  62. GL_STENCIL_ATTACHMENT = 0x8D20,
  63. #endif
  64. #if JUCE_WINDOWS && ! defined (GL_TEXTURE0)
  65. GL_OPERAND0_RGB = 0x8590,
  66. GL_OPERAND1_RGB = 0x8591,
  67. GL_OPERAND0_ALPHA = 0x8598,
  68. GL_OPERAND1_ALPHA = 0x8599,
  69. GL_SRC0_RGB = 0x8580,
  70. GL_SRC1_RGB = 0x8581,
  71. GL_SRC0_ALPHA = 0x8588,
  72. GL_SRC1_ALPHA = 0x8589,
  73. GL_TEXTURE0 = 0x84C0,
  74. GL_TEXTURE1 = 0x84C1,
  75. GL_TEXTURE2 = 0x84C2,
  76. GL_COMBINE = 0x8570,
  77. GL_COMBINE_RGB = 0x8571,
  78. GL_COMBINE_ALPHA = 0x8572,
  79. GL_PREVIOUS = 0x8578,
  80. GL_COMPILE_STATUS = 0x8B81,
  81. GL_LINK_STATUS = 0x8B82,
  82. GL_SHADING_LANGUAGE_VERSION = 0x8B8C,
  83. GL_FRAGMENT_SHADER = 0x8B30,
  84. GL_VERTEX_SHADER = 0x8B31,
  85. GL_ARRAY_BUFFER = 0x8892,
  86. GL_ELEMENT_ARRAY_BUFFER = 0x8893,
  87. GL_STATIC_DRAW = 0x88E4,
  88. GL_DYNAMIC_DRAW = 0x88E8,
  89. GL_STREAM_DRAW = 0x88E0,
  90. WGL_NUMBER_PIXEL_FORMATS_ARB = 0x2000,
  91. WGL_DRAW_TO_WINDOW_ARB = 0x2001,
  92. WGL_ACCELERATION_ARB = 0x2003,
  93. WGL_SWAP_METHOD_ARB = 0x2007,
  94. WGL_SUPPORT_OPENGL_ARB = 0x2010,
  95. WGL_PIXEL_TYPE_ARB = 0x2013,
  96. WGL_DOUBLE_BUFFER_ARB = 0x2011,
  97. WGL_COLOR_BITS_ARB = 0x2014,
  98. WGL_RED_BITS_ARB = 0x2015,
  99. WGL_GREEN_BITS_ARB = 0x2017,
  100. WGL_BLUE_BITS_ARB = 0x2019,
  101. WGL_ALPHA_BITS_ARB = 0x201B,
  102. WGL_DEPTH_BITS_ARB = 0x2022,
  103. WGL_STENCIL_BITS_ARB = 0x2023,
  104. WGL_FULL_ACCELERATION_ARB = 0x2027,
  105. WGL_ACCUM_RED_BITS_ARB = 0x201E,
  106. WGL_ACCUM_GREEN_BITS_ARB = 0x201F,
  107. WGL_ACCUM_BLUE_BITS_ARB = 0x2020,
  108. WGL_ACCUM_ALPHA_BITS_ARB = 0x2021,
  109. WGL_STEREO_ARB = 0x2012,
  110. WGL_SAMPLE_BUFFERS_ARB = 0x2041,
  111. WGL_SAMPLES_ARB = 0x2042,
  112. WGL_TYPE_RGBA_ARB = 0x202B,
  113. WGL_CONTEXT_MAJOR_VERSION_ARB = 0x2091,
  114. WGL_CONTEXT_MINOR_VERSION_ARB = 0x2092,
  115. WGL_CONTEXT_PROFILE_MASK_ARB = 0x9126,
  116. #endif
  117. #if JUCE_ANDROID
  118. JUCE_RGBA_FORMAT = GL_RGBA
  119. #else
  120. JUCE_RGBA_FORMAT = GL_BGRA_EXT
  121. #endif
  122. };
  123. #if JUCE_WINDOWS
  124. typedef char GLchar;
  125. typedef pointer_sized_int GLsizeiptr;
  126. typedef pointer_sized_int GLintptr;
  127. #endif