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.

149 lines
5.2KB

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