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.

171 lines
5.3KB

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