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.

144 lines
4.8KB

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