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.

159 lines
5.0KB

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