gl3.h 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940
  1. #ifndef __gl3_h_
  2. #define __gl3_h_ 1
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*
  7. ** Copyright (c) 2013-2014 The Khronos Group Inc.
  8. **
  9. ** Permission is hereby granted, free of charge, to any person obtaining a
  10. ** copy of this software and/or associated documentation files (the
  11. ** "Materials"), to deal in the Materials without restriction, including
  12. ** without limitation the rights to use, copy, modify, merge, publish,
  13. ** distribute, sublicense, and/or sell copies of the Materials, and to
  14. ** permit persons to whom the Materials are furnished to do so, subject to
  15. ** the following conditions:
  16. **
  17. ** The above copyright notice and this permission notice shall be included
  18. ** in all copies or substantial portions of the Materials.
  19. **
  20. ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  23. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  24. ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  25. ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  26. ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
  27. */
  28. /*
  29. ** This header is generated from the Khronos OpenGL / OpenGL ES XML
  30. ** API Registry. The current version of the Registry, generator scripts
  31. ** used to make the header, and the header can be found at
  32. ** http://www.opengl.org/registry/
  33. **
  34. ** Khronos $Revision: 26696 $ on $Date: 2014-05-17 14:48:55 -0700 (Sat, 17 May 2014) $
  35. */
  36. #include <GLES3/gl3platform.h>
  37. /* Generated on date 20140517 */
  38. /* Generated C header for:
  39. * API: gles2
  40. * Profile: common
  41. * Versions considered: 2\.[0-9]|3.0
  42. * Versions emitted: .*
  43. * Default extensions included: None
  44. * Additional extensions included: _nomatch_^
  45. * Extensions removed: _nomatch_^
  46. */
  47. #ifndef GL_ES_VERSION_2_0
  48. #define GL_ES_VERSION_2_0 1
  49. #include <KHR/khrplatform.h>
  50. typedef khronos_int8_t GLbyte;
  51. typedef khronos_float_t GLclampf;
  52. typedef khronos_int32_t GLfixed;
  53. typedef short GLshort;
  54. typedef unsigned short GLushort;
  55. typedef void GLvoid;
  56. typedef struct __GLsync *GLsync;
  57. typedef khronos_int64_t GLint64;
  58. typedef khronos_uint64_t GLuint64;
  59. typedef unsigned int GLenum;
  60. typedef unsigned int GLuint;
  61. typedef char GLchar;
  62. typedef khronos_float_t GLfloat;
  63. typedef khronos_ssize_t GLsizeiptr;
  64. typedef khronos_intptr_t GLintptr;
  65. typedef unsigned int GLbitfield;
  66. typedef int GLint;
  67. typedef unsigned char GLboolean;
  68. typedef int GLsizei;
  69. typedef khronos_uint8_t GLubyte;
  70. #define GL_DEPTH_BUFFER_BIT 0x00000100
  71. #define GL_STENCIL_BUFFER_BIT 0x00000400
  72. #define GL_COLOR_BUFFER_BIT 0x00004000
  73. #define GL_FALSE 0
  74. #define GL_TRUE 1
  75. #define GL_POINTS 0x0000
  76. #define GL_LINES 0x0001
  77. #define GL_LINE_LOOP 0x0002
  78. #define GL_LINE_STRIP 0x0003
  79. #define GL_TRIANGLES 0x0004
  80. #define GL_TRIANGLE_STRIP 0x0005
  81. #define GL_TRIANGLE_FAN 0x0006
  82. #define GL_ZERO 0
  83. #define GL_ONE 1
  84. #define GL_SRC_COLOR 0x0300
  85. #define GL_ONE_MINUS_SRC_COLOR 0x0301
  86. #define GL_SRC_ALPHA 0x0302
  87. #define GL_ONE_MINUS_SRC_ALPHA 0x0303
  88. #define GL_DST_ALPHA 0x0304
  89. #define GL_ONE_MINUS_DST_ALPHA 0x0305
  90. #define GL_DST_COLOR 0x0306
  91. #define GL_ONE_MINUS_DST_COLOR 0x0307
  92. #define GL_SRC_ALPHA_SATURATE 0x0308
  93. #define GL_FUNC_ADD 0x8006
  94. #define GL_BLEND_EQUATION 0x8009
  95. #define GL_BLEND_EQUATION_RGB 0x8009
  96. #define GL_BLEND_EQUATION_ALPHA 0x883D
  97. #define GL_FUNC_SUBTRACT 0x800A
  98. #define GL_FUNC_REVERSE_SUBTRACT 0x800B
  99. #define GL_BLEND_DST_RGB 0x80C8
  100. #define GL_BLEND_SRC_RGB 0x80C9
  101. #define GL_BLEND_DST_ALPHA 0x80CA
  102. #define GL_BLEND_SRC_ALPHA 0x80CB
  103. #define GL_CONSTANT_COLOR 0x8001
  104. #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
  105. #define GL_CONSTANT_ALPHA 0x8003
  106. #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
  107. #define GL_BLEND_COLOR 0x8005
  108. #define GL_ARRAY_BUFFER 0x8892
  109. #define GL_ELEMENT_ARRAY_BUFFER 0x8893
  110. #define GL_ARRAY_BUFFER_BINDING 0x8894
  111. #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
  112. #define GL_STREAM_DRAW 0x88E0
  113. #define GL_STATIC_DRAW 0x88E4
  114. #define GL_DYNAMIC_DRAW 0x88E8
  115. #define GL_BUFFER_SIZE 0x8764
  116. #define GL_BUFFER_USAGE 0x8765
  117. #define GL_CURRENT_VERTEX_ATTRIB 0x8626
  118. #define GL_FRONT 0x0404
  119. #define GL_BACK 0x0405
  120. #define GL_FRONT_AND_BACK 0x0408
  121. #define GL_TEXTURE_2D 0x0DE1
  122. #define GL_CULL_FACE 0x0B44
  123. #define GL_BLEND 0x0BE2
  124. #define GL_DITHER 0x0BD0
  125. #define GL_STENCIL_TEST 0x0B90
  126. #define GL_DEPTH_TEST 0x0B71
  127. #define GL_SCISSOR_TEST 0x0C11
  128. #define GL_POLYGON_OFFSET_FILL 0x8037
  129. #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
  130. #define GL_SAMPLE_COVERAGE 0x80A0
  131. #define GL_NO_ERROR 0
  132. #define GL_INVALID_ENUM 0x0500
  133. #define GL_INVALID_VALUE 0x0501
  134. #define GL_INVALID_OPERATION 0x0502
  135. #define GL_OUT_OF_MEMORY 0x0505
  136. #define GL_CW 0x0900
  137. #define GL_CCW 0x0901
  138. #define GL_LINE_WIDTH 0x0B21
  139. #define GL_ALIASED_POINT_SIZE_RANGE 0x846D
  140. #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
  141. #define GL_CULL_FACE_MODE 0x0B45
  142. #define GL_FRONT_FACE 0x0B46
  143. #define GL_DEPTH_RANGE 0x0B70
  144. #define GL_DEPTH_WRITEMASK 0x0B72
  145. #define GL_DEPTH_CLEAR_VALUE 0x0B73
  146. #define GL_DEPTH_FUNC 0x0B74
  147. #define GL_STENCIL_CLEAR_VALUE 0x0B91
  148. #define GL_STENCIL_FUNC 0x0B92
  149. #define GL_STENCIL_FAIL 0x0B94
  150. #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
  151. #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
  152. #define GL_STENCIL_REF 0x0B97
  153. #define GL_STENCIL_VALUE_MASK 0x0B93
  154. #define GL_STENCIL_WRITEMASK 0x0B98
  155. #define GL_STENCIL_BACK_FUNC 0x8800
  156. #define GL_STENCIL_BACK_FAIL 0x8801
  157. #define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
  158. #define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
  159. #define GL_STENCIL_BACK_REF 0x8CA3
  160. #define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
  161. #define GL_STENCIL_BACK_WRITEMASK 0x8CA5
  162. #define GL_VIEWPORT 0x0BA2
  163. #define GL_SCISSOR_BOX 0x0C10
  164. #define GL_COLOR_CLEAR_VALUE 0x0C22
  165. #define GL_COLOR_WRITEMASK 0x0C23
  166. #define GL_UNPACK_ALIGNMENT 0x0CF5
  167. #define GL_PACK_ALIGNMENT 0x0D05
  168. #define GL_MAX_TEXTURE_SIZE 0x0D33
  169. #define GL_MAX_VIEWPORT_DIMS 0x0D3A
  170. #define GL_SUBPIXEL_BITS 0x0D50
  171. #define GL_RED_BITS 0x0D52
  172. #define GL_GREEN_BITS 0x0D53
  173. #define GL_BLUE_BITS 0x0D54
  174. #define GL_ALPHA_BITS 0x0D55
  175. #define GL_DEPTH_BITS 0x0D56
  176. #define GL_STENCIL_BITS 0x0D57
  177. #define GL_POLYGON_OFFSET_UNITS 0x2A00
  178. #define GL_POLYGON_OFFSET_FACTOR 0x8038
  179. #define GL_TEXTURE_BINDING_2D 0x8069
  180. #define GL_SAMPLE_BUFFERS 0x80A8
  181. #define GL_SAMPLES 0x80A9
  182. #define GL_SAMPLE_COVERAGE_VALUE 0x80AA
  183. #define GL_SAMPLE_COVERAGE_INVERT 0x80AB
  184. #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
  185. #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
  186. #define GL_DONT_CARE 0x1100
  187. #define GL_FASTEST 0x1101
  188. #define GL_NICEST 0x1102
  189. #define GL_GENERATE_MIPMAP_HINT 0x8192
  190. #define GL_BYTE 0x1400
  191. #define GL_UNSIGNED_BYTE 0x1401
  192. #define GL_SHORT 0x1402
  193. #define GL_UNSIGNED_SHORT 0x1403
  194. #define GL_INT 0x1404
  195. #define GL_UNSIGNED_INT 0x1405
  196. #define GL_FLOAT 0x1406
  197. #define GL_FIXED 0x140C
  198. #define GL_DEPTH_COMPONENT 0x1902
  199. #define GL_ALPHA 0x1906
  200. #define GL_RGB 0x1907
  201. #define GL_RGBA 0x1908
  202. #define GL_LUMINANCE 0x1909
  203. #define GL_LUMINANCE_ALPHA 0x190A
  204. #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
  205. #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
  206. #define GL_UNSIGNED_SHORT_5_6_5 0x8363
  207. #define GL_FRAGMENT_SHADER 0x8B30
  208. #define GL_VERTEX_SHADER 0x8B31
  209. #define GL_MAX_VERTEX_ATTRIBS 0x8869
  210. #define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
  211. #define GL_MAX_VARYING_VECTORS 0x8DFC
  212. #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
  213. #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
  214. #define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
  215. #define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
  216. #define GL_SHADER_TYPE 0x8B4F
  217. #define GL_DELETE_STATUS 0x8B80
  218. #define GL_LINK_STATUS 0x8B82
  219. #define GL_VALIDATE_STATUS 0x8B83
  220. #define GL_ATTACHED_SHADERS 0x8B85
  221. #define GL_ACTIVE_UNIFORMS 0x8B86
  222. #define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
  223. #define GL_ACTIVE_ATTRIBUTES 0x8B89
  224. #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
  225. #define GL_SHADING_LANGUAGE_VERSION 0x8B8C
  226. #define GL_CURRENT_PROGRAM 0x8B8D
  227. #define GL_NEVER 0x0200
  228. #define GL_LESS 0x0201
  229. #define GL_EQUAL 0x0202
  230. #define GL_LEQUAL 0x0203
  231. #define GL_GREATER 0x0204
  232. #define GL_NOTEQUAL 0x0205
  233. #define GL_GEQUAL 0x0206
  234. #define GL_ALWAYS 0x0207
  235. #define GL_KEEP 0x1E00
  236. #define GL_REPLACE 0x1E01
  237. #define GL_INCR 0x1E02
  238. #define GL_DECR 0x1E03
  239. #define GL_INVERT 0x150A
  240. #define GL_INCR_WRAP 0x8507
  241. #define GL_DECR_WRAP 0x8508
  242. #define GL_VENDOR 0x1F00
  243. #define GL_RENDERER 0x1F01
  244. #define GL_VERSION 0x1F02
  245. #define GL_EXTENSIONS 0x1F03
  246. #define GL_NEAREST 0x2600
  247. #define GL_LINEAR 0x2601
  248. #define GL_NEAREST_MIPMAP_NEAREST 0x2700
  249. #define GL_LINEAR_MIPMAP_NEAREST 0x2701
  250. #define GL_NEAREST_MIPMAP_LINEAR 0x2702
  251. #define GL_LINEAR_MIPMAP_LINEAR 0x2703
  252. #define GL_TEXTURE_MAG_FILTER 0x2800
  253. #define GL_TEXTURE_MIN_FILTER 0x2801
  254. #define GL_TEXTURE_WRAP_S 0x2802
  255. #define GL_TEXTURE_WRAP_T 0x2803
  256. #define GL_TEXTURE 0x1702
  257. #define GL_TEXTURE_CUBE_MAP 0x8513
  258. #define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
  259. #define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
  260. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
  261. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
  262. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
  263. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
  264. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
  265. #define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
  266. #define GL_TEXTURE0 0x84C0
  267. #define GL_TEXTURE1 0x84C1
  268. #define GL_TEXTURE2 0x84C2
  269. #define GL_TEXTURE3 0x84C3
  270. #define GL_TEXTURE4 0x84C4
  271. #define GL_TEXTURE5 0x84C5
  272. #define GL_TEXTURE6 0x84C6
  273. #define GL_TEXTURE7 0x84C7
  274. #define GL_TEXTURE8 0x84C8
  275. #define GL_TEXTURE9 0x84C9
  276. #define GL_TEXTURE10 0x84CA
  277. #define GL_TEXTURE11 0x84CB
  278. #define GL_TEXTURE12 0x84CC
  279. #define GL_TEXTURE13 0x84CD
  280. #define GL_TEXTURE14 0x84CE
  281. #define GL_TEXTURE15 0x84CF
  282. #define GL_TEXTURE16 0x84D0
  283. #define GL_TEXTURE17 0x84D1
  284. #define GL_TEXTURE18 0x84D2
  285. #define GL_TEXTURE19 0x84D3
  286. #define GL_TEXTURE20 0x84D4
  287. #define GL_TEXTURE21 0x84D5
  288. #define GL_TEXTURE22 0x84D6
  289. #define GL_TEXTURE23 0x84D7
  290. #define GL_TEXTURE24 0x84D8
  291. #define GL_TEXTURE25 0x84D9
  292. #define GL_TEXTURE26 0x84DA
  293. #define GL_TEXTURE27 0x84DB
  294. #define GL_TEXTURE28 0x84DC
  295. #define GL_TEXTURE29 0x84DD
  296. #define GL_TEXTURE30 0x84DE
  297. #define GL_TEXTURE31 0x84DF
  298. #define GL_ACTIVE_TEXTURE 0x84E0
  299. #define GL_REPEAT 0x2901
  300. #define GL_CLAMP_TO_EDGE 0x812F
  301. #define GL_MIRRORED_REPEAT 0x8370
  302. #define GL_FLOAT_VEC2 0x8B50
  303. #define GL_FLOAT_VEC3 0x8B51
  304. #define GL_FLOAT_VEC4 0x8B52
  305. #define GL_INT_VEC2 0x8B53
  306. #define GL_INT_VEC3 0x8B54
  307. #define GL_INT_VEC4 0x8B55
  308. #define GL_BOOL 0x8B56
  309. #define GL_BOOL_VEC2 0x8B57
  310. #define GL_BOOL_VEC3 0x8B58
  311. #define GL_BOOL_VEC4 0x8B59
  312. #define GL_FLOAT_MAT2 0x8B5A
  313. #define GL_FLOAT_MAT3 0x8B5B
  314. #define GL_FLOAT_MAT4 0x8B5C
  315. #define GL_SAMPLER_2D 0x8B5E
  316. #define GL_SAMPLER_CUBE 0x8B60
  317. #define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
  318. #define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
  319. #define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
  320. #define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
  321. #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
  322. #define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
  323. #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
  324. #define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
  325. #define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
  326. #define GL_COMPILE_STATUS 0x8B81
  327. #define GL_INFO_LOG_LENGTH 0x8B84
  328. #define GL_SHADER_SOURCE_LENGTH 0x8B88
  329. #define GL_SHADER_COMPILER 0x8DFA
  330. #define GL_SHADER_BINARY_FORMATS 0x8DF8
  331. #define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
  332. #define GL_LOW_FLOAT 0x8DF0
  333. #define GL_MEDIUM_FLOAT 0x8DF1
  334. #define GL_HIGH_FLOAT 0x8DF2
  335. #define GL_LOW_INT 0x8DF3
  336. #define GL_MEDIUM_INT 0x8DF4
  337. #define GL_HIGH_INT 0x8DF5
  338. #define GL_FRAMEBUFFER 0x8D40
  339. #define GL_RENDERBUFFER 0x8D41
  340. #define GL_RGBA4 0x8056
  341. #define GL_RGB5_A1 0x8057
  342. #define GL_RGB565 0x8D62
  343. #define GL_DEPTH_COMPONENT16 0x81A5
  344. #define GL_STENCIL_INDEX8 0x8D48
  345. #define GL_RENDERBUFFER_WIDTH 0x8D42
  346. #define GL_RENDERBUFFER_HEIGHT 0x8D43
  347. #define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
  348. #define GL_RENDERBUFFER_RED_SIZE 0x8D50
  349. #define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
  350. #define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
  351. #define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
  352. #define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
  353. #define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
  354. #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
  355. #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
  356. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
  357. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
  358. #define GL_COLOR_ATTACHMENT0 0x8CE0
  359. #define GL_DEPTH_ATTACHMENT 0x8D00
  360. #define GL_STENCIL_ATTACHMENT 0x8D20
  361. #define GL_NONE 0
  362. #define GL_FRAMEBUFFER_COMPLETE 0x8CD5
  363. #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
  364. #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
  365. #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS 0x8CD9
  366. #define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
  367. #define GL_FRAMEBUFFER_BINDING 0x8CA6
  368. #define GL_RENDERBUFFER_BINDING 0x8CA7
  369. #define GL_MAX_RENDERBUFFER_SIZE 0x84E8
  370. #define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
  371. GL_APICALL void GL_APIENTRY glActiveTexture (GLenum texture);
  372. GL_APICALL void GL_APIENTRY glAttachShader (GLuint program, GLuint shader);
  373. GL_APICALL void GL_APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
  374. GL_APICALL void GL_APIENTRY glBindBuffer (GLenum target, GLuint buffer);
  375. GL_APICALL void GL_APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
  376. GL_APICALL void GL_APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
  377. GL_APICALL void GL_APIENTRY glBindTexture (GLenum target, GLuint texture);
  378. GL_APICALL void GL_APIENTRY glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  379. GL_APICALL void GL_APIENTRY glBlendEquation (GLenum mode);
  380. GL_APICALL void GL_APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
  381. GL_APICALL void GL_APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
  382. GL_APICALL void GL_APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
  383. GL_APICALL void GL_APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
  384. GL_APICALL void GL_APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
  385. GL_APICALL GLenum GL_APIENTRY glCheckFramebufferStatus (GLenum target);
  386. GL_APICALL void GL_APIENTRY glClear (GLbitfield mask);
  387. GL_APICALL void GL_APIENTRY glClearColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  388. GL_APICALL void GL_APIENTRY glClearDepthf (GLfloat d);
  389. GL_APICALL void GL_APIENTRY glClearStencil (GLint s);
  390. GL_APICALL void GL_APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
  391. GL_APICALL void GL_APIENTRY glCompileShader (GLuint shader);
  392. GL_APICALL void GL_APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
  393. GL_APICALL void GL_APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
  394. GL_APICALL void GL_APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
  395. GL_APICALL void GL_APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  396. GL_APICALL GLuint GL_APIENTRY glCreateProgram (void);
  397. GL_APICALL GLuint GL_APIENTRY glCreateShader (GLenum type);
  398. GL_APICALL void GL_APIENTRY glCullFace (GLenum mode);
  399. GL_APICALL void GL_APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers);
  400. GL_APICALL void GL_APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers);
  401. GL_APICALL void GL_APIENTRY glDeleteProgram (GLuint program);
  402. GL_APICALL void GL_APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers);
  403. GL_APICALL void GL_APIENTRY glDeleteShader (GLuint shader);
  404. GL_APICALL void GL_APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
  405. GL_APICALL void GL_APIENTRY glDepthFunc (GLenum func);
  406. GL_APICALL void GL_APIENTRY glDepthMask (GLboolean flag);
  407. GL_APICALL void GL_APIENTRY glDepthRangef (GLfloat n, GLfloat f);
  408. GL_APICALL void GL_APIENTRY glDetachShader (GLuint program, GLuint shader);
  409. GL_APICALL void GL_APIENTRY glDisable (GLenum cap);
  410. GL_APICALL void GL_APIENTRY glDisableVertexAttribArray (GLuint index);
  411. GL_APICALL void GL_APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
  412. GL_APICALL void GL_APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const void *indices);
  413. GL_APICALL void GL_APIENTRY glEnable (GLenum cap);
  414. GL_APICALL void GL_APIENTRY glEnableVertexAttribArray (GLuint index);
  415. GL_APICALL void GL_APIENTRY glFinish (void);
  416. GL_APICALL void GL_APIENTRY glFlush (void);
  417. GL_APICALL void GL_APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
  418. GL_APICALL void GL_APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
  419. GL_APICALL void GL_APIENTRY glFrontFace (GLenum mode);
  420. GL_APICALL void GL_APIENTRY glGenBuffers (GLsizei n, GLuint *buffers);
  421. GL_APICALL void GL_APIENTRY glGenerateMipmap (GLenum target);
  422. GL_APICALL void GL_APIENTRY glGenFramebuffers (GLsizei n, GLuint *framebuffers);
  423. GL_APICALL void GL_APIENTRY glGenRenderbuffers (GLsizei n, GLuint *renderbuffers);
  424. GL_APICALL void GL_APIENTRY glGenTextures (GLsizei n, GLuint *textures);
  425. GL_APICALL void GL_APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
  426. GL_APICALL void GL_APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
  427. GL_APICALL void GL_APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
  428. GL_APICALL GLint GL_APIENTRY glGetAttribLocation (GLuint program, const GLchar *name);
  429. GL_APICALL void GL_APIENTRY glGetBooleanv (GLenum pname, GLboolean *data);
  430. GL_APICALL void GL_APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
  431. GL_APICALL GLenum GL_APIENTRY glGetError (void);
  432. GL_APICALL void GL_APIENTRY glGetFloatv (GLenum pname, GLfloat *data);
  433. GL_APICALL void GL_APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params);
  434. GL_APICALL void GL_APIENTRY glGetIntegerv (GLenum pname, GLint *data);
  435. GL_APICALL void GL_APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params);
  436. GL_APICALL void GL_APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  437. GL_APICALL void GL_APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params);
  438. GL_APICALL void GL_APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params);
  439. GL_APICALL void GL_APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  440. GL_APICALL void GL_APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
  441. GL_APICALL void GL_APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
  442. GL_APICALL const GLubyte *GL_APIENTRY glGetString (GLenum name);
  443. GL_APICALL void GL_APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
  444. GL_APICALL void GL_APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
  445. GL_APICALL void GL_APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params);
  446. GL_APICALL void GL_APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params);
  447. GL_APICALL GLint GL_APIENTRY glGetUniformLocation (GLuint program, const GLchar *name);
  448. GL_APICALL void GL_APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params);
  449. GL_APICALL void GL_APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params);
  450. GL_APICALL void GL_APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer);
  451. GL_APICALL void GL_APIENTRY glHint (GLenum target, GLenum mode);
  452. GL_APICALL GLboolean GL_APIENTRY glIsBuffer (GLuint buffer);
  453. GL_APICALL GLboolean GL_APIENTRY glIsEnabled (GLenum cap);
  454. GL_APICALL GLboolean GL_APIENTRY glIsFramebuffer (GLuint framebuffer);
  455. GL_APICALL GLboolean GL_APIENTRY glIsProgram (GLuint program);
  456. GL_APICALL GLboolean GL_APIENTRY glIsRenderbuffer (GLuint renderbuffer);
  457. GL_APICALL GLboolean GL_APIENTRY glIsShader (GLuint shader);
  458. GL_APICALL GLboolean GL_APIENTRY glIsTexture (GLuint texture);
  459. GL_APICALL void GL_APIENTRY glLineWidth (GLfloat width);
  460. GL_APICALL void GL_APIENTRY glLinkProgram (GLuint program);
  461. GL_APICALL void GL_APIENTRY glPixelStorei (GLenum pname, GLint param);
  462. GL_APICALL void GL_APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
  463. GL_APICALL void GL_APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);
  464. GL_APICALL void GL_APIENTRY glReleaseShaderCompiler (void);
  465. GL_APICALL void GL_APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
  466. GL_APICALL void GL_APIENTRY glSampleCoverage (GLfloat value, GLboolean invert);
  467. GL_APICALL void GL_APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
  468. GL_APICALL void GL_APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
  469. GL_APICALL void GL_APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
  470. GL_APICALL void GL_APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
  471. GL_APICALL void GL_APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
  472. GL_APICALL void GL_APIENTRY glStencilMask (GLuint mask);
  473. GL_APICALL void GL_APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
  474. GL_APICALL void GL_APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
  475. GL_APICALL void GL_APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
  476. GL_APICALL void GL_APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
  477. GL_APICALL void GL_APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
  478. GL_APICALL void GL_APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
  479. GL_APICALL void GL_APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
  480. GL_APICALL void GL_APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
  481. GL_APICALL void GL_APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
  482. GL_APICALL void GL_APIENTRY glUniform1f (GLint location, GLfloat v0);
  483. GL_APICALL void GL_APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
  484. GL_APICALL void GL_APIENTRY glUniform1i (GLint location, GLint v0);
  485. GL_APICALL void GL_APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value);
  486. GL_APICALL void GL_APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1);
  487. GL_APICALL void GL_APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
  488. GL_APICALL void GL_APIENTRY glUniform2i (GLint location, GLint v0, GLint v1);
  489. GL_APICALL void GL_APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value);
  490. GL_APICALL void GL_APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
  491. GL_APICALL void GL_APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
  492. GL_APICALL void GL_APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2);
  493. GL_APICALL void GL_APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value);
  494. GL_APICALL void GL_APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
  495. GL_APICALL void GL_APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value);
  496. GL_APICALL void GL_APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
  497. GL_APICALL void GL_APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value);
  498. GL_APICALL void GL_APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  499. GL_APICALL void GL_APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  500. GL_APICALL void GL_APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  501. GL_APICALL void GL_APIENTRY glUseProgram (GLuint program);
  502. GL_APICALL void GL_APIENTRY glValidateProgram (GLuint program);
  503. GL_APICALL void GL_APIENTRY glVertexAttrib1f (GLuint index, GLfloat x);
  504. GL_APICALL void GL_APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v);
  505. GL_APICALL void GL_APIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y);
  506. GL_APICALL void GL_APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v);
  507. GL_APICALL void GL_APIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z);
  508. GL_APICALL void GL_APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v);
  509. GL_APICALL void GL_APIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  510. GL_APICALL void GL_APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v);
  511. GL_APICALL void GL_APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
  512. GL_APICALL void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
  513. #endif /* GL_ES_VERSION_2_0 */
  514. #ifndef GL_ES_VERSION_3_0
  515. #define GL_ES_VERSION_3_0 1
  516. typedef unsigned short GLhalf;
  517. #define GL_READ_BUFFER 0x0C02
  518. #define GL_UNPACK_ROW_LENGTH 0x0CF2
  519. #define GL_UNPACK_SKIP_ROWS 0x0CF3
  520. #define GL_UNPACK_SKIP_PIXELS 0x0CF4
  521. #define GL_PACK_ROW_LENGTH 0x0D02
  522. #define GL_PACK_SKIP_ROWS 0x0D03
  523. #define GL_PACK_SKIP_PIXELS 0x0D04
  524. #define GL_COLOR 0x1800
  525. #define GL_DEPTH 0x1801
  526. #define GL_STENCIL 0x1802
  527. #define GL_RED 0x1903
  528. #define GL_RGB8 0x8051
  529. #define GL_RGBA8 0x8058
  530. #define GL_RGB10_A2 0x8059
  531. #define GL_TEXTURE_BINDING_3D 0x806A
  532. #define GL_UNPACK_SKIP_IMAGES 0x806D
  533. #define GL_UNPACK_IMAGE_HEIGHT 0x806E
  534. #define GL_TEXTURE_3D 0x806F
  535. #define GL_TEXTURE_WRAP_R 0x8072
  536. #define GL_MAX_3D_TEXTURE_SIZE 0x8073
  537. #define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
  538. #define GL_MAX_ELEMENTS_VERTICES 0x80E8
  539. #define GL_MAX_ELEMENTS_INDICES 0x80E9
  540. #define GL_TEXTURE_MIN_LOD 0x813A
  541. #define GL_TEXTURE_MAX_LOD 0x813B
  542. #define GL_TEXTURE_BASE_LEVEL 0x813C
  543. #define GL_TEXTURE_MAX_LEVEL 0x813D
  544. #define GL_MIN 0x8007
  545. #define GL_MAX 0x8008
  546. #define GL_DEPTH_COMPONENT24 0x81A6
  547. #define GL_MAX_TEXTURE_LOD_BIAS 0x84FD
  548. #define GL_TEXTURE_COMPARE_MODE 0x884C
  549. #define GL_TEXTURE_COMPARE_FUNC 0x884D
  550. #define GL_CURRENT_QUERY 0x8865
  551. #define GL_QUERY_RESULT 0x8866
  552. #define GL_QUERY_RESULT_AVAILABLE 0x8867
  553. #define GL_BUFFER_MAPPED 0x88BC
  554. #define GL_BUFFER_MAP_POINTER 0x88BD
  555. #define GL_STREAM_READ 0x88E1
  556. #define GL_STREAM_COPY 0x88E2
  557. #define GL_STATIC_READ 0x88E5
  558. #define GL_STATIC_COPY 0x88E6
  559. #define GL_DYNAMIC_READ 0x88E9
  560. #define GL_DYNAMIC_COPY 0x88EA
  561. #define GL_MAX_DRAW_BUFFERS 0x8824
  562. #define GL_DRAW_BUFFER0 0x8825
  563. #define GL_DRAW_BUFFER1 0x8826
  564. #define GL_DRAW_BUFFER2 0x8827
  565. #define GL_DRAW_BUFFER3 0x8828
  566. #define GL_DRAW_BUFFER4 0x8829
  567. #define GL_DRAW_BUFFER5 0x882A
  568. #define GL_DRAW_BUFFER6 0x882B
  569. #define GL_DRAW_BUFFER7 0x882C
  570. #define GL_DRAW_BUFFER8 0x882D
  571. #define GL_DRAW_BUFFER9 0x882E
  572. #define GL_DRAW_BUFFER10 0x882F
  573. #define GL_DRAW_BUFFER11 0x8830
  574. #define GL_DRAW_BUFFER12 0x8831
  575. #define GL_DRAW_BUFFER13 0x8832
  576. #define GL_DRAW_BUFFER14 0x8833
  577. #define GL_DRAW_BUFFER15 0x8834
  578. #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
  579. #define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
  580. #define GL_SAMPLER_3D 0x8B5F
  581. #define GL_SAMPLER_2D_SHADOW 0x8B62
  582. #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
  583. #define GL_PIXEL_PACK_BUFFER 0x88EB
  584. #define GL_PIXEL_UNPACK_BUFFER 0x88EC
  585. #define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED
  586. #define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF
  587. #define GL_FLOAT_MAT2x3 0x8B65
  588. #define GL_FLOAT_MAT2x4 0x8B66
  589. #define GL_FLOAT_MAT3x2 0x8B67
  590. #define GL_FLOAT_MAT3x4 0x8B68
  591. #define GL_FLOAT_MAT4x2 0x8B69
  592. #define GL_FLOAT_MAT4x3 0x8B6A
  593. #define GL_SRGB 0x8C40
  594. #define GL_SRGB8 0x8C41
  595. #define GL_SRGB8_ALPHA8 0x8C43
  596. #define GL_COMPARE_REF_TO_TEXTURE 0x884E
  597. #define GL_MAJOR_VERSION 0x821B
  598. #define GL_MINOR_VERSION 0x821C
  599. #define GL_NUM_EXTENSIONS 0x821D
  600. #define GL_RGBA32F 0x8814
  601. #define GL_RGB32F 0x8815
  602. #define GL_RGBA16F 0x881A
  603. #define GL_RGB16F 0x881B
  604. #define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD
  605. #define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF
  606. #define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904
  607. #define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905
  608. #define GL_MAX_VARYING_COMPONENTS 0x8B4B
  609. #define GL_TEXTURE_2D_ARRAY 0x8C1A
  610. #define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D
  611. #define GL_R11F_G11F_B10F 0x8C3A
  612. #define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B
  613. #define GL_RGB9_E5 0x8C3D
  614. #define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E
  615. #define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
  616. #define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
  617. #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
  618. #define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83
  619. #define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
  620. #define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
  621. #define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
  622. #define GL_RASTERIZER_DISCARD 0x8C89
  623. #define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
  624. #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
  625. #define GL_INTERLEAVED_ATTRIBS 0x8C8C
  626. #define GL_SEPARATE_ATTRIBS 0x8C8D
  627. #define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E
  628. #define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
  629. #define GL_RGBA32UI 0x8D70
  630. #define GL_RGB32UI 0x8D71
  631. #define GL_RGBA16UI 0x8D76
  632. #define GL_RGB16UI 0x8D77
  633. #define GL_RGBA8UI 0x8D7C
  634. #define GL_RGB8UI 0x8D7D
  635. #define GL_RGBA32I 0x8D82
  636. #define GL_RGB32I 0x8D83
  637. #define GL_RGBA16I 0x8D88
  638. #define GL_RGB16I 0x8D89
  639. #define GL_RGBA8I 0x8D8E
  640. #define GL_RGB8I 0x8D8F
  641. #define GL_RED_INTEGER 0x8D94
  642. #define GL_RGB_INTEGER 0x8D98
  643. #define GL_RGBA_INTEGER 0x8D99
  644. #define GL_SAMPLER_2D_ARRAY 0x8DC1
  645. #define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4
  646. #define GL_SAMPLER_CUBE_SHADOW 0x8DC5
  647. #define GL_UNSIGNED_INT_VEC2 0x8DC6
  648. #define GL_UNSIGNED_INT_VEC3 0x8DC7
  649. #define GL_UNSIGNED_INT_VEC4 0x8DC8
  650. #define GL_INT_SAMPLER_2D 0x8DCA
  651. #define GL_INT_SAMPLER_3D 0x8DCB
  652. #define GL_INT_SAMPLER_CUBE 0x8DCC
  653. #define GL_INT_SAMPLER_2D_ARRAY 0x8DCF
  654. #define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2
  655. #define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3
  656. #define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4
  657. #define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7
  658. #define GL_BUFFER_ACCESS_FLAGS 0x911F
  659. #define GL_BUFFER_MAP_LENGTH 0x9120
  660. #define GL_BUFFER_MAP_OFFSET 0x9121
  661. #define GL_DEPTH_COMPONENT32F 0x8CAC
  662. #define GL_DEPTH32F_STENCIL8 0x8CAD
  663. #define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
  664. #define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
  665. #define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
  666. #define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
  667. #define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
  668. #define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
  669. #define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
  670. #define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
  671. #define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
  672. #define GL_FRAMEBUFFER_DEFAULT 0x8218
  673. #define GL_FRAMEBUFFER_UNDEFINED 0x8219
  674. #define GL_DEPTH_STENCIL_ATTACHMENT 0x821A
  675. #define GL_DEPTH_STENCIL 0x84F9
  676. #define GL_UNSIGNED_INT_24_8 0x84FA
  677. #define GL_DEPTH24_STENCIL8 0x88F0
  678. #define GL_UNSIGNED_NORMALIZED 0x8C17
  679. #define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6
  680. #define GL_READ_FRAMEBUFFER 0x8CA8
  681. #define GL_DRAW_FRAMEBUFFER 0x8CA9
  682. #define GL_READ_FRAMEBUFFER_BINDING 0x8CAA
  683. #define GL_RENDERBUFFER_SAMPLES 0x8CAB
  684. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
  685. #define GL_MAX_COLOR_ATTACHMENTS 0x8CDF
  686. #define GL_COLOR_ATTACHMENT1 0x8CE1
  687. #define GL_COLOR_ATTACHMENT2 0x8CE2
  688. #define GL_COLOR_ATTACHMENT3 0x8CE3
  689. #define GL_COLOR_ATTACHMENT4 0x8CE4
  690. #define GL_COLOR_ATTACHMENT5 0x8CE5
  691. #define GL_COLOR_ATTACHMENT6 0x8CE6
  692. #define GL_COLOR_ATTACHMENT7 0x8CE7
  693. #define GL_COLOR_ATTACHMENT8 0x8CE8
  694. #define GL_COLOR_ATTACHMENT9 0x8CE9
  695. #define GL_COLOR_ATTACHMENT10 0x8CEA
  696. #define GL_COLOR_ATTACHMENT11 0x8CEB
  697. #define GL_COLOR_ATTACHMENT12 0x8CEC
  698. #define GL_COLOR_ATTACHMENT13 0x8CED
  699. #define GL_COLOR_ATTACHMENT14 0x8CEE
  700. #define GL_COLOR_ATTACHMENT15 0x8CEF
  701. #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
  702. #define GL_MAX_SAMPLES 0x8D57
  703. #define GL_HALF_FLOAT 0x140B
  704. #define GL_MAP_READ_BIT 0x0001
  705. #define GL_MAP_WRITE_BIT 0x0002
  706. #define GL_MAP_INVALIDATE_RANGE_BIT 0x0004
  707. #define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
  708. #define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010
  709. #define GL_MAP_UNSYNCHRONIZED_BIT 0x0020
  710. #define GL_RG 0x8227
  711. #define GL_RG_INTEGER 0x8228
  712. #define GL_R8 0x8229
  713. #define GL_RG8 0x822B
  714. #define GL_R16F 0x822D
  715. #define GL_R32F 0x822E
  716. #define GL_RG16F 0x822F
  717. #define GL_RG32F 0x8230
  718. #define GL_R8I 0x8231
  719. #define GL_R8UI 0x8232
  720. #define GL_R16I 0x8233
  721. #define GL_R16UI 0x8234
  722. #define GL_R32I 0x8235
  723. #define GL_R32UI 0x8236
  724. #define GL_RG8I 0x8237
  725. #define GL_RG8UI 0x8238
  726. #define GL_RG16I 0x8239
  727. #define GL_RG16UI 0x823A
  728. #define GL_RG32I 0x823B
  729. #define GL_RG32UI 0x823C
  730. #define GL_VERTEX_ARRAY_BINDING 0x85B5
  731. #define GL_R8_SNORM 0x8F94
  732. #define GL_RG8_SNORM 0x8F95
  733. #define GL_RGB8_SNORM 0x8F96
  734. #define GL_RGBA8_SNORM 0x8F97
  735. #define GL_SIGNED_NORMALIZED 0x8F9C
  736. #define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69
  737. #define GL_COPY_READ_BUFFER 0x8F36
  738. #define GL_COPY_WRITE_BUFFER 0x8F37
  739. #define GL_COPY_READ_BUFFER_BINDING 0x8F36
  740. #define GL_COPY_WRITE_BUFFER_BINDING 0x8F37
  741. #define GL_UNIFORM_BUFFER 0x8A11
  742. #define GL_UNIFORM_BUFFER_BINDING 0x8A28
  743. #define GL_UNIFORM_BUFFER_START 0x8A29
  744. #define GL_UNIFORM_BUFFER_SIZE 0x8A2A
  745. #define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B
  746. #define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D
  747. #define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E
  748. #define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F
  749. #define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30
  750. #define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
  751. #define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
  752. #define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
  753. #define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
  754. #define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36
  755. #define GL_UNIFORM_TYPE 0x8A37
  756. #define GL_UNIFORM_SIZE 0x8A38
  757. #define GL_UNIFORM_NAME_LENGTH 0x8A39
  758. #define GL_UNIFORM_BLOCK_INDEX 0x8A3A
  759. #define GL_UNIFORM_OFFSET 0x8A3B
  760. #define GL_UNIFORM_ARRAY_STRIDE 0x8A3C
  761. #define GL_UNIFORM_MATRIX_STRIDE 0x8A3D
  762. #define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E
  763. #define GL_UNIFORM_BLOCK_BINDING 0x8A3F
  764. #define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40
  765. #define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41
  766. #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42
  767. #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
  768. #define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
  769. #define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
  770. #define GL_INVALID_INDEX 0xFFFFFFFFu
  771. #define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122
  772. #define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125
  773. #define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111
  774. #define GL_OBJECT_TYPE 0x9112
  775. #define GL_SYNC_CONDITION 0x9113
  776. #define GL_SYNC_STATUS 0x9114
  777. #define GL_SYNC_FLAGS 0x9115
  778. #define GL_SYNC_FENCE 0x9116
  779. #define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
  780. #define GL_UNSIGNALED 0x9118
  781. #define GL_SIGNALED 0x9119
  782. #define GL_ALREADY_SIGNALED 0x911A
  783. #define GL_TIMEOUT_EXPIRED 0x911B
  784. #define GL_CONDITION_SATISFIED 0x911C
  785. #define GL_WAIT_FAILED 0x911D
  786. #define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001
  787. #define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFFull
  788. #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE
  789. #define GL_ANY_SAMPLES_PASSED 0x8C2F
  790. #define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A
  791. #define GL_SAMPLER_BINDING 0x8919
  792. #define GL_RGB10_A2UI 0x906F
  793. #define GL_TEXTURE_SWIZZLE_R 0x8E42
  794. #define GL_TEXTURE_SWIZZLE_G 0x8E43
  795. #define GL_TEXTURE_SWIZZLE_B 0x8E44
  796. #define GL_TEXTURE_SWIZZLE_A 0x8E45
  797. #define GL_GREEN 0x1904
  798. #define GL_BLUE 0x1905
  799. #define GL_INT_2_10_10_10_REV 0x8D9F
  800. #define GL_TRANSFORM_FEEDBACK 0x8E22
  801. #define GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23
  802. #define GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24
  803. #define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25
  804. #define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
  805. #define GL_PROGRAM_BINARY_LENGTH 0x8741
  806. #define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE
  807. #define GL_PROGRAM_BINARY_FORMATS 0x87FF
  808. #define GL_COMPRESSED_R11_EAC 0x9270
  809. #define GL_COMPRESSED_SIGNED_R11_EAC 0x9271
  810. #define GL_COMPRESSED_RG11_EAC 0x9272
  811. #define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273
  812. #define GL_COMPRESSED_RGB8_ETC2 0x9274
  813. #define GL_COMPRESSED_SRGB8_ETC2 0x9275
  814. #define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276
  815. #define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277
  816. #define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278
  817. #define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279
  818. #define GL_TEXTURE_IMMUTABLE_FORMAT 0x912F
  819. #define GL_MAX_ELEMENT_INDEX 0x8D6B
  820. #define GL_NUM_SAMPLE_COUNTS 0x9380
  821. #define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF
  822. GL_APICALL void GL_APIENTRY glReadBuffer (GLenum mode);
  823. GL_APICALL void GL_APIENTRY glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
  824. GL_APICALL void GL_APIENTRY glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
  825. GL_APICALL void GL_APIENTRY glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
  826. GL_APICALL void GL_APIENTRY glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  827. GL_APICALL void GL_APIENTRY glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
  828. GL_APICALL void GL_APIENTRY glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
  829. GL_APICALL void GL_APIENTRY glGenQueries (GLsizei n, GLuint *ids);
  830. GL_APICALL void GL_APIENTRY glDeleteQueries (GLsizei n, const GLuint *ids);
  831. GL_APICALL GLboolean GL_APIENTRY glIsQuery (GLuint id);
  832. GL_APICALL void GL_APIENTRY glBeginQuery (GLenum target, GLuint id);
  833. GL_APICALL void GL_APIENTRY glEndQuery (GLenum target);
  834. GL_APICALL void GL_APIENTRY glGetQueryiv (GLenum target, GLenum pname, GLint *params);
  835. GL_APICALL void GL_APIENTRY glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params);
  836. GL_APICALL GLboolean GL_APIENTRY glUnmapBuffer (GLenum target);
  837. GL_APICALL void GL_APIENTRY glGetBufferPointerv (GLenum target, GLenum pname, void **params);
  838. GL_APICALL void GL_APIENTRY glDrawBuffers (GLsizei n, const GLenum *bufs);
  839. GL_APICALL void GL_APIENTRY glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  840. GL_APICALL void GL_APIENTRY glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  841. GL_APICALL void GL_APIENTRY glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  842. GL_APICALL void GL_APIENTRY glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  843. GL_APICALL void GL_APIENTRY glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  844. GL_APICALL void GL_APIENTRY glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  845. GL_APICALL void GL_APIENTRY glBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  846. GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  847. GL_APICALL void GL_APIENTRY glFramebufferTextureLayer (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
  848. GL_APICALL void *GL_APIENTRY glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
  849. GL_APICALL void GL_APIENTRY glFlushMappedBufferRange (GLenum target, GLintptr offset, GLsizeiptr length);
  850. GL_APICALL void GL_APIENTRY glBindVertexArray (GLuint array);
  851. GL_APICALL void GL_APIENTRY glDeleteVertexArrays (GLsizei n, const GLuint *arrays);
  852. GL_APICALL void GL_APIENTRY glGenVertexArrays (GLsizei n, GLuint *arrays);
  853. GL_APICALL GLboolean GL_APIENTRY glIsVertexArray (GLuint array);
  854. GL_APICALL void GL_APIENTRY glGetIntegeri_v (GLenum target, GLuint index, GLint *data);
  855. GL_APICALL void GL_APIENTRY glBeginTransformFeedback (GLenum primitiveMode);
  856. GL_APICALL void GL_APIENTRY glEndTransformFeedback (void);
  857. GL_APICALL void GL_APIENTRY glBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
  858. GL_APICALL void GL_APIENTRY glBindBufferBase (GLenum target, GLuint index, GLuint buffer);
  859. GL_APICALL void GL_APIENTRY glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
  860. GL_APICALL void GL_APIENTRY glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
  861. GL_APICALL void GL_APIENTRY glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
  862. GL_APICALL void GL_APIENTRY glGetVertexAttribIiv (GLuint index, GLenum pname, GLint *params);
  863. GL_APICALL void GL_APIENTRY glGetVertexAttribIuiv (GLuint index, GLenum pname, GLuint *params);
  864. GL_APICALL void GL_APIENTRY glVertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w);
  865. GL_APICALL void GL_APIENTRY glVertexAttribI4ui (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
  866. GL_APICALL void GL_APIENTRY glVertexAttribI4iv (GLuint index, const GLint *v);
  867. GL_APICALL void GL_APIENTRY glVertexAttribI4uiv (GLuint index, const GLuint *v);
  868. GL_APICALL void GL_APIENTRY glGetUniformuiv (GLuint program, GLint location, GLuint *params);
  869. GL_APICALL GLint GL_APIENTRY glGetFragDataLocation (GLuint program, const GLchar *name);
  870. GL_APICALL void GL_APIENTRY glUniform1ui (GLint location, GLuint v0);
  871. GL_APICALL void GL_APIENTRY glUniform2ui (GLint location, GLuint v0, GLuint v1);
  872. GL_APICALL void GL_APIENTRY glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2);
  873. GL_APICALL void GL_APIENTRY glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
  874. GL_APICALL void GL_APIENTRY glUniform1uiv (GLint location, GLsizei count, const GLuint *value);
  875. GL_APICALL void GL_APIENTRY glUniform2uiv (GLint location, GLsizei count, const GLuint *value);
  876. GL_APICALL void GL_APIENTRY glUniform3uiv (GLint location, GLsizei count, const GLuint *value);
  877. GL_APICALL void GL_APIENTRY glUniform4uiv (GLint location, GLsizei count, const GLuint *value);
  878. GL_APICALL void GL_APIENTRY glClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value);
  879. GL_APICALL void GL_APIENTRY glClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value);
  880. GL_APICALL void GL_APIENTRY glClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value);
  881. GL_APICALL void GL_APIENTRY glClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
  882. GL_APICALL const GLubyte *GL_APIENTRY glGetStringi (GLenum name, GLuint index);
  883. GL_APICALL void GL_APIENTRY glCopyBufferSubData (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
  884. GL_APICALL void GL_APIENTRY glGetUniformIndices (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
  885. GL_APICALL void GL_APIENTRY glGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
  886. GL_APICALL GLuint GL_APIENTRY glGetUniformBlockIndex (GLuint program, const GLchar *uniformBlockName);
  887. GL_APICALL void GL_APIENTRY glGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
  888. GL_APICALL void GL_APIENTRY glGetActiveUniformBlockName (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
  889. GL_APICALL void GL_APIENTRY glUniformBlockBinding (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
  890. GL_APICALL void GL_APIENTRY glDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
  891. GL_APICALL void GL_APIENTRY glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
  892. GL_APICALL GLsync GL_APIENTRY glFenceSync (GLenum condition, GLbitfield flags);
  893. GL_APICALL GLboolean GL_APIENTRY glIsSync (GLsync sync);
  894. GL_APICALL void GL_APIENTRY glDeleteSync (GLsync sync);
  895. GL_APICALL GLenum GL_APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
  896. GL_APICALL void GL_APIENTRY glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
  897. GL_APICALL void GL_APIENTRY glGetInteger64v (GLenum pname, GLint64 *data);
  898. GL_APICALL void GL_APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
  899. GL_APICALL void GL_APIENTRY glGetInteger64i_v (GLenum target, GLuint index, GLint64 *data);
  900. GL_APICALL void GL_APIENTRY glGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params);
  901. GL_APICALL void GL_APIENTRY glGenSamplers (GLsizei count, GLuint *samplers);
  902. GL_APICALL void GL_APIENTRY glDeleteSamplers (GLsizei count, const GLuint *samplers);
  903. GL_APICALL GLboolean GL_APIENTRY glIsSampler (GLuint sampler);
  904. GL_APICALL void GL_APIENTRY glBindSampler (GLuint unit, GLuint sampler);
  905. GL_APICALL void GL_APIENTRY glSamplerParameteri (GLuint sampler, GLenum pname, GLint param);
  906. GL_APICALL void GL_APIENTRY glSamplerParameteriv (GLuint sampler, GLenum pname, const GLint *param);
  907. GL_APICALL void GL_APIENTRY glSamplerParameterf (GLuint sampler, GLenum pname, GLfloat param);
  908. GL_APICALL void GL_APIENTRY glSamplerParameterfv (GLuint sampler, GLenum pname, const GLfloat *param);
  909. GL_APICALL void GL_APIENTRY glGetSamplerParameteriv (GLuint sampler, GLenum pname, GLint *params);
  910. GL_APICALL void GL_APIENTRY glGetSamplerParameterfv (GLuint sampler, GLenum pname, GLfloat *params);
  911. GL_APICALL void GL_APIENTRY glVertexAttribDivisor (GLuint index, GLuint divisor);
  912. GL_APICALL void GL_APIENTRY glBindTransformFeedback (GLenum target, GLuint id);
  913. GL_APICALL void GL_APIENTRY glDeleteTransformFeedbacks (GLsizei n, const GLuint *ids);
  914. GL_APICALL void GL_APIENTRY glGenTransformFeedbacks (GLsizei n, GLuint *ids);
  915. GL_APICALL GLboolean GL_APIENTRY glIsTransformFeedback (GLuint id);
  916. GL_APICALL void GL_APIENTRY glPauseTransformFeedback (void);
  917. GL_APICALL void GL_APIENTRY glResumeTransformFeedback (void);
  918. GL_APICALL void GL_APIENTRY glGetProgramBinary (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
  919. GL_APICALL void GL_APIENTRY glProgramBinary (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
  920. GL_APICALL void GL_APIENTRY glProgramParameteri (GLuint program, GLenum pname, GLint value);
  921. GL_APICALL void GL_APIENTRY glInvalidateFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments);
  922. GL_APICALL void GL_APIENTRY glInvalidateSubFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
  923. GL_APICALL void GL_APIENTRY glTexStorage2D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  924. GL_APICALL void GL_APIENTRY glTexStorage3D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  925. GL_APICALL void GL_APIENTRY glGetInternalformativ (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params);
  926. #endif /* GL_ES_VERSION_3_0 */
  927. #ifdef __cplusplus
  928. }
  929. #endif
  930. #endif