gl2ext.h 105 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933
  1. #ifndef __gl2ext_h_
  2. #define __gl2ext_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$ on $Date$
  35. */
  36. #ifndef GL_APIENTRYP
  37. #define GL_APIENTRYP GL_APIENTRY*
  38. #endif
  39. /* Generated on date 20140519 */
  40. /* Generated C header for:
  41. * API: gles2
  42. * Profile: common
  43. * Versions considered: 2\.[0-9]
  44. * Versions emitted: _nomatch_^
  45. * Default extensions included: gles2
  46. * Additional extensions included: _nomatch_^
  47. * Extensions removed: _nomatch_^
  48. */
  49. #ifndef GL_KHR_blend_equation_advanced
  50. #define GL_KHR_blend_equation_advanced 1
  51. #define GL_BLEND_ADVANCED_COHERENT_KHR 0x9285
  52. #define GL_MULTIPLY_KHR 0x9294
  53. #define GL_SCREEN_KHR 0x9295
  54. #define GL_OVERLAY_KHR 0x9296
  55. #define GL_DARKEN_KHR 0x9297
  56. #define GL_LIGHTEN_KHR 0x9298
  57. #define GL_COLORDODGE_KHR 0x9299
  58. #define GL_COLORBURN_KHR 0x929A
  59. #define GL_HARDLIGHT_KHR 0x929B
  60. #define GL_SOFTLIGHT_KHR 0x929C
  61. #define GL_DIFFERENCE_KHR 0x929E
  62. #define GL_EXCLUSION_KHR 0x92A0
  63. #define GL_HSL_HUE_KHR 0x92AD
  64. #define GL_HSL_SATURATION_KHR 0x92AE
  65. #define GL_HSL_COLOR_KHR 0x92AF
  66. #define GL_HSL_LUMINOSITY_KHR 0x92B0
  67. typedef void (GL_APIENTRYP PFNGLBLENDBARRIERKHRPROC) (void);
  68. #ifdef GL_GLEXT_PROTOTYPES
  69. GL_APICALL void GL_APIENTRY glBlendBarrierKHR (void);
  70. #endif
  71. #endif /* GL_KHR_blend_equation_advanced */
  72. #ifndef GL_KHR_debug
  73. #define GL_KHR_debug 1
  74. typedef void (GL_APIENTRY *GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
  75. #define GL_SAMPLER 0x82E6
  76. #define GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR 0x8242
  77. #define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_KHR 0x8243
  78. #define GL_DEBUG_CALLBACK_FUNCTION_KHR 0x8244
  79. #define GL_DEBUG_CALLBACK_USER_PARAM_KHR 0x8245
  80. #define GL_DEBUG_SOURCE_API_KHR 0x8246
  81. #define GL_DEBUG_SOURCE_WINDOW_SYSTEM_KHR 0x8247
  82. #define GL_DEBUG_SOURCE_SHADER_COMPILER_KHR 0x8248
  83. #define GL_DEBUG_SOURCE_THIRD_PARTY_KHR 0x8249
  84. #define GL_DEBUG_SOURCE_APPLICATION_KHR 0x824A
  85. #define GL_DEBUG_SOURCE_OTHER_KHR 0x824B
  86. #define GL_DEBUG_TYPE_ERROR_KHR 0x824C
  87. #define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_KHR 0x824D
  88. #define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_KHR 0x824E
  89. #define GL_DEBUG_TYPE_PORTABILITY_KHR 0x824F
  90. #define GL_DEBUG_TYPE_PERFORMANCE_KHR 0x8250
  91. #define GL_DEBUG_TYPE_OTHER_KHR 0x8251
  92. #define GL_DEBUG_TYPE_MARKER_KHR 0x8268
  93. #define GL_DEBUG_TYPE_PUSH_GROUP_KHR 0x8269
  94. #define GL_DEBUG_TYPE_POP_GROUP_KHR 0x826A
  95. #define GL_DEBUG_SEVERITY_NOTIFICATION_KHR 0x826B
  96. #define GL_MAX_DEBUG_GROUP_STACK_DEPTH_KHR 0x826C
  97. #define GL_DEBUG_GROUP_STACK_DEPTH_KHR 0x826D
  98. #define GL_BUFFER_KHR 0x82E0
  99. #define GL_SHADER_KHR 0x82E1
  100. #define GL_PROGRAM_KHR 0x82E2
  101. #define GL_VERTEX_ARRAY_KHR 0x8074
  102. #define GL_QUERY_KHR 0x82E3
  103. #define GL_SAMPLER_KHR 0x82E6
  104. #define GL_MAX_LABEL_LENGTH_KHR 0x82E8
  105. #define GL_MAX_DEBUG_MESSAGE_LENGTH_KHR 0x9143
  106. #define GL_MAX_DEBUG_LOGGED_MESSAGES_KHR 0x9144
  107. #define GL_DEBUG_LOGGED_MESSAGES_KHR 0x9145
  108. #define GL_DEBUG_SEVERITY_HIGH_KHR 0x9146
  109. #define GL_DEBUG_SEVERITY_MEDIUM_KHR 0x9147
  110. #define GL_DEBUG_SEVERITY_LOW_KHR 0x9148
  111. #define GL_DEBUG_OUTPUT_KHR 0x92E0
  112. #define GL_CONTEXT_FLAG_DEBUG_BIT_KHR 0x00000002
  113. #define GL_STACK_OVERFLOW_KHR 0x0503
  114. #define GL_STACK_UNDERFLOW_KHR 0x0504
  115. typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGECONTROLKHRPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
  116. typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGEINSERTKHRPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
  117. typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGECALLBACKKHRPROC) (GLDEBUGPROCKHR callback, const void *userParam);
  118. typedef GLuint (GL_APIENTRYP PFNGLGETDEBUGMESSAGELOGKHRPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
  119. typedef void (GL_APIENTRYP PFNGLPUSHDEBUGGROUPKHRPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message);
  120. typedef void (GL_APIENTRYP PFNGLPOPDEBUGGROUPKHRPROC) (void);
  121. typedef void (GL_APIENTRYP PFNGLOBJECTLABELKHRPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
  122. typedef void (GL_APIENTRYP PFNGLGETOBJECTLABELKHRPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
  123. typedef void (GL_APIENTRYP PFNGLOBJECTPTRLABELKHRPROC) (const void *ptr, GLsizei length, const GLchar *label);
  124. typedef void (GL_APIENTRYP PFNGLGETOBJECTPTRLABELKHRPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
  125. typedef void (GL_APIENTRYP PFNGLGETPOINTERVKHRPROC) (GLenum pname, void **params);
  126. #ifdef GL_GLEXT_PROTOTYPES
  127. GL_APICALL void GL_APIENTRY glDebugMessageControlKHR (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
  128. GL_APICALL void GL_APIENTRY glDebugMessageInsertKHR (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
  129. GL_APICALL void GL_APIENTRY glDebugMessageCallbackKHR (GLDEBUGPROCKHR callback, const void *userParam);
  130. GL_APICALL GLuint GL_APIENTRY glGetDebugMessageLogKHR (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
  131. GL_APICALL void GL_APIENTRY glPushDebugGroupKHR (GLenum source, GLuint id, GLsizei length, const GLchar *message);
  132. GL_APICALL void GL_APIENTRY glPopDebugGroupKHR (void);
  133. GL_APICALL void GL_APIENTRY glObjectLabelKHR (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
  134. GL_APICALL void GL_APIENTRY glGetObjectLabelKHR (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
  135. GL_APICALL void GL_APIENTRY glObjectPtrLabelKHR (const void *ptr, GLsizei length, const GLchar *label);
  136. GL_APICALL void GL_APIENTRY glGetObjectPtrLabelKHR (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
  137. GL_APICALL void GL_APIENTRY glGetPointervKHR (GLenum pname, void **params);
  138. #endif
  139. #endif /* GL_KHR_debug */
  140. #ifndef GL_KHR_texture_compression_astc_hdr
  141. #define GL_KHR_texture_compression_astc_hdr 1
  142. #define GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93B0
  143. #define GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93B1
  144. #define GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93B2
  145. #define GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93B3
  146. #define GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93B4
  147. #define GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93B5
  148. #define GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93B6
  149. #define GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93B7
  150. #define GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93B8
  151. #define GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93B9
  152. #define GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93BA
  153. #define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB
  154. #define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC
  155. #define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD
  156. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0
  157. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1
  158. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2
  159. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3
  160. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4
  161. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5
  162. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6
  163. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7
  164. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8
  165. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9
  166. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA
  167. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB
  168. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC
  169. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD
  170. #endif /* GL_KHR_texture_compression_astc_hdr */
  171. #ifndef GL_KHR_texture_compression_astc_ldr
  172. #define GL_KHR_texture_compression_astc_ldr 1
  173. #endif /* GL_KHR_texture_compression_astc_ldr */
  174. #ifndef GL_OES_EGL_image
  175. #define GL_OES_EGL_image 1
  176. typedef void *GLeglImageOES;
  177. typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
  178. typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
  179. #ifdef GL_GLEXT_PROTOTYPES
  180. GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
  181. GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
  182. #endif
  183. #endif /* GL_OES_EGL_image */
  184. #ifndef GL_OES_EGL_image_external
  185. #define GL_OES_EGL_image_external 1
  186. #define GL_TEXTURE_EXTERNAL_OES 0x8D65
  187. #define GL_TEXTURE_BINDING_EXTERNAL_OES 0x8D67
  188. #define GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES 0x8D68
  189. #define GL_SAMPLER_EXTERNAL_OES 0x8D66
  190. #endif /* GL_OES_EGL_image_external */
  191. #ifndef GL_OES_compressed_ETC1_RGB8_texture
  192. #define GL_OES_compressed_ETC1_RGB8_texture 1
  193. #define GL_ETC1_RGB8_OES 0x8D64
  194. #endif /* GL_OES_compressed_ETC1_RGB8_texture */
  195. #ifndef GL_OES_compressed_paletted_texture
  196. #define GL_OES_compressed_paletted_texture 1
  197. #define GL_PALETTE4_RGB8_OES 0x8B90
  198. #define GL_PALETTE4_RGBA8_OES 0x8B91
  199. #define GL_PALETTE4_R5_G6_B5_OES 0x8B92
  200. #define GL_PALETTE4_RGBA4_OES 0x8B93
  201. #define GL_PALETTE4_RGB5_A1_OES 0x8B94
  202. #define GL_PALETTE8_RGB8_OES 0x8B95
  203. #define GL_PALETTE8_RGBA8_OES 0x8B96
  204. #define GL_PALETTE8_R5_G6_B5_OES 0x8B97
  205. #define GL_PALETTE8_RGBA4_OES 0x8B98
  206. #define GL_PALETTE8_RGB5_A1_OES 0x8B99
  207. #endif /* GL_OES_compressed_paletted_texture */
  208. #ifndef GL_OES_depth24
  209. #define GL_OES_depth24 1
  210. #define GL_DEPTH_COMPONENT24_OES 0x81A6
  211. #endif /* GL_OES_depth24 */
  212. #ifndef GL_OES_depth32
  213. #define GL_OES_depth32 1
  214. #define GL_DEPTH_COMPONENT32_OES 0x81A7
  215. #endif /* GL_OES_depth32 */
  216. #ifndef GL_OES_depth_texture
  217. #define GL_OES_depth_texture 1
  218. #endif /* GL_OES_depth_texture */
  219. #ifndef GL_OES_element_index_uint
  220. #define GL_OES_element_index_uint 1
  221. #endif /* GL_OES_element_index_uint */
  222. #ifndef GL_OES_fbo_render_mipmap
  223. #define GL_OES_fbo_render_mipmap 1
  224. #endif /* GL_OES_fbo_render_mipmap */
  225. #ifndef GL_OES_fragment_precision_high
  226. #define GL_OES_fragment_precision_high 1
  227. #endif /* GL_OES_fragment_precision_high */
  228. #ifndef GL_OES_get_program_binary
  229. #define GL_OES_get_program_binary 1
  230. #define GL_PROGRAM_BINARY_LENGTH_OES 0x8741
  231. #define GL_NUM_PROGRAM_BINARY_FORMATS_OES 0x87FE
  232. #define GL_PROGRAM_BINARY_FORMATS_OES 0x87FF
  233. typedef void (GL_APIENTRYP PFNGLGETPROGRAMBINARYOESPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
  234. typedef void (GL_APIENTRYP PFNGLPROGRAMBINARYOESPROC) (GLuint program, GLenum binaryFormat, const void *binary, GLint length);
  235. #ifdef GL_GLEXT_PROTOTYPES
  236. GL_APICALL void GL_APIENTRY glGetProgramBinaryOES (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
  237. GL_APICALL void GL_APIENTRY glProgramBinaryOES (GLuint program, GLenum binaryFormat, const void *binary, GLint length);
  238. #endif
  239. #endif /* GL_OES_get_program_binary */
  240. #ifndef GL_OES_mapbuffer
  241. #define GL_OES_mapbuffer 1
  242. #define GL_WRITE_ONLY_OES 0x88B9
  243. #define GL_BUFFER_ACCESS_OES 0x88BB
  244. #define GL_BUFFER_MAPPED_OES 0x88BC
  245. #define GL_BUFFER_MAP_POINTER_OES 0x88BD
  246. typedef void *(GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
  247. typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
  248. typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, void **params);
  249. #ifdef GL_GLEXT_PROTOTYPES
  250. GL_APICALL void *GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
  251. GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
  252. GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, void **params);
  253. #endif
  254. #endif /* GL_OES_mapbuffer */
  255. #ifndef GL_OES_packed_depth_stencil
  256. #define GL_OES_packed_depth_stencil 1
  257. #define GL_DEPTH_STENCIL_OES 0x84F9
  258. #define GL_UNSIGNED_INT_24_8_OES 0x84FA
  259. #define GL_DEPTH24_STENCIL8_OES 0x88F0
  260. #endif /* GL_OES_packed_depth_stencil */
  261. #ifndef GL_OES_required_internalformat
  262. #define GL_OES_required_internalformat 1
  263. #define GL_ALPHA8_OES 0x803C
  264. #define GL_DEPTH_COMPONENT16_OES 0x81A5
  265. #define GL_LUMINANCE4_ALPHA4_OES 0x8043
  266. #define GL_LUMINANCE8_ALPHA8_OES 0x8045
  267. #define GL_LUMINANCE8_OES 0x8040
  268. #define GL_RGBA4_OES 0x8056
  269. #define GL_RGB5_A1_OES 0x8057
  270. #define GL_RGB565_OES 0x8D62
  271. #define GL_RGB8_OES 0x8051
  272. #define GL_RGBA8_OES 0x8058
  273. #define GL_RGB10_EXT 0x8052
  274. #define GL_RGB10_A2_EXT 0x8059
  275. #endif /* GL_OES_required_internalformat */
  276. #ifndef GL_OES_rgb8_rgba8
  277. #define GL_OES_rgb8_rgba8 1
  278. #endif /* GL_OES_rgb8_rgba8 */
  279. #ifndef GL_OES_sample_shading
  280. #define GL_OES_sample_shading 1
  281. #define GL_SAMPLE_SHADING_OES 0x8C36
  282. #define GL_MIN_SAMPLE_SHADING_VALUE_OES 0x8C37
  283. typedef void (GL_APIENTRYP PFNGLMINSAMPLESHADINGOESPROC) (GLfloat value);
  284. #ifdef GL_GLEXT_PROTOTYPES
  285. GL_APICALL void GL_APIENTRY glMinSampleShadingOES (GLfloat value);
  286. #endif
  287. #endif /* GL_OES_sample_shading */
  288. #ifndef GL_OES_sample_variables
  289. #define GL_OES_sample_variables 1
  290. #endif /* GL_OES_sample_variables */
  291. #ifndef GL_OES_shader_image_atomic
  292. #define GL_OES_shader_image_atomic 1
  293. #endif /* GL_OES_shader_image_atomic */
  294. #ifndef GL_OES_shader_multisample_interpolation
  295. #define GL_OES_shader_multisample_interpolation 1
  296. #define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_OES 0x8E5B
  297. #define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_OES 0x8E5C
  298. #define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS_OES 0x8E5D
  299. #endif /* GL_OES_shader_multisample_interpolation */
  300. #ifndef GL_OES_standard_derivatives
  301. #define GL_OES_standard_derivatives 1
  302. #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES 0x8B8B
  303. #endif /* GL_OES_standard_derivatives */
  304. #ifndef GL_OES_stencil1
  305. #define GL_OES_stencil1 1
  306. #define GL_STENCIL_INDEX1_OES 0x8D46
  307. #endif /* GL_OES_stencil1 */
  308. #ifndef GL_OES_stencil4
  309. #define GL_OES_stencil4 1
  310. #define GL_STENCIL_INDEX4_OES 0x8D47
  311. #endif /* GL_OES_stencil4 */
  312. #ifndef GL_OES_surfaceless_context
  313. #define GL_OES_surfaceless_context 1
  314. #define GL_FRAMEBUFFER_UNDEFINED_OES 0x8219
  315. #endif /* GL_OES_surfaceless_context */
  316. #ifndef GL_OES_texture_3D
  317. #define GL_OES_texture_3D 1
  318. #define GL_TEXTURE_WRAP_R_OES 0x8072
  319. #define GL_TEXTURE_3D_OES 0x806F
  320. #define GL_TEXTURE_BINDING_3D_OES 0x806A
  321. #define GL_MAX_3D_TEXTURE_SIZE_OES 0x8073
  322. #define GL_SAMPLER_3D_OES 0x8B5F
  323. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES 0x8CD4
  324. typedef void (GL_APIENTRYP PFNGLTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
  325. typedef void (GL_APIENTRYP PFNGLTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
  326. typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  327. typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
  328. typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
  329. typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOESPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
  330. #ifdef GL_GLEXT_PROTOTYPES
  331. GL_APICALL void GL_APIENTRY glTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
  332. GL_APICALL void GL_APIENTRY glTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
  333. GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  334. GL_APICALL void GL_APIENTRY glCompressedTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
  335. GL_APICALL void GL_APIENTRY glCompressedTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
  336. GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
  337. #endif
  338. #endif /* GL_OES_texture_3D */
  339. #ifndef GL_OES_texture_compression_astc
  340. #define GL_OES_texture_compression_astc 1
  341. #define GL_COMPRESSED_RGBA_ASTC_3x3x3_OES 0x93C0
  342. #define GL_COMPRESSED_RGBA_ASTC_4x3x3_OES 0x93C1
  343. #define GL_COMPRESSED_RGBA_ASTC_4x4x3_OES 0x93C2
  344. #define GL_COMPRESSED_RGBA_ASTC_4x4x4_OES 0x93C3
  345. #define GL_COMPRESSED_RGBA_ASTC_5x4x4_OES 0x93C4
  346. #define GL_COMPRESSED_RGBA_ASTC_5x5x4_OES 0x93C5
  347. #define GL_COMPRESSED_RGBA_ASTC_5x5x5_OES 0x93C6
  348. #define GL_COMPRESSED_RGBA_ASTC_6x5x5_OES 0x93C7
  349. #define GL_COMPRESSED_RGBA_ASTC_6x6x5_OES 0x93C8
  350. #define GL_COMPRESSED_RGBA_ASTC_6x6x6_OES 0x93C9
  351. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_3x3x3_OES 0x93E0
  352. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x3x3_OES 0x93E1
  353. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x3_OES 0x93E2
  354. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x4_OES 0x93E3
  355. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4x4_OES 0x93E4
  356. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x4_OES 0x93E5
  357. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES 0x93E6
  358. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES 0x93E7
  359. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x5_OES 0x93E8
  360. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x6_OES 0x93E9
  361. #endif /* GL_OES_texture_compression_astc */
  362. #ifndef GL_OES_texture_float
  363. #define GL_OES_texture_float 1
  364. #endif /* GL_OES_texture_float */
  365. #ifndef GL_OES_texture_float_linear
  366. #define GL_OES_texture_float_linear 1
  367. #endif /* GL_OES_texture_float_linear */
  368. #ifndef GL_OES_texture_half_float
  369. #define GL_OES_texture_half_float 1
  370. #define GL_HALF_FLOAT_OES 0x8D61
  371. #endif /* GL_OES_texture_half_float */
  372. #ifndef GL_OES_texture_half_float_linear
  373. #define GL_OES_texture_half_float_linear 1
  374. #endif /* GL_OES_texture_half_float_linear */
  375. #ifndef GL_OES_texture_npot
  376. #define GL_OES_texture_npot 1
  377. #endif /* GL_OES_texture_npot */
  378. #ifndef GL_OES_texture_stencil8
  379. #define GL_OES_texture_stencil8 1
  380. #define GL_STENCIL_INDEX_OES 0x1901
  381. #define GL_STENCIL_INDEX8_OES 0x8D48
  382. #endif /* GL_OES_texture_stencil8 */
  383. #ifndef GL_OES_texture_storage_multisample_2d_array
  384. #define GL_OES_texture_storage_multisample_2d_array 1
  385. #define GL_TEXTURE_2D_MULTISAMPLE_ARRAY_OES 0x9102
  386. #define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY_OES 0x9105
  387. #define GL_SAMPLER_2D_MULTISAMPLE_ARRAY_OES 0x910B
  388. #define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY_OES 0x910C
  389. #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY_OES 0x910D
  390. typedef void (GL_APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEOESPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
  391. #ifdef GL_GLEXT_PROTOTYPES
  392. GL_APICALL void GL_APIENTRY glTexStorage3DMultisampleOES (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
  393. #endif
  394. #endif /* GL_OES_texture_storage_multisample_2d_array */
  395. #ifndef GL_OES_vertex_array_object
  396. #define GL_OES_vertex_array_object 1
  397. #define GL_VERTEX_ARRAY_BINDING_OES 0x85B5
  398. typedef void (GL_APIENTRYP PFNGLBINDVERTEXARRAYOESPROC) (GLuint array);
  399. typedef void (GL_APIENTRYP PFNGLDELETEVERTEXARRAYSOESPROC) (GLsizei n, const GLuint *arrays);
  400. typedef void (GL_APIENTRYP PFNGLGENVERTEXARRAYSOESPROC) (GLsizei n, GLuint *arrays);
  401. typedef GLboolean (GL_APIENTRYP PFNGLISVERTEXARRAYOESPROC) (GLuint array);
  402. #ifdef GL_GLEXT_PROTOTYPES
  403. GL_APICALL void GL_APIENTRY glBindVertexArrayOES (GLuint array);
  404. GL_APICALL void GL_APIENTRY glDeleteVertexArraysOES (GLsizei n, const GLuint *arrays);
  405. GL_APICALL void GL_APIENTRY glGenVertexArraysOES (GLsizei n, GLuint *arrays);
  406. GL_APICALL GLboolean GL_APIENTRY glIsVertexArrayOES (GLuint array);
  407. #endif
  408. #endif /* GL_OES_vertex_array_object */
  409. #ifndef GL_OES_vertex_half_float
  410. #define GL_OES_vertex_half_float 1
  411. #endif /* GL_OES_vertex_half_float */
  412. #ifndef GL_OES_vertex_type_10_10_10_2
  413. #define GL_OES_vertex_type_10_10_10_2 1
  414. #define GL_UNSIGNED_INT_10_10_10_2_OES 0x8DF6
  415. #define GL_INT_10_10_10_2_OES 0x8DF7
  416. #endif /* GL_OES_vertex_type_10_10_10_2 */
  417. #ifndef GL_AMD_compressed_3DC_texture
  418. #define GL_AMD_compressed_3DC_texture 1
  419. #define GL_3DC_X_AMD 0x87F9
  420. #define GL_3DC_XY_AMD 0x87FA
  421. #endif /* GL_AMD_compressed_3DC_texture */
  422. #ifndef GL_AMD_compressed_ATC_texture
  423. #define GL_AMD_compressed_ATC_texture 1
  424. #define GL_ATC_RGB_AMD 0x8C92
  425. #define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93
  426. #define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE
  427. #endif /* GL_AMD_compressed_ATC_texture */
  428. #ifndef GL_AMD_performance_monitor
  429. #define GL_AMD_performance_monitor 1
  430. #define GL_COUNTER_TYPE_AMD 0x8BC0
  431. #define GL_COUNTER_RANGE_AMD 0x8BC1
  432. #define GL_UNSIGNED_INT64_AMD 0x8BC2
  433. #define GL_PERCENTAGE_AMD 0x8BC3
  434. #define GL_PERFMON_RESULT_AVAILABLE_AMD 0x8BC4
  435. #define GL_PERFMON_RESULT_SIZE_AMD 0x8BC5
  436. #define GL_PERFMON_RESULT_AMD 0x8BC6
  437. typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
  438. typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
  439. typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
  440. typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
  441. typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void *data);
  442. typedef void (GL_APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
  443. typedef void (GL_APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
  444. typedef void (GL_APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
  445. typedef void (GL_APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
  446. typedef void (GL_APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
  447. typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
  448. #ifdef GL_GLEXT_PROTOTYPES
  449. GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
  450. GL_APICALL void GL_APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
  451. GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
  452. GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
  453. GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, void *data);
  454. GL_APICALL void GL_APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors);
  455. GL_APICALL void GL_APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors);
  456. GL_APICALL void GL_APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
  457. GL_APICALL void GL_APIENTRY glBeginPerfMonitorAMD (GLuint monitor);
  458. GL_APICALL void GL_APIENTRY glEndPerfMonitorAMD (GLuint monitor);
  459. GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
  460. #endif
  461. #endif /* GL_AMD_performance_monitor */
  462. #ifndef GL_AMD_program_binary_Z400
  463. #define GL_AMD_program_binary_Z400 1
  464. #define GL_Z400_BINARY_AMD 0x8740
  465. #endif /* GL_AMD_program_binary_Z400 */
  466. #ifndef GL_ANGLE_depth_texture
  467. #define GL_ANGLE_depth_texture 1
  468. #endif /* GL_ANGLE_depth_texture */
  469. #ifndef GL_ANGLE_framebuffer_blit
  470. #define GL_ANGLE_framebuffer_blit 1
  471. #define GL_READ_FRAMEBUFFER_ANGLE 0x8CA8
  472. #define GL_DRAW_FRAMEBUFFER_ANGLE 0x8CA9
  473. #define GL_DRAW_FRAMEBUFFER_BINDING_ANGLE 0x8CA6
  474. #define GL_READ_FRAMEBUFFER_BINDING_ANGLE 0x8CAA
  475. typedef void (GL_APIENTRYP PFNGLBLITFRAMEBUFFERANGLEPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  476. #ifdef GL_GLEXT_PROTOTYPES
  477. GL_APICALL void GL_APIENTRY glBlitFramebufferANGLE (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  478. #endif
  479. #endif /* GL_ANGLE_framebuffer_blit */
  480. #ifndef GL_ANGLE_framebuffer_multisample
  481. #define GL_ANGLE_framebuffer_multisample 1
  482. #define GL_RENDERBUFFER_SAMPLES_ANGLE 0x8CAB
  483. #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE 0x8D56
  484. #define GL_MAX_SAMPLES_ANGLE 0x8D57
  485. typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  486. #ifdef GL_GLEXT_PROTOTYPES
  487. GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleANGLE (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  488. #endif
  489. #endif /* GL_ANGLE_framebuffer_multisample */
  490. #ifndef GL_ANGLE_instanced_arrays
  491. #define GL_ANGLE_instanced_arrays 1
  492. #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE 0x88FE
  493. typedef void (GL_APIENTRYP PFNGLDRAWARRAYSINSTANCEDANGLEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
  494. typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDANGLEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
  495. typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBDIVISORANGLEPROC) (GLuint index, GLuint divisor);
  496. #ifdef GL_GLEXT_PROTOTYPES
  497. GL_APICALL void GL_APIENTRY glDrawArraysInstancedANGLE (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
  498. GL_APICALL void GL_APIENTRY glDrawElementsInstancedANGLE (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
  499. GL_APICALL void GL_APIENTRY glVertexAttribDivisorANGLE (GLuint index, GLuint divisor);
  500. #endif
  501. #endif /* GL_ANGLE_instanced_arrays */
  502. #ifndef GL_ANGLE_pack_reverse_row_order
  503. #define GL_ANGLE_pack_reverse_row_order 1
  504. #define GL_PACK_REVERSE_ROW_ORDER_ANGLE 0x93A4
  505. #endif /* GL_ANGLE_pack_reverse_row_order */
  506. #ifndef GL_ANGLE_program_binary
  507. #define GL_ANGLE_program_binary 1
  508. #define GL_PROGRAM_BINARY_ANGLE 0x93A6
  509. #endif /* GL_ANGLE_program_binary */
  510. #ifndef GL_ANGLE_texture_compression_dxt3
  511. #define GL_ANGLE_texture_compression_dxt3 1
  512. #define GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE 0x83F2
  513. #endif /* GL_ANGLE_texture_compression_dxt3 */
  514. #ifndef GL_ANGLE_texture_compression_dxt5
  515. #define GL_ANGLE_texture_compression_dxt5 1
  516. #define GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE 0x83F3
  517. #endif /* GL_ANGLE_texture_compression_dxt5 */
  518. #ifndef GL_ANGLE_texture_usage
  519. #define GL_ANGLE_texture_usage 1
  520. #define GL_TEXTURE_USAGE_ANGLE 0x93A2
  521. #define GL_FRAMEBUFFER_ATTACHMENT_ANGLE 0x93A3
  522. #endif /* GL_ANGLE_texture_usage */
  523. #ifndef GL_ANGLE_translated_shader_source
  524. #define GL_ANGLE_translated_shader_source 1
  525. #define GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE 0x93A0
  526. typedef void (GL_APIENTRYP PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC) (GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source);
  527. #ifdef GL_GLEXT_PROTOTYPES
  528. GL_APICALL void GL_APIENTRY glGetTranslatedShaderSourceANGLE (GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source);
  529. #endif
  530. #endif /* GL_ANGLE_translated_shader_source */
  531. #ifndef GL_APPLE_copy_texture_levels
  532. #define GL_APPLE_copy_texture_levels 1
  533. typedef void (GL_APIENTRYP PFNGLCOPYTEXTURELEVELSAPPLEPROC) (GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount);
  534. #ifdef GL_GLEXT_PROTOTYPES
  535. GL_APICALL void GL_APIENTRY glCopyTextureLevelsAPPLE (GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount);
  536. #endif
  537. #endif /* GL_APPLE_copy_texture_levels */
  538. #ifndef GL_APPLE_framebuffer_multisample
  539. #define GL_APPLE_framebuffer_multisample 1
  540. #define GL_RENDERBUFFER_SAMPLES_APPLE 0x8CAB
  541. #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE 0x8D56
  542. #define GL_MAX_SAMPLES_APPLE 0x8D57
  543. #define GL_READ_FRAMEBUFFER_APPLE 0x8CA8
  544. #define GL_DRAW_FRAMEBUFFER_APPLE 0x8CA9
  545. #define GL_DRAW_FRAMEBUFFER_BINDING_APPLE 0x8CA6
  546. #define GL_READ_FRAMEBUFFER_BINDING_APPLE 0x8CAA
  547. typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  548. typedef void (GL_APIENTRYP PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC) (void);
  549. #ifdef GL_GLEXT_PROTOTYPES
  550. GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleAPPLE (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  551. GL_APICALL void GL_APIENTRY glResolveMultisampleFramebufferAPPLE (void);
  552. #endif
  553. #endif /* GL_APPLE_framebuffer_multisample */
  554. #ifndef GL_APPLE_rgb_422
  555. #define GL_APPLE_rgb_422 1
  556. #define GL_RGB_422_APPLE 0x8A1F
  557. #define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA
  558. #define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB
  559. #define GL_RGB_RAW_422_APPLE 0x8A51
  560. #endif /* GL_APPLE_rgb_422 */
  561. #ifndef GL_APPLE_sync
  562. #define GL_APPLE_sync 1
  563. #define GL_SYNC_OBJECT_APPLE 0x8A53
  564. #define GL_MAX_SERVER_WAIT_TIMEOUT_APPLE 0x9111
  565. #define GL_OBJECT_TYPE_APPLE 0x9112
  566. #define GL_SYNC_CONDITION_APPLE 0x9113
  567. #define GL_SYNC_STATUS_APPLE 0x9114
  568. #define GL_SYNC_FLAGS_APPLE 0x9115
  569. #define GL_SYNC_FENCE_APPLE 0x9116
  570. #define GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE 0x9117
  571. #define GL_UNSIGNALED_APPLE 0x9118
  572. #define GL_SIGNALED_APPLE 0x9119
  573. #define GL_ALREADY_SIGNALED_APPLE 0x911A
  574. #define GL_TIMEOUT_EXPIRED_APPLE 0x911B
  575. #define GL_CONDITION_SATISFIED_APPLE 0x911C
  576. #define GL_WAIT_FAILED_APPLE 0x911D
  577. #define GL_SYNC_FLUSH_COMMANDS_BIT_APPLE 0x00000001
  578. #define GL_TIMEOUT_IGNORED_APPLE 0xFFFFFFFFFFFFFFFFull
  579. typedef GLsync (GL_APIENTRYP PFNGLFENCESYNCAPPLEPROC) (GLenum condition, GLbitfield flags);
  580. typedef GLboolean (GL_APIENTRYP PFNGLISSYNCAPPLEPROC) (GLsync sync);
  581. typedef void (GL_APIENTRYP PFNGLDELETESYNCAPPLEPROC) (GLsync sync);
  582. typedef GLenum (GL_APIENTRYP PFNGLCLIENTWAITSYNCAPPLEPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
  583. typedef void (GL_APIENTRYP PFNGLWAITSYNCAPPLEPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
  584. typedef void (GL_APIENTRYP PFNGLGETINTEGER64VAPPLEPROC) (GLenum pname, GLint64 *params);
  585. typedef void (GL_APIENTRYP PFNGLGETSYNCIVAPPLEPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
  586. #ifdef GL_GLEXT_PROTOTYPES
  587. GL_APICALL GLsync GL_APIENTRY glFenceSyncAPPLE (GLenum condition, GLbitfield flags);
  588. GL_APICALL GLboolean GL_APIENTRY glIsSyncAPPLE (GLsync sync);
  589. GL_APICALL void GL_APIENTRY glDeleteSyncAPPLE (GLsync sync);
  590. GL_APICALL GLenum GL_APIENTRY glClientWaitSyncAPPLE (GLsync sync, GLbitfield flags, GLuint64 timeout);
  591. GL_APICALL void GL_APIENTRY glWaitSyncAPPLE (GLsync sync, GLbitfield flags, GLuint64 timeout);
  592. GL_APICALL void GL_APIENTRY glGetInteger64vAPPLE (GLenum pname, GLint64 *params);
  593. GL_APICALL void GL_APIENTRY glGetSyncivAPPLE (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
  594. #endif
  595. #endif /* GL_APPLE_sync */
  596. #ifndef GL_APPLE_texture_format_BGRA8888
  597. #define GL_APPLE_texture_format_BGRA8888 1
  598. #define GL_BGRA_EXT 0x80E1
  599. #define GL_BGRA8_EXT 0x93A1
  600. #endif /* GL_APPLE_texture_format_BGRA8888 */
  601. #ifndef GL_APPLE_texture_max_level
  602. #define GL_APPLE_texture_max_level 1
  603. #define GL_TEXTURE_MAX_LEVEL_APPLE 0x813D
  604. #endif /* GL_APPLE_texture_max_level */
  605. #ifndef GL_ARM_mali_program_binary
  606. #define GL_ARM_mali_program_binary 1
  607. #define GL_MALI_PROGRAM_BINARY_ARM 0x8F61
  608. #endif /* GL_ARM_mali_program_binary */
  609. #ifndef GL_ARM_mali_shader_binary
  610. #define GL_ARM_mali_shader_binary 1
  611. #define GL_MALI_SHADER_BINARY_ARM 0x8F60
  612. #endif /* GL_ARM_mali_shader_binary */
  613. #ifndef GL_ARM_rgba8
  614. #define GL_ARM_rgba8 1
  615. #endif /* GL_ARM_rgba8 */
  616. #ifndef GL_ARM_shader_framebuffer_fetch
  617. #define GL_ARM_shader_framebuffer_fetch 1
  618. #define GL_FETCH_PER_SAMPLE_ARM 0x8F65
  619. #define GL_FRAGMENT_SHADER_FRAMEBUFFER_FETCH_MRT_ARM 0x8F66
  620. #endif /* GL_ARM_shader_framebuffer_fetch */
  621. #ifndef GL_ARM_shader_framebuffer_fetch_depth_stencil
  622. #define GL_ARM_shader_framebuffer_fetch_depth_stencil 1
  623. #endif /* GL_ARM_shader_framebuffer_fetch_depth_stencil */
  624. #ifndef GL_DMP_shader_binary
  625. #define GL_DMP_shader_binary 1
  626. #define GL_SHADER_BINARY_DMP 0x9250
  627. #endif /* GL_DMP_shader_binary */
  628. #ifndef GL_EXT_blend_minmax
  629. #define GL_EXT_blend_minmax 1
  630. #define GL_MIN_EXT 0x8007
  631. #define GL_MAX_EXT 0x8008
  632. #endif /* GL_EXT_blend_minmax */
  633. #ifndef GL_EXT_color_buffer_half_float
  634. #define GL_EXT_color_buffer_half_float 1
  635. #define GL_RGBA16F_EXT 0x881A
  636. #define GL_RGB16F_EXT 0x881B
  637. #define GL_RG16F_EXT 0x822F
  638. #define GL_R16F_EXT 0x822D
  639. #define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT 0x8211
  640. #define GL_UNSIGNED_NORMALIZED_EXT 0x8C17
  641. #endif /* GL_EXT_color_buffer_half_float */
  642. #ifndef GL_EXT_copy_image
  643. #define GL_EXT_copy_image 1
  644. typedef void (GL_APIENTRYP PFNGLCOPYIMAGESUBDATAEXTPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
  645. #ifdef GL_GLEXT_PROTOTYPES
  646. GL_APICALL void GL_APIENTRY glCopyImageSubDataEXT (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
  647. #endif
  648. #endif /* GL_EXT_copy_image */
  649. #ifndef GL_EXT_debug_label
  650. #define GL_EXT_debug_label 1
  651. #define GL_PROGRAM_PIPELINE_OBJECT_EXT 0x8A4F
  652. #define GL_PROGRAM_OBJECT_EXT 0x8B40
  653. #define GL_SHADER_OBJECT_EXT 0x8B48
  654. #define GL_BUFFER_OBJECT_EXT 0x9151
  655. #define GL_QUERY_OBJECT_EXT 0x9153
  656. #define GL_VERTEX_ARRAY_OBJECT_EXT 0x9154
  657. #define GL_TRANSFORM_FEEDBACK 0x8E22
  658. typedef void (GL_APIENTRYP PFNGLLABELOBJECTEXTPROC) (GLenum type, GLuint object, GLsizei length, const GLchar *label);
  659. typedef void (GL_APIENTRYP PFNGLGETOBJECTLABELEXTPROC) (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
  660. #ifdef GL_GLEXT_PROTOTYPES
  661. GL_APICALL void GL_APIENTRY glLabelObjectEXT (GLenum type, GLuint object, GLsizei length, const GLchar *label);
  662. GL_APICALL void GL_APIENTRY glGetObjectLabelEXT (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
  663. #endif
  664. #endif /* GL_EXT_debug_label */
  665. #ifndef GL_EXT_debug_marker
  666. #define GL_EXT_debug_marker 1
  667. typedef void (GL_APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar *marker);
  668. typedef void (GL_APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar *marker);
  669. typedef void (GL_APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void);
  670. #ifdef GL_GLEXT_PROTOTYPES
  671. GL_APICALL void GL_APIENTRY glInsertEventMarkerEXT (GLsizei length, const GLchar *marker);
  672. GL_APICALL void GL_APIENTRY glPushGroupMarkerEXT (GLsizei length, const GLchar *marker);
  673. GL_APICALL void GL_APIENTRY glPopGroupMarkerEXT (void);
  674. #endif
  675. #endif /* GL_EXT_debug_marker */
  676. #ifndef GL_EXT_discard_framebuffer
  677. #define GL_EXT_discard_framebuffer 1
  678. #define GL_COLOR_EXT 0x1800
  679. #define GL_DEPTH_EXT 0x1801
  680. #define GL_STENCIL_EXT 0x1802
  681. typedef void (GL_APIENTRYP PFNGLDISCARDFRAMEBUFFEREXTPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
  682. #ifdef GL_GLEXT_PROTOTYPES
  683. GL_APICALL void GL_APIENTRY glDiscardFramebufferEXT (GLenum target, GLsizei numAttachments, const GLenum *attachments);
  684. #endif
  685. #endif /* GL_EXT_discard_framebuffer */
  686. #ifndef GL_EXT_disjoint_timer_query
  687. #define GL_EXT_disjoint_timer_query 1
  688. #define GL_QUERY_COUNTER_BITS_EXT 0x8864
  689. #define GL_CURRENT_QUERY_EXT 0x8865
  690. #define GL_QUERY_RESULT_EXT 0x8866
  691. #define GL_QUERY_RESULT_AVAILABLE_EXT 0x8867
  692. #define GL_TIME_ELAPSED_EXT 0x88BF
  693. #define GL_TIMESTAMP_EXT 0x8E28
  694. #define GL_GPU_DISJOINT_EXT 0x8FBB
  695. typedef void (GL_APIENTRYP PFNGLGENQUERIESEXTPROC) (GLsizei n, GLuint *ids);
  696. typedef void (GL_APIENTRYP PFNGLDELETEQUERIESEXTPROC) (GLsizei n, const GLuint *ids);
  697. typedef GLboolean (GL_APIENTRYP PFNGLISQUERYEXTPROC) (GLuint id);
  698. typedef void (GL_APIENTRYP PFNGLBEGINQUERYEXTPROC) (GLenum target, GLuint id);
  699. typedef void (GL_APIENTRYP PFNGLENDQUERYEXTPROC) (GLenum target);
  700. typedef void (GL_APIENTRYP PFNGLQUERYCOUNTEREXTPROC) (GLuint id, GLenum target);
  701. typedef void (GL_APIENTRYP PFNGLGETQUERYIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
  702. typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTIVEXTPROC) (GLuint id, GLenum pname, GLint *params);
  703. typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTUIVEXTPROC) (GLuint id, GLenum pname, GLuint *params);
  704. typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64 *params);
  705. typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64 *params);
  706. #ifdef GL_GLEXT_PROTOTYPES
  707. GL_APICALL void GL_APIENTRY glGenQueriesEXT (GLsizei n, GLuint *ids);
  708. GL_APICALL void GL_APIENTRY glDeleteQueriesEXT (GLsizei n, const GLuint *ids);
  709. GL_APICALL GLboolean GL_APIENTRY glIsQueryEXT (GLuint id);
  710. GL_APICALL void GL_APIENTRY glBeginQueryEXT (GLenum target, GLuint id);
  711. GL_APICALL void GL_APIENTRY glEndQueryEXT (GLenum target);
  712. GL_APICALL void GL_APIENTRY glQueryCounterEXT (GLuint id, GLenum target);
  713. GL_APICALL void GL_APIENTRY glGetQueryivEXT (GLenum target, GLenum pname, GLint *params);
  714. GL_APICALL void GL_APIENTRY glGetQueryObjectivEXT (GLuint id, GLenum pname, GLint *params);
  715. GL_APICALL void GL_APIENTRY glGetQueryObjectuivEXT (GLuint id, GLenum pname, GLuint *params);
  716. GL_APICALL void GL_APIENTRY glGetQueryObjecti64vEXT (GLuint id, GLenum pname, GLint64 *params);
  717. GL_APICALL void GL_APIENTRY glGetQueryObjectui64vEXT (GLuint id, GLenum pname, GLuint64 *params);
  718. #endif
  719. #endif /* GL_EXT_disjoint_timer_query */
  720. #ifndef GL_EXT_draw_buffers
  721. #define GL_EXT_draw_buffers 1
  722. #define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8CDF
  723. #define GL_MAX_DRAW_BUFFERS_EXT 0x8824
  724. #define GL_DRAW_BUFFER0_EXT 0x8825
  725. #define GL_DRAW_BUFFER1_EXT 0x8826
  726. #define GL_DRAW_BUFFER2_EXT 0x8827
  727. #define GL_DRAW_BUFFER3_EXT 0x8828
  728. #define GL_DRAW_BUFFER4_EXT 0x8829
  729. #define GL_DRAW_BUFFER5_EXT 0x882A
  730. #define GL_DRAW_BUFFER6_EXT 0x882B
  731. #define GL_DRAW_BUFFER7_EXT 0x882C
  732. #define GL_DRAW_BUFFER8_EXT 0x882D
  733. #define GL_DRAW_BUFFER9_EXT 0x882E
  734. #define GL_DRAW_BUFFER10_EXT 0x882F
  735. #define GL_DRAW_BUFFER11_EXT 0x8830
  736. #define GL_DRAW_BUFFER12_EXT 0x8831
  737. #define GL_DRAW_BUFFER13_EXT 0x8832
  738. #define GL_DRAW_BUFFER14_EXT 0x8833
  739. #define GL_DRAW_BUFFER15_EXT 0x8834
  740. #define GL_COLOR_ATTACHMENT0_EXT 0x8CE0
  741. #define GL_COLOR_ATTACHMENT1_EXT 0x8CE1
  742. #define GL_COLOR_ATTACHMENT2_EXT 0x8CE2
  743. #define GL_COLOR_ATTACHMENT3_EXT 0x8CE3
  744. #define GL_COLOR_ATTACHMENT4_EXT 0x8CE4
  745. #define GL_COLOR_ATTACHMENT5_EXT 0x8CE5
  746. #define GL_COLOR_ATTACHMENT6_EXT 0x8CE6
  747. #define GL_COLOR_ATTACHMENT7_EXT 0x8CE7
  748. #define GL_COLOR_ATTACHMENT8_EXT 0x8CE8
  749. #define GL_COLOR_ATTACHMENT9_EXT 0x8CE9
  750. #define GL_COLOR_ATTACHMENT10_EXT 0x8CEA
  751. #define GL_COLOR_ATTACHMENT11_EXT 0x8CEB
  752. #define GL_COLOR_ATTACHMENT12_EXT 0x8CEC
  753. #define GL_COLOR_ATTACHMENT13_EXT 0x8CED
  754. #define GL_COLOR_ATTACHMENT14_EXT 0x8CEE
  755. #define GL_COLOR_ATTACHMENT15_EXT 0x8CEF
  756. typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSEXTPROC) (GLsizei n, const GLenum *bufs);
  757. #ifdef GL_GLEXT_PROTOTYPES
  758. GL_APICALL void GL_APIENTRY glDrawBuffersEXT (GLsizei n, const GLenum *bufs);
  759. #endif
  760. #endif /* GL_EXT_draw_buffers */
  761. #ifndef GL_EXT_draw_buffers_indexed
  762. #define GL_EXT_draw_buffers_indexed 1
  763. #define GL_MIN 0x8007
  764. #define GL_MAX 0x8008
  765. typedef void (GL_APIENTRYP PFNGLENABLEIEXTPROC) (GLenum target, GLuint index);
  766. typedef void (GL_APIENTRYP PFNGLDISABLEIEXTPROC) (GLenum target, GLuint index);
  767. typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONIEXTPROC) (GLuint buf, GLenum mode);
  768. typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEIEXTPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  769. typedef void (GL_APIENTRYP PFNGLBLENDFUNCIEXTPROC) (GLuint buf, GLenum src, GLenum dst);
  770. typedef void (GL_APIENTRYP PFNGLBLENDFUNCSEPARATEIEXTPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  771. typedef void (GL_APIENTRYP PFNGLCOLORMASKIEXTPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
  772. typedef GLboolean (GL_APIENTRYP PFNGLISENABLEDIEXTPROC) (GLenum target, GLuint index);
  773. #ifdef GL_GLEXT_PROTOTYPES
  774. GL_APICALL void GL_APIENTRY glEnableiEXT (GLenum target, GLuint index);
  775. GL_APICALL void GL_APIENTRY glDisableiEXT (GLenum target, GLuint index);
  776. GL_APICALL void GL_APIENTRY glBlendEquationiEXT (GLuint buf, GLenum mode);
  777. GL_APICALL void GL_APIENTRY glBlendEquationSeparateiEXT (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  778. GL_APICALL void GL_APIENTRY glBlendFunciEXT (GLuint buf, GLenum src, GLenum dst);
  779. GL_APICALL void GL_APIENTRY glBlendFuncSeparateiEXT (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  780. GL_APICALL void GL_APIENTRY glColorMaskiEXT (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
  781. GL_APICALL GLboolean GL_APIENTRY glIsEnablediEXT (GLenum target, GLuint index);
  782. #endif
  783. #endif /* GL_EXT_draw_buffers_indexed */
  784. #ifndef GL_EXT_draw_instanced
  785. #define GL_EXT_draw_instanced 1
  786. typedef void (GL_APIENTRYP PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
  787. typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
  788. #ifdef GL_GLEXT_PROTOTYPES
  789. GL_APICALL void GL_APIENTRY glDrawArraysInstancedEXT (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
  790. GL_APICALL void GL_APIENTRY glDrawElementsInstancedEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
  791. #endif
  792. #endif /* GL_EXT_draw_instanced */
  793. #ifndef GL_EXT_geometry_shader
  794. #define GL_EXT_geometry_shader 1
  795. #define GL_GEOMETRY_SHADER_EXT 0x8DD9
  796. #define GL_GEOMETRY_SHADER_BIT_EXT 0x00000004
  797. #define GL_GEOMETRY_LINKED_VERTICES_OUT_EXT 0x8916
  798. #define GL_GEOMETRY_LINKED_INPUT_TYPE_EXT 0x8917
  799. #define GL_GEOMETRY_LINKED_OUTPUT_TYPE_EXT 0x8918
  800. #define GL_GEOMETRY_SHADER_INVOCATIONS_EXT 0x887F
  801. #define GL_LAYER_PROVOKING_VERTEX_EXT 0x825E
  802. #define GL_LINES_ADJACENCY_EXT 0x000A
  803. #define GL_LINE_STRIP_ADJACENCY_EXT 0x000B
  804. #define GL_TRIANGLES_ADJACENCY_EXT 0x000C
  805. #define GL_TRIANGLE_STRIP_ADJACENCY_EXT 0x000D
  806. #define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8DDF
  807. #define GL_MAX_GEOMETRY_UNIFORM_BLOCKS_EXT 0x8A2C
  808. #define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8A32
  809. #define GL_MAX_GEOMETRY_INPUT_COMPONENTS_EXT 0x9123
  810. #define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS_EXT 0x9124
  811. #define GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT 0x8DE0
  812. #define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT 0x8DE1
  813. #define GL_MAX_GEOMETRY_SHADER_INVOCATIONS_EXT 0x8E5A
  814. #define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT 0x8C29
  815. #define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS_EXT 0x92CF
  816. #define GL_MAX_GEOMETRY_ATOMIC_COUNTERS_EXT 0x92D5
  817. #define GL_MAX_GEOMETRY_IMAGE_UNIFORMS_EXT 0x90CD
  818. #define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS_EXT 0x90D7
  819. #define GL_FIRST_VERTEX_CONVENTION_EXT 0x8E4D
  820. #define GL_LAST_VERTEX_CONVENTION_EXT 0x8E4E
  821. #define GL_UNDEFINED_VERTEX_EXT 0x8260
  822. #define GL_PRIMITIVES_GENERATED_EXT 0x8C87
  823. #define GL_FRAMEBUFFER_DEFAULT_LAYERS_EXT 0x9312
  824. #define GL_MAX_FRAMEBUFFER_LAYERS_EXT 0x9317
  825. #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT 0x8DA8
  826. #define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT 0x8DA7
  827. #define GL_REFERENCED_BY_GEOMETRY_SHADER_EXT 0x9309
  828. typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTUREEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
  829. #ifdef GL_GLEXT_PROTOTYPES
  830. GL_APICALL void GL_APIENTRY glFramebufferTextureEXT (GLenum target, GLenum attachment, GLuint texture, GLint level);
  831. #endif
  832. #endif /* GL_EXT_geometry_shader */
  833. #ifndef GL_EXT_gpu_shader5
  834. #define GL_EXT_gpu_shader5 1
  835. #endif /* GL_EXT_gpu_shader5 */
  836. #ifndef GL_EXT_instanced_arrays
  837. #define GL_EXT_instanced_arrays 1
  838. #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_EXT 0x88FE
  839. typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBDIVISOREXTPROC) (GLuint index, GLuint divisor);
  840. #ifdef GL_GLEXT_PROTOTYPES
  841. GL_APICALL void GL_APIENTRY glVertexAttribDivisorEXT (GLuint index, GLuint divisor);
  842. #endif
  843. #endif /* GL_EXT_instanced_arrays */
  844. #ifndef GL_EXT_map_buffer_range
  845. #define GL_EXT_map_buffer_range 1
  846. #define GL_MAP_READ_BIT_EXT 0x0001
  847. #define GL_MAP_WRITE_BIT_EXT 0x0002
  848. #define GL_MAP_INVALIDATE_RANGE_BIT_EXT 0x0004
  849. #define GL_MAP_INVALIDATE_BUFFER_BIT_EXT 0x0008
  850. #define GL_MAP_FLUSH_EXPLICIT_BIT_EXT 0x0010
  851. #define GL_MAP_UNSYNCHRONIZED_BIT_EXT 0x0020
  852. typedef void *(GL_APIENTRYP PFNGLMAPBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
  853. typedef void (GL_APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
  854. #ifdef GL_GLEXT_PROTOTYPES
  855. GL_APICALL void *GL_APIENTRY glMapBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
  856. GL_APICALL void GL_APIENTRY glFlushMappedBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length);
  857. #endif
  858. #endif /* GL_EXT_map_buffer_range */
  859. #ifndef GL_EXT_multi_draw_arrays
  860. #define GL_EXT_multi_draw_arrays 1
  861. typedef void (GL_APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
  862. typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount);
  863. #ifdef GL_GLEXT_PROTOTYPES
  864. GL_APICALL void GL_APIENTRY glMultiDrawArraysEXT (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
  865. GL_APICALL void GL_APIENTRY glMultiDrawElementsEXT (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount);
  866. #endif
  867. #endif /* GL_EXT_multi_draw_arrays */
  868. #ifndef GL_EXT_multisampled_render_to_texture
  869. #define GL_EXT_multisampled_render_to_texture 1
  870. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT 0x8D6C
  871. #define GL_RENDERBUFFER_SAMPLES_EXT 0x8CAB
  872. #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56
  873. #define GL_MAX_SAMPLES_EXT 0x8D57
  874. typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  875. typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
  876. #ifdef GL_GLEXT_PROTOTYPES
  877. GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  878. GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
  879. #endif
  880. #endif /* GL_EXT_multisampled_render_to_texture */
  881. #ifndef GL_EXT_multiview_draw_buffers
  882. #define GL_EXT_multiview_draw_buffers 1
  883. #define GL_COLOR_ATTACHMENT_EXT 0x90F0
  884. #define GL_MULTIVIEW_EXT 0x90F1
  885. #define GL_DRAW_BUFFER_EXT 0x0C01
  886. #define GL_READ_BUFFER_EXT 0x0C02
  887. #define GL_MAX_MULTIVIEW_BUFFERS_EXT 0x90F2
  888. typedef void (GL_APIENTRYP PFNGLREADBUFFERINDEXEDEXTPROC) (GLenum src, GLint index);
  889. typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSINDEXEDEXTPROC) (GLint n, const GLenum *location, const GLint *indices);
  890. typedef void (GL_APIENTRYP PFNGLGETINTEGERI_VEXTPROC) (GLenum target, GLuint index, GLint *data);
  891. #ifdef GL_GLEXT_PROTOTYPES
  892. GL_APICALL void GL_APIENTRY glReadBufferIndexedEXT (GLenum src, GLint index);
  893. GL_APICALL void GL_APIENTRY glDrawBuffersIndexedEXT (GLint n, const GLenum *location, const GLint *indices);
  894. GL_APICALL void GL_APIENTRY glGetIntegeri_vEXT (GLenum target, GLuint index, GLint *data);
  895. #endif
  896. #endif /* GL_EXT_multiview_draw_buffers */
  897. #ifndef GL_EXT_occlusion_query_boolean
  898. #define GL_EXT_occlusion_query_boolean 1
  899. #define GL_ANY_SAMPLES_PASSED_EXT 0x8C2F
  900. #define GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT 0x8D6A
  901. #endif /* GL_EXT_occlusion_query_boolean */
  902. #ifndef GL_EXT_primitive_bounding_box
  903. #define GL_EXT_primitive_bounding_box 1
  904. #define GL_PRIMITIVE_BOUNDING_BOX_EXT 0x92BE
  905. typedef void (GL_APIENTRYP PFNGLPRIMITIVEBOUNDINGBOXEXTPROC) (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW);
  906. #ifdef GL_GLEXT_PROTOTYPES
  907. GL_APICALL void GL_APIENTRY glPrimitiveBoundingBoxEXT (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW);
  908. #endif
  909. #endif /* GL_EXT_primitive_bounding_box */
  910. #ifndef GL_EXT_pvrtc_sRGB
  911. #define GL_EXT_pvrtc_sRGB 1
  912. #define GL_COMPRESSED_SRGB_PVRTC_2BPPV1_EXT 0x8A54
  913. #define GL_COMPRESSED_SRGB_PVRTC_4BPPV1_EXT 0x8A55
  914. #define GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV1_EXT 0x8A56
  915. #define GL_COMPRESSED_SRGB_ALPHA_PVRTC_4BPPV1_EXT 0x8A57
  916. #define GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV2_IMG 0x93F0
  917. #define GL_COMPRESSED_SRGB_ALPHA_PVRTC_4BPPV2_IMG 0x93F1
  918. #endif /* GL_EXT_pvrtc_sRGB */
  919. #ifndef GL_EXT_read_format_bgra
  920. #define GL_EXT_read_format_bgra 1
  921. #define GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT 0x8365
  922. #define GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT 0x8366
  923. #endif /* GL_EXT_read_format_bgra */
  924. #ifndef GL_EXT_robustness
  925. #define GL_EXT_robustness 1
  926. #define GL_GUILTY_CONTEXT_RESET_EXT 0x8253
  927. #define GL_INNOCENT_CONTEXT_RESET_EXT 0x8254
  928. #define GL_UNKNOWN_CONTEXT_RESET_EXT 0x8255
  929. #define GL_CONTEXT_ROBUST_ACCESS_EXT 0x90F3
  930. #define GL_RESET_NOTIFICATION_STRATEGY_EXT 0x8256
  931. #define GL_LOSE_CONTEXT_ON_RESET_EXT 0x8252
  932. #define GL_NO_RESET_NOTIFICATION_EXT 0x8261
  933. typedef GLenum (GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSEXTPROC) (void);
  934. typedef void (GL_APIENTRYP PFNGLREADNPIXELSEXTPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
  935. typedef void (GL_APIENTRYP PFNGLGETNUNIFORMFVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
  936. typedef void (GL_APIENTRYP PFNGLGETNUNIFORMIVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
  937. #ifdef GL_GLEXT_PROTOTYPES
  938. GL_APICALL GLenum GL_APIENTRY glGetGraphicsResetStatusEXT (void);
  939. GL_APICALL void GL_APIENTRY glReadnPixelsEXT (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
  940. GL_APICALL void GL_APIENTRY glGetnUniformfvEXT (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
  941. GL_APICALL void GL_APIENTRY glGetnUniformivEXT (GLuint program, GLint location, GLsizei bufSize, GLint *params);
  942. #endif
  943. #endif /* GL_EXT_robustness */
  944. #ifndef GL_EXT_sRGB
  945. #define GL_EXT_sRGB 1
  946. #define GL_SRGB_EXT 0x8C40
  947. #define GL_SRGB_ALPHA_EXT 0x8C42
  948. #define GL_SRGB8_ALPHA8_EXT 0x8C43
  949. #define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT 0x8210
  950. #endif /* GL_EXT_sRGB */
  951. #ifndef GL_EXT_sRGB_write_control
  952. #define GL_EXT_sRGB_write_control 1
  953. #define GL_FRAMEBUFFER_SRGB_EXT 0x8DB9
  954. #endif /* GL_EXT_sRGB_write_control */
  955. #ifndef GL_EXT_separate_shader_objects
  956. #define GL_EXT_separate_shader_objects 1
  957. #define GL_ACTIVE_PROGRAM_EXT 0x8259
  958. #define GL_VERTEX_SHADER_BIT_EXT 0x00000001
  959. #define GL_FRAGMENT_SHADER_BIT_EXT 0x00000002
  960. #define GL_ALL_SHADER_BITS_EXT 0xFFFFFFFF
  961. #define GL_PROGRAM_SEPARABLE_EXT 0x8258
  962. #define GL_PROGRAM_PIPELINE_BINDING_EXT 0x825A
  963. typedef void (GL_APIENTRYP PFNGLACTIVESHADERPROGRAMEXTPROC) (GLuint pipeline, GLuint program);
  964. typedef void (GL_APIENTRYP PFNGLBINDPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
  965. typedef GLuint (GL_APIENTRYP PFNGLCREATESHADERPROGRAMVEXTPROC) (GLenum type, GLsizei count, const GLchar **strings);
  966. typedef void (GL_APIENTRYP PFNGLDELETEPROGRAMPIPELINESEXTPROC) (GLsizei n, const GLuint *pipelines);
  967. typedef void (GL_APIENTRYP PFNGLGENPROGRAMPIPELINESEXTPROC) (GLsizei n, GLuint *pipelines);
  968. typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGEXTPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  969. typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEIVEXTPROC) (GLuint pipeline, GLenum pname, GLint *params);
  970. typedef GLboolean (GL_APIENTRYP PFNGLISPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
  971. typedef void (GL_APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value);
  972. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat v0);
  973. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  974. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint v0);
  975. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  976. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
  977. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  978. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1);
  979. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  980. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
  981. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  982. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
  983. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  984. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
  985. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  986. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
  987. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  988. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  989. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  990. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  991. typedef void (GL_APIENTRYP PFNGLUSEPROGRAMSTAGESEXTPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
  992. typedef void (GL_APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
  993. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1UIEXTPROC) (GLuint program, GLint location, GLuint v0);
  994. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
  995. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
  996. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
  997. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
  998. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
  999. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
  1000. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
  1001. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1002. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1003. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1004. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1005. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1006. typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1007. #ifdef GL_GLEXT_PROTOTYPES
  1008. GL_APICALL void GL_APIENTRY glActiveShaderProgramEXT (GLuint pipeline, GLuint program);
  1009. GL_APICALL void GL_APIENTRY glBindProgramPipelineEXT (GLuint pipeline);
  1010. GL_APICALL GLuint GL_APIENTRY glCreateShaderProgramvEXT (GLenum type, GLsizei count, const GLchar **strings);
  1011. GL_APICALL void GL_APIENTRY glDeleteProgramPipelinesEXT (GLsizei n, const GLuint *pipelines);
  1012. GL_APICALL void GL_APIENTRY glGenProgramPipelinesEXT (GLsizei n, GLuint *pipelines);
  1013. GL_APICALL void GL_APIENTRY glGetProgramPipelineInfoLogEXT (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  1014. GL_APICALL void GL_APIENTRY glGetProgramPipelineivEXT (GLuint pipeline, GLenum pname, GLint *params);
  1015. GL_APICALL GLboolean GL_APIENTRY glIsProgramPipelineEXT (GLuint pipeline);
  1016. GL_APICALL void GL_APIENTRY glProgramParameteriEXT (GLuint program, GLenum pname, GLint value);
  1017. GL_APICALL void GL_APIENTRY glProgramUniform1fEXT (GLuint program, GLint location, GLfloat v0);
  1018. GL_APICALL void GL_APIENTRY glProgramUniform1fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1019. GL_APICALL void GL_APIENTRY glProgramUniform1iEXT (GLuint program, GLint location, GLint v0);
  1020. GL_APICALL void GL_APIENTRY glProgramUniform1ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
  1021. GL_APICALL void GL_APIENTRY glProgramUniform2fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1);
  1022. GL_APICALL void GL_APIENTRY glProgramUniform2fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1023. GL_APICALL void GL_APIENTRY glProgramUniform2iEXT (GLuint program, GLint location, GLint v0, GLint v1);
  1024. GL_APICALL void GL_APIENTRY glProgramUniform2ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
  1025. GL_APICALL void GL_APIENTRY glProgramUniform3fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
  1026. GL_APICALL void GL_APIENTRY glProgramUniform3fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1027. GL_APICALL void GL_APIENTRY glProgramUniform3iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
  1028. GL_APICALL void GL_APIENTRY glProgramUniform3ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
  1029. GL_APICALL void GL_APIENTRY glProgramUniform4fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
  1030. GL_APICALL void GL_APIENTRY glProgramUniform4fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1031. GL_APICALL void GL_APIENTRY glProgramUniform4iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
  1032. GL_APICALL void GL_APIENTRY glProgramUniform4ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
  1033. GL_APICALL void GL_APIENTRY glProgramUniformMatrix2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1034. GL_APICALL void GL_APIENTRY glProgramUniformMatrix3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1035. GL_APICALL void GL_APIENTRY glProgramUniformMatrix4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1036. GL_APICALL void GL_APIENTRY glUseProgramStagesEXT (GLuint pipeline, GLbitfield stages, GLuint program);
  1037. GL_APICALL void GL_APIENTRY glValidateProgramPipelineEXT (GLuint pipeline);
  1038. GL_APICALL void GL_APIENTRY glProgramUniform1uiEXT (GLuint program, GLint location, GLuint v0);
  1039. GL_APICALL void GL_APIENTRY glProgramUniform2uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1);
  1040. GL_APICALL void GL_APIENTRY glProgramUniform3uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
  1041. GL_APICALL void GL_APIENTRY glProgramUniform4uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
  1042. GL_APICALL void GL_APIENTRY glProgramUniform1uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
  1043. GL_APICALL void GL_APIENTRY glProgramUniform2uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
  1044. GL_APICALL void GL_APIENTRY glProgramUniform3uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
  1045. GL_APICALL void GL_APIENTRY glProgramUniform4uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
  1046. GL_APICALL void GL_APIENTRY glProgramUniformMatrix2x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1047. GL_APICALL void GL_APIENTRY glProgramUniformMatrix3x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1048. GL_APICALL void GL_APIENTRY glProgramUniformMatrix2x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1049. GL_APICALL void GL_APIENTRY glProgramUniformMatrix4x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1050. GL_APICALL void GL_APIENTRY glProgramUniformMatrix3x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1051. GL_APICALL void GL_APIENTRY glProgramUniformMatrix4x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1052. #endif
  1053. #endif /* GL_EXT_separate_shader_objects */
  1054. #ifndef GL_EXT_shader_framebuffer_fetch
  1055. #define GL_EXT_shader_framebuffer_fetch 1
  1056. #define GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT 0x8A52
  1057. #endif /* GL_EXT_shader_framebuffer_fetch */
  1058. #ifndef GL_EXT_shader_implicit_conversions
  1059. #define GL_EXT_shader_implicit_conversions 1
  1060. #endif /* GL_EXT_shader_implicit_conversions */
  1061. #ifndef GL_EXT_shader_integer_mix
  1062. #define GL_EXT_shader_integer_mix 1
  1063. #endif /* GL_EXT_shader_integer_mix */
  1064. #ifndef GL_EXT_shader_io_blocks
  1065. #define GL_EXT_shader_io_blocks 1
  1066. #endif /* GL_EXT_shader_io_blocks */
  1067. #ifndef GL_EXT_shader_pixel_local_storage
  1068. #define GL_EXT_shader_pixel_local_storage 1
  1069. #define GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE_EXT 0x8F63
  1070. #define GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_SIZE_EXT 0x8F67
  1071. #define GL_SHADER_PIXEL_LOCAL_STORAGE_EXT 0x8F64
  1072. #endif /* GL_EXT_shader_pixel_local_storage */
  1073. #ifndef GL_EXT_shader_texture_lod
  1074. #define GL_EXT_shader_texture_lod 1
  1075. #endif /* GL_EXT_shader_texture_lod */
  1076. #ifndef GL_EXT_shadow_samplers
  1077. #define GL_EXT_shadow_samplers 1
  1078. #define GL_TEXTURE_COMPARE_MODE_EXT 0x884C
  1079. #define GL_TEXTURE_COMPARE_FUNC_EXT 0x884D
  1080. #define GL_COMPARE_REF_TO_TEXTURE_EXT 0x884E
  1081. #define GL_SAMPLER_2D_SHADOW_EXT 0x8B62
  1082. #endif /* GL_EXT_shadow_samplers */
  1083. #ifndef GL_EXT_tessellation_shader
  1084. #define GL_EXT_tessellation_shader 1
  1085. #define GL_PATCHES_EXT 0x000E
  1086. #define GL_PATCH_VERTICES_EXT 0x8E72
  1087. #define GL_TESS_CONTROL_OUTPUT_VERTICES_EXT 0x8E75
  1088. #define GL_TESS_GEN_MODE_EXT 0x8E76
  1089. #define GL_TESS_GEN_SPACING_EXT 0x8E77
  1090. #define GL_TESS_GEN_VERTEX_ORDER_EXT 0x8E78
  1091. #define GL_TESS_GEN_POINT_MODE_EXT 0x8E79
  1092. #define GL_ISOLINES_EXT 0x8E7A
  1093. #define GL_QUADS_EXT 0x0007
  1094. #define GL_FRACTIONAL_ODD_EXT 0x8E7B
  1095. #define GL_FRACTIONAL_EVEN_EXT 0x8E7C
  1096. #define GL_MAX_PATCH_VERTICES_EXT 0x8E7D
  1097. #define GL_MAX_TESS_GEN_LEVEL_EXT 0x8E7E
  1098. #define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS_EXT 0x8E7F
  1099. #define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS_EXT 0x8E80
  1100. #define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS_EXT 0x8E81
  1101. #define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS_EXT 0x8E82
  1102. #define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS_EXT 0x8E83
  1103. #define GL_MAX_TESS_PATCH_COMPONENTS_EXT 0x8E84
  1104. #define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS_EXT 0x8E85
  1105. #define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS_EXT 0x8E86
  1106. #define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS_EXT 0x8E89
  1107. #define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS_EXT 0x8E8A
  1108. #define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS_EXT 0x886C
  1109. #define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS_EXT 0x886D
  1110. #define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS_EXT 0x8E1E
  1111. #define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS_EXT 0x8E1F
  1112. #define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS_EXT 0x92CD
  1113. #define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS_EXT 0x92CE
  1114. #define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS_EXT 0x92D3
  1115. #define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS_EXT 0x92D4
  1116. #define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS_EXT 0x90CB
  1117. #define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS_EXT 0x90CC
  1118. #define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS_EXT 0x90D8
  1119. #define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS_EXT 0x90D9
  1120. #define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221
  1121. #define GL_IS_PER_PATCH_EXT 0x92E7
  1122. #define GL_REFERENCED_BY_TESS_CONTROL_SHADER_EXT 0x9307
  1123. #define GL_REFERENCED_BY_TESS_EVALUATION_SHADER_EXT 0x9308
  1124. #define GL_TESS_CONTROL_SHADER_EXT 0x8E88
  1125. #define GL_TESS_EVALUATION_SHADER_EXT 0x8E87
  1126. #define GL_TESS_CONTROL_SHADER_BIT_EXT 0x00000008
  1127. #define GL_TESS_EVALUATION_SHADER_BIT_EXT 0x00000010
  1128. typedef void (GL_APIENTRYP PFNGLPATCHPARAMETERIEXTPROC) (GLenum pname, GLint value);
  1129. #ifdef GL_GLEXT_PROTOTYPES
  1130. GL_APICALL void GL_APIENTRY glPatchParameteriEXT (GLenum pname, GLint value);
  1131. #endif
  1132. #endif /* GL_EXT_tessellation_shader */
  1133. #ifndef GL_EXT_texture_border_clamp
  1134. #define GL_EXT_texture_border_clamp 1
  1135. #define GL_TEXTURE_BORDER_COLOR_EXT 0x1004
  1136. #define GL_CLAMP_TO_BORDER_EXT 0x812D
  1137. typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
  1138. typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, const GLuint *params);
  1139. typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
  1140. typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, GLuint *params);
  1141. typedef void (GL_APIENTRYP PFNGLSAMPLERPARAMETERIIVEXTPROC) (GLuint sampler, GLenum pname, const GLint *param);
  1142. typedef void (GL_APIENTRYP PFNGLSAMPLERPARAMETERIUIVEXTPROC) (GLuint sampler, GLenum pname, const GLuint *param);
  1143. typedef void (GL_APIENTRYP PFNGLGETSAMPLERPARAMETERIIVEXTPROC) (GLuint sampler, GLenum pname, GLint *params);
  1144. typedef void (GL_APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVEXTPROC) (GLuint sampler, GLenum pname, GLuint *params);
  1145. #ifdef GL_GLEXT_PROTOTYPES
  1146. GL_APICALL void GL_APIENTRY glTexParameterIivEXT (GLenum target, GLenum pname, const GLint *params);
  1147. GL_APICALL void GL_APIENTRY glTexParameterIuivEXT (GLenum target, GLenum pname, const GLuint *params);
  1148. GL_APICALL void GL_APIENTRY glGetTexParameterIivEXT (GLenum target, GLenum pname, GLint *params);
  1149. GL_APICALL void GL_APIENTRY glGetTexParameterIuivEXT (GLenum target, GLenum pname, GLuint *params);
  1150. GL_APICALL void GL_APIENTRY glSamplerParameterIivEXT (GLuint sampler, GLenum pname, const GLint *param);
  1151. GL_APICALL void GL_APIENTRY glSamplerParameterIuivEXT (GLuint sampler, GLenum pname, const GLuint *param);
  1152. GL_APICALL void GL_APIENTRY glGetSamplerParameterIivEXT (GLuint sampler, GLenum pname, GLint *params);
  1153. GL_APICALL void GL_APIENTRY glGetSamplerParameterIuivEXT (GLuint sampler, GLenum pname, GLuint *params);
  1154. #endif
  1155. #endif /* GL_EXT_texture_border_clamp */
  1156. #ifndef GL_EXT_texture_buffer
  1157. #define GL_EXT_texture_buffer 1
  1158. #define GL_TEXTURE_BUFFER_EXT 0x8C2A
  1159. #define GL_TEXTURE_BUFFER_BINDING_EXT 0x8C2A
  1160. #define GL_MAX_TEXTURE_BUFFER_SIZE_EXT 0x8C2B
  1161. #define GL_TEXTURE_BINDING_BUFFER_EXT 0x8C2C
  1162. #define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT 0x8C2D
  1163. #define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_EXT 0x919F
  1164. #define GL_SAMPLER_BUFFER_EXT 0x8DC2
  1165. #define GL_INT_SAMPLER_BUFFER_EXT 0x8DD0
  1166. #define GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT 0x8DD8
  1167. #define GL_IMAGE_BUFFER_EXT 0x9051
  1168. #define GL_INT_IMAGE_BUFFER_EXT 0x905C
  1169. #define GL_UNSIGNED_INT_IMAGE_BUFFER_EXT 0x9067
  1170. #define GL_TEXTURE_BUFFER_OFFSET_EXT 0x919D
  1171. #define GL_TEXTURE_BUFFER_SIZE_EXT 0x919E
  1172. typedef void (GL_APIENTRYP PFNGLTEXBUFFEREXTPROC) (GLenum target, GLenum internalformat, GLuint buffer);
  1173. typedef void (GL_APIENTRYP PFNGLTEXBUFFERRANGEEXTPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
  1174. #ifdef GL_GLEXT_PROTOTYPES
  1175. GL_APICALL void GL_APIENTRY glTexBufferEXT (GLenum target, GLenum internalformat, GLuint buffer);
  1176. GL_APICALL void GL_APIENTRY glTexBufferRangeEXT (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
  1177. #endif
  1178. #endif /* GL_EXT_texture_buffer */
  1179. #ifndef GL_EXT_texture_compression_dxt1
  1180. #define GL_EXT_texture_compression_dxt1 1
  1181. #define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
  1182. #define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
  1183. #endif /* GL_EXT_texture_compression_dxt1 */
  1184. #ifndef GL_EXT_texture_compression_s3tc
  1185. #define GL_EXT_texture_compression_s3tc 1
  1186. #define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2
  1187. #define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3
  1188. #endif /* GL_EXT_texture_compression_s3tc */
  1189. #ifndef GL_EXT_texture_cube_map_array
  1190. #define GL_EXT_texture_cube_map_array 1
  1191. #define GL_TEXTURE_CUBE_MAP_ARRAY_EXT 0x9009
  1192. #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_EXT 0x900A
  1193. #define GL_SAMPLER_CUBE_MAP_ARRAY_EXT 0x900C
  1194. #define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_EXT 0x900D
  1195. #define GL_INT_SAMPLER_CUBE_MAP_ARRAY_EXT 0x900E
  1196. #define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_EXT 0x900F
  1197. #define GL_IMAGE_CUBE_MAP_ARRAY_EXT 0x9054
  1198. #define GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x905F
  1199. #define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x906A
  1200. #endif /* GL_EXT_texture_cube_map_array */
  1201. #ifndef GL_EXT_texture_filter_anisotropic
  1202. #define GL_EXT_texture_filter_anisotropic 1
  1203. #define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
  1204. #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
  1205. #endif /* GL_EXT_texture_filter_anisotropic */
  1206. #ifndef GL_EXT_texture_format_BGRA8888
  1207. #define GL_EXT_texture_format_BGRA8888 1
  1208. #endif /* GL_EXT_texture_format_BGRA8888 */
  1209. #ifndef GL_EXT_texture_rg
  1210. #define GL_EXT_texture_rg 1
  1211. #define GL_RED_EXT 0x1903
  1212. #define GL_RG_EXT 0x8227
  1213. #define GL_R8_EXT 0x8229
  1214. #define GL_RG8_EXT 0x822B
  1215. #endif /* GL_EXT_texture_rg */
  1216. #ifndef GL_EXT_texture_sRGB_decode
  1217. #define GL_EXT_texture_sRGB_decode 1
  1218. #define GL_TEXTURE_SRGB_DECODE_EXT 0x8A48
  1219. #define GL_DECODE_EXT 0x8A49
  1220. #define GL_SKIP_DECODE_EXT 0x8A4A
  1221. #endif /* GL_EXT_texture_sRGB_decode */
  1222. #ifndef GL_EXT_texture_storage
  1223. #define GL_EXT_texture_storage 1
  1224. #define GL_TEXTURE_IMMUTABLE_FORMAT_EXT 0x912F
  1225. #define GL_ALPHA8_EXT 0x803C
  1226. #define GL_LUMINANCE8_EXT 0x8040
  1227. #define GL_LUMINANCE8_ALPHA8_EXT 0x8045
  1228. #define GL_RGBA32F_EXT 0x8814
  1229. #define GL_RGB32F_EXT 0x8815
  1230. #define GL_ALPHA32F_EXT 0x8816
  1231. #define GL_LUMINANCE32F_EXT 0x8818
  1232. #define GL_LUMINANCE_ALPHA32F_EXT 0x8819
  1233. #define GL_ALPHA16F_EXT 0x881C
  1234. #define GL_LUMINANCE16F_EXT 0x881E
  1235. #define GL_LUMINANCE_ALPHA16F_EXT 0x881F
  1236. #define GL_R32F_EXT 0x822E
  1237. #define GL_RG32F_EXT 0x8230
  1238. typedef void (GL_APIENTRYP PFNGLTEXSTORAGE1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  1239. typedef void (GL_APIENTRYP PFNGLTEXSTORAGE2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  1240. typedef void (GL_APIENTRYP PFNGLTEXSTORAGE3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  1241. typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  1242. typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  1243. typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  1244. #ifdef GL_GLEXT_PROTOTYPES
  1245. GL_APICALL void GL_APIENTRY glTexStorage1DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  1246. GL_APICALL void GL_APIENTRY glTexStorage2DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  1247. GL_APICALL void GL_APIENTRY glTexStorage3DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  1248. GL_APICALL void GL_APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  1249. GL_APICALL void GL_APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  1250. GL_APICALL void GL_APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  1251. #endif
  1252. #endif /* GL_EXT_texture_storage */
  1253. #ifndef GL_EXT_texture_type_2_10_10_10_REV
  1254. #define GL_EXT_texture_type_2_10_10_10_REV 1
  1255. #define GL_UNSIGNED_INT_2_10_10_10_REV_EXT 0x8368
  1256. #endif /* GL_EXT_texture_type_2_10_10_10_REV */
  1257. #ifndef GL_EXT_texture_view
  1258. #define GL_EXT_texture_view 1
  1259. #define GL_TEXTURE_VIEW_MIN_LEVEL_EXT 0x82DB
  1260. #define GL_TEXTURE_VIEW_NUM_LEVELS_EXT 0x82DC
  1261. #define GL_TEXTURE_VIEW_MIN_LAYER_EXT 0x82DD
  1262. #define GL_TEXTURE_VIEW_NUM_LAYERS_EXT 0x82DE
  1263. #define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF
  1264. typedef void (GL_APIENTRYP PFNGLTEXTUREVIEWEXTPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
  1265. #ifdef GL_GLEXT_PROTOTYPES
  1266. GL_APICALL void GL_APIENTRY glTextureViewEXT (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
  1267. #endif
  1268. #endif /* GL_EXT_texture_view */
  1269. #ifndef GL_EXT_unpack_subimage
  1270. #define GL_EXT_unpack_subimage 1
  1271. #define GL_UNPACK_ROW_LENGTH_EXT 0x0CF2
  1272. #define GL_UNPACK_SKIP_ROWS_EXT 0x0CF3
  1273. #define GL_UNPACK_SKIP_PIXELS_EXT 0x0CF4
  1274. #endif /* GL_EXT_unpack_subimage */
  1275. #ifndef GL_FJ_shader_binary_GCCSO
  1276. #define GL_FJ_shader_binary_GCCSO 1
  1277. #define GL_GCCSO_SHADER_BINARY_FJ 0x9260
  1278. #endif /* GL_FJ_shader_binary_GCCSO */
  1279. #ifndef GL_IMG_multisampled_render_to_texture
  1280. #define GL_IMG_multisampled_render_to_texture 1
  1281. #define GL_RENDERBUFFER_SAMPLES_IMG 0x9133
  1282. #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134
  1283. #define GL_MAX_SAMPLES_IMG 0x9135
  1284. #define GL_TEXTURE_SAMPLES_IMG 0x9136
  1285. typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1286. typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
  1287. #ifdef GL_GLEXT_PROTOTYPES
  1288. GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleIMG (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1289. GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleIMG (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
  1290. #endif
  1291. #endif /* GL_IMG_multisampled_render_to_texture */
  1292. #ifndef GL_IMG_program_binary
  1293. #define GL_IMG_program_binary 1
  1294. #define GL_SGX_PROGRAM_BINARY_IMG 0x9130
  1295. #endif /* GL_IMG_program_binary */
  1296. #ifndef GL_IMG_read_format
  1297. #define GL_IMG_read_format 1
  1298. #define GL_BGRA_IMG 0x80E1
  1299. #define GL_UNSIGNED_SHORT_4_4_4_4_REV_IMG 0x8365
  1300. #endif /* GL_IMG_read_format */
  1301. #ifndef GL_IMG_shader_binary
  1302. #define GL_IMG_shader_binary 1
  1303. #define GL_SGX_BINARY_IMG 0x8C0A
  1304. #endif /* GL_IMG_shader_binary */
  1305. #ifndef GL_IMG_texture_compression_pvrtc
  1306. #define GL_IMG_texture_compression_pvrtc 1
  1307. #define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00
  1308. #define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG 0x8C01
  1309. #define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02
  1310. #define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG 0x8C03
  1311. #endif /* GL_IMG_texture_compression_pvrtc */
  1312. #ifndef GL_IMG_texture_compression_pvrtc2
  1313. #define GL_IMG_texture_compression_pvrtc2 1
  1314. #define GL_COMPRESSED_RGBA_PVRTC_2BPPV2_IMG 0x9137
  1315. #define GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG 0x9138
  1316. #endif /* GL_IMG_texture_compression_pvrtc2 */
  1317. #ifndef GL_INTEL_performance_query
  1318. #define GL_INTEL_performance_query 1
  1319. #define GL_PERFQUERY_SINGLE_CONTEXT_INTEL 0x00000000
  1320. #define GL_PERFQUERY_GLOBAL_CONTEXT_INTEL 0x00000001
  1321. #define GL_PERFQUERY_WAIT_INTEL 0x83FB
  1322. #define GL_PERFQUERY_FLUSH_INTEL 0x83FA
  1323. #define GL_PERFQUERY_DONOT_FLUSH_INTEL 0x83F9
  1324. #define GL_PERFQUERY_COUNTER_EVENT_INTEL 0x94F0
  1325. #define GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL 0x94F1
  1326. #define GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL 0x94F2
  1327. #define GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL 0x94F3
  1328. #define GL_PERFQUERY_COUNTER_RAW_INTEL 0x94F4
  1329. #define GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL 0x94F5
  1330. #define GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL 0x94F8
  1331. #define GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL 0x94F9
  1332. #define GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL 0x94FA
  1333. #define GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL 0x94FB
  1334. #define GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL 0x94FC
  1335. #define GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL 0x94FD
  1336. #define GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL 0x94FE
  1337. #define GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL 0x94FF
  1338. #define GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL 0x9500
  1339. typedef void (GL_APIENTRYP PFNGLBEGINPERFQUERYINTELPROC) (GLuint queryHandle);
  1340. typedef void (GL_APIENTRYP PFNGLCREATEPERFQUERYINTELPROC) (GLuint queryId, GLuint *queryHandle);
  1341. typedef void (GL_APIENTRYP PFNGLDELETEPERFQUERYINTELPROC) (GLuint queryHandle);
  1342. typedef void (GL_APIENTRYP PFNGLENDPERFQUERYINTELPROC) (GLuint queryHandle);
  1343. typedef void (GL_APIENTRYP PFNGLGETFIRSTPERFQUERYIDINTELPROC) (GLuint *queryId);
  1344. typedef void (GL_APIENTRYP PFNGLGETNEXTPERFQUERYIDINTELPROC) (GLuint queryId, GLuint *nextQueryId);
  1345. typedef void (GL_APIENTRYP PFNGLGETPERFCOUNTERINFOINTELPROC) (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue);
  1346. typedef void (GL_APIENTRYP PFNGLGETPERFQUERYDATAINTELPROC) (GLuint queryHandle, GLuint flags, GLsizei dataSize, GLvoid *data, GLuint *bytesWritten);
  1347. typedef void (GL_APIENTRYP PFNGLGETPERFQUERYIDBYNAMEINTELPROC) (GLchar *queryName, GLuint *queryId);
  1348. typedef void (GL_APIENTRYP PFNGLGETPERFQUERYINFOINTELPROC) (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask);
  1349. #ifdef GL_GLEXT_PROTOTYPES
  1350. GL_APICALL void GL_APIENTRY glBeginPerfQueryINTEL (GLuint queryHandle);
  1351. GL_APICALL void GL_APIENTRY glCreatePerfQueryINTEL (GLuint queryId, GLuint *queryHandle);
  1352. GL_APICALL void GL_APIENTRY glDeletePerfQueryINTEL (GLuint queryHandle);
  1353. GL_APICALL void GL_APIENTRY glEndPerfQueryINTEL (GLuint queryHandle);
  1354. GL_APICALL void GL_APIENTRY glGetFirstPerfQueryIdINTEL (GLuint *queryId);
  1355. GL_APICALL void GL_APIENTRY glGetNextPerfQueryIdINTEL (GLuint queryId, GLuint *nextQueryId);
  1356. GL_APICALL void GL_APIENTRY glGetPerfCounterInfoINTEL (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue);
  1357. GL_APICALL void GL_APIENTRY glGetPerfQueryDataINTEL (GLuint queryHandle, GLuint flags, GLsizei dataSize, GLvoid *data, GLuint *bytesWritten);
  1358. GL_APICALL void GL_APIENTRY glGetPerfQueryIdByNameINTEL (GLchar *queryName, GLuint *queryId);
  1359. GL_APICALL void GL_APIENTRY glGetPerfQueryInfoINTEL (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask);
  1360. #endif
  1361. #endif /* GL_INTEL_performance_query */
  1362. #ifndef GL_NV_blend_equation_advanced
  1363. #define GL_NV_blend_equation_advanced 1
  1364. #define GL_BLEND_OVERLAP_NV 0x9281
  1365. #define GL_BLEND_PREMULTIPLIED_SRC_NV 0x9280
  1366. #define GL_BLUE_NV 0x1905
  1367. #define GL_COLORBURN_NV 0x929A
  1368. #define GL_COLORDODGE_NV 0x9299
  1369. #define GL_CONJOINT_NV 0x9284
  1370. #define GL_CONTRAST_NV 0x92A1
  1371. #define GL_DARKEN_NV 0x9297
  1372. #define GL_DIFFERENCE_NV 0x929E
  1373. #define GL_DISJOINT_NV 0x9283
  1374. #define GL_DST_ATOP_NV 0x928F
  1375. #define GL_DST_IN_NV 0x928B
  1376. #define GL_DST_NV 0x9287
  1377. #define GL_DST_OUT_NV 0x928D
  1378. #define GL_DST_OVER_NV 0x9289
  1379. #define GL_EXCLUSION_NV 0x92A0
  1380. #define GL_GREEN_NV 0x1904
  1381. #define GL_HARDLIGHT_NV 0x929B
  1382. #define GL_HARDMIX_NV 0x92A9
  1383. #define GL_HSL_COLOR_NV 0x92AF
  1384. #define GL_HSL_HUE_NV 0x92AD
  1385. #define GL_HSL_LUMINOSITY_NV 0x92B0
  1386. #define GL_HSL_SATURATION_NV 0x92AE
  1387. #define GL_INVERT_OVG_NV 0x92B4
  1388. #define GL_INVERT_RGB_NV 0x92A3
  1389. #define GL_LIGHTEN_NV 0x9298
  1390. #define GL_LINEARBURN_NV 0x92A5
  1391. #define GL_LINEARDODGE_NV 0x92A4
  1392. #define GL_LINEARLIGHT_NV 0x92A7
  1393. #define GL_MINUS_CLAMPED_NV 0x92B3
  1394. #define GL_MINUS_NV 0x929F
  1395. #define GL_MULTIPLY_NV 0x9294
  1396. #define GL_OVERLAY_NV 0x9296
  1397. #define GL_PINLIGHT_NV 0x92A8
  1398. #define GL_PLUS_CLAMPED_ALPHA_NV 0x92B2
  1399. #define GL_PLUS_CLAMPED_NV 0x92B1
  1400. #define GL_PLUS_DARKER_NV 0x9292
  1401. #define GL_PLUS_NV 0x9291
  1402. #define GL_RED_NV 0x1903
  1403. #define GL_SCREEN_NV 0x9295
  1404. #define GL_SOFTLIGHT_NV 0x929C
  1405. #define GL_SRC_ATOP_NV 0x928E
  1406. #define GL_SRC_IN_NV 0x928A
  1407. #define GL_SRC_NV 0x9286
  1408. #define GL_SRC_OUT_NV 0x928C
  1409. #define GL_SRC_OVER_NV 0x9288
  1410. #define GL_UNCORRELATED_NV 0x9282
  1411. #define GL_VIVIDLIGHT_NV 0x92A6
  1412. #define GL_XOR_NV 0x1506
  1413. typedef void (GL_APIENTRYP PFNGLBLENDPARAMETERINVPROC) (GLenum pname, GLint value);
  1414. typedef void (GL_APIENTRYP PFNGLBLENDBARRIERNVPROC) (void);
  1415. #ifdef GL_GLEXT_PROTOTYPES
  1416. GL_APICALL void GL_APIENTRY glBlendParameteriNV (GLenum pname, GLint value);
  1417. GL_APICALL void GL_APIENTRY glBlendBarrierNV (void);
  1418. #endif
  1419. #endif /* GL_NV_blend_equation_advanced */
  1420. #ifndef GL_NV_blend_equation_advanced_coherent
  1421. #define GL_NV_blend_equation_advanced_coherent 1
  1422. #define GL_BLEND_ADVANCED_COHERENT_NV 0x9285
  1423. #endif /* GL_NV_blend_equation_advanced_coherent */
  1424. #ifndef GL_NV_copy_buffer
  1425. #define GL_NV_copy_buffer 1
  1426. #define GL_COPY_READ_BUFFER_NV 0x8F36
  1427. #define GL_COPY_WRITE_BUFFER_NV 0x8F37
  1428. typedef void (GL_APIENTRYP PFNGLCOPYBUFFERSUBDATANVPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
  1429. #ifdef GL_GLEXT_PROTOTYPES
  1430. GL_APICALL void GL_APIENTRY glCopyBufferSubDataNV (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
  1431. #endif
  1432. #endif /* GL_NV_copy_buffer */
  1433. #ifndef GL_NV_coverage_sample
  1434. #define GL_NV_coverage_sample 1
  1435. #define GL_COVERAGE_COMPONENT_NV 0x8ED0
  1436. #define GL_COVERAGE_COMPONENT4_NV 0x8ED1
  1437. #define GL_COVERAGE_ATTACHMENT_NV 0x8ED2
  1438. #define GL_COVERAGE_BUFFERS_NV 0x8ED3
  1439. #define GL_COVERAGE_SAMPLES_NV 0x8ED4
  1440. #define GL_COVERAGE_ALL_FRAGMENTS_NV 0x8ED5
  1441. #define GL_COVERAGE_EDGE_FRAGMENTS_NV 0x8ED6
  1442. #define GL_COVERAGE_AUTOMATIC_NV 0x8ED7
  1443. #define GL_COVERAGE_BUFFER_BIT_NV 0x00008000
  1444. typedef void (GL_APIENTRYP PFNGLCOVERAGEMASKNVPROC) (GLboolean mask);
  1445. typedef void (GL_APIENTRYP PFNGLCOVERAGEOPERATIONNVPROC) (GLenum operation);
  1446. #ifdef GL_GLEXT_PROTOTYPES
  1447. GL_APICALL void GL_APIENTRY glCoverageMaskNV (GLboolean mask);
  1448. GL_APICALL void GL_APIENTRY glCoverageOperationNV (GLenum operation);
  1449. #endif
  1450. #endif /* GL_NV_coverage_sample */
  1451. #ifndef GL_NV_depth_nonlinear
  1452. #define GL_NV_depth_nonlinear 1
  1453. #define GL_DEPTH_COMPONENT16_NONLINEAR_NV 0x8E2C
  1454. #endif /* GL_NV_depth_nonlinear */
  1455. #ifndef GL_NV_draw_buffers
  1456. #define GL_NV_draw_buffers 1
  1457. #define GL_MAX_DRAW_BUFFERS_NV 0x8824
  1458. #define GL_DRAW_BUFFER0_NV 0x8825
  1459. #define GL_DRAW_BUFFER1_NV 0x8826
  1460. #define GL_DRAW_BUFFER2_NV 0x8827
  1461. #define GL_DRAW_BUFFER3_NV 0x8828
  1462. #define GL_DRAW_BUFFER4_NV 0x8829
  1463. #define GL_DRAW_BUFFER5_NV 0x882A
  1464. #define GL_DRAW_BUFFER6_NV 0x882B
  1465. #define GL_DRAW_BUFFER7_NV 0x882C
  1466. #define GL_DRAW_BUFFER8_NV 0x882D
  1467. #define GL_DRAW_BUFFER9_NV 0x882E
  1468. #define GL_DRAW_BUFFER10_NV 0x882F
  1469. #define GL_DRAW_BUFFER11_NV 0x8830
  1470. #define GL_DRAW_BUFFER12_NV 0x8831
  1471. #define GL_DRAW_BUFFER13_NV 0x8832
  1472. #define GL_DRAW_BUFFER14_NV 0x8833
  1473. #define GL_DRAW_BUFFER15_NV 0x8834
  1474. #define GL_COLOR_ATTACHMENT0_NV 0x8CE0
  1475. #define GL_COLOR_ATTACHMENT1_NV 0x8CE1
  1476. #define GL_COLOR_ATTACHMENT2_NV 0x8CE2
  1477. #define GL_COLOR_ATTACHMENT3_NV 0x8CE3
  1478. #define GL_COLOR_ATTACHMENT4_NV 0x8CE4
  1479. #define GL_COLOR_ATTACHMENT5_NV 0x8CE5
  1480. #define GL_COLOR_ATTACHMENT6_NV 0x8CE6
  1481. #define GL_COLOR_ATTACHMENT7_NV 0x8CE7
  1482. #define GL_COLOR_ATTACHMENT8_NV 0x8CE8
  1483. #define GL_COLOR_ATTACHMENT9_NV 0x8CE9
  1484. #define GL_COLOR_ATTACHMENT10_NV 0x8CEA
  1485. #define GL_COLOR_ATTACHMENT11_NV 0x8CEB
  1486. #define GL_COLOR_ATTACHMENT12_NV 0x8CEC
  1487. #define GL_COLOR_ATTACHMENT13_NV 0x8CED
  1488. #define GL_COLOR_ATTACHMENT14_NV 0x8CEE
  1489. #define GL_COLOR_ATTACHMENT15_NV 0x8CEF
  1490. typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSNVPROC) (GLsizei n, const GLenum *bufs);
  1491. #ifdef GL_GLEXT_PROTOTYPES
  1492. GL_APICALL void GL_APIENTRY glDrawBuffersNV (GLsizei n, const GLenum *bufs);
  1493. #endif
  1494. #endif /* GL_NV_draw_buffers */
  1495. #ifndef GL_NV_draw_instanced
  1496. #define GL_NV_draw_instanced 1
  1497. typedef void (GL_APIENTRYP PFNGLDRAWARRAYSINSTANCEDNVPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
  1498. typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDNVPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
  1499. #ifdef GL_GLEXT_PROTOTYPES
  1500. GL_APICALL void GL_APIENTRY glDrawArraysInstancedNV (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
  1501. GL_APICALL void GL_APIENTRY glDrawElementsInstancedNV (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
  1502. #endif
  1503. #endif /* GL_NV_draw_instanced */
  1504. #ifndef GL_NV_explicit_attrib_location
  1505. #define GL_NV_explicit_attrib_location 1
  1506. #endif /* GL_NV_explicit_attrib_location */
  1507. #ifndef GL_NV_fbo_color_attachments
  1508. #define GL_NV_fbo_color_attachments 1
  1509. #define GL_MAX_COLOR_ATTACHMENTS_NV 0x8CDF
  1510. #endif /* GL_NV_fbo_color_attachments */
  1511. #ifndef GL_NV_fence
  1512. #define GL_NV_fence 1
  1513. #define GL_ALL_COMPLETED_NV 0x84F2
  1514. #define GL_FENCE_STATUS_NV 0x84F3
  1515. #define GL_FENCE_CONDITION_NV 0x84F4
  1516. typedef void (GL_APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences);
  1517. typedef void (GL_APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
  1518. typedef GLboolean (GL_APIENTRYP PFNGLISFENCENVPROC) (GLuint fence);
  1519. typedef GLboolean (GL_APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence);
  1520. typedef void (GL_APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
  1521. typedef void (GL_APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence);
  1522. typedef void (GL_APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition);
  1523. #ifdef GL_GLEXT_PROTOTYPES
  1524. GL_APICALL void GL_APIENTRY glDeleteFencesNV (GLsizei n, const GLuint *fences);
  1525. GL_APICALL void GL_APIENTRY glGenFencesNV (GLsizei n, GLuint *fences);
  1526. GL_APICALL GLboolean GL_APIENTRY glIsFenceNV (GLuint fence);
  1527. GL_APICALL GLboolean GL_APIENTRY glTestFenceNV (GLuint fence);
  1528. GL_APICALL void GL_APIENTRY glGetFenceivNV (GLuint fence, GLenum pname, GLint *params);
  1529. GL_APICALL void GL_APIENTRY glFinishFenceNV (GLuint fence);
  1530. GL_APICALL void GL_APIENTRY glSetFenceNV (GLuint fence, GLenum condition);
  1531. #endif
  1532. #endif /* GL_NV_fence */
  1533. #ifndef GL_NV_framebuffer_blit
  1534. #define GL_NV_framebuffer_blit 1
  1535. #define GL_READ_FRAMEBUFFER_NV 0x8CA8
  1536. #define GL_DRAW_FRAMEBUFFER_NV 0x8CA9
  1537. #define GL_DRAW_FRAMEBUFFER_BINDING_NV 0x8CA6
  1538. #define GL_READ_FRAMEBUFFER_BINDING_NV 0x8CAA
  1539. typedef void (GL_APIENTRYP PFNGLBLITFRAMEBUFFERNVPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  1540. #ifdef GL_GLEXT_PROTOTYPES
  1541. GL_APICALL void GL_APIENTRY glBlitFramebufferNV (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  1542. #endif
  1543. #endif /* GL_NV_framebuffer_blit */
  1544. #ifndef GL_NV_framebuffer_multisample
  1545. #define GL_NV_framebuffer_multisample 1
  1546. #define GL_RENDERBUFFER_SAMPLES_NV 0x8CAB
  1547. #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_NV 0x8D56
  1548. #define GL_MAX_SAMPLES_NV 0x8D57
  1549. typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLENVPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1550. #ifdef GL_GLEXT_PROTOTYPES
  1551. GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleNV (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1552. #endif
  1553. #endif /* GL_NV_framebuffer_multisample */
  1554. #ifndef GL_NV_generate_mipmap_sRGB
  1555. #define GL_NV_generate_mipmap_sRGB 1
  1556. #endif /* GL_NV_generate_mipmap_sRGB */
  1557. #ifndef GL_NV_instanced_arrays
  1558. #define GL_NV_instanced_arrays 1
  1559. #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_NV 0x88FE
  1560. typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBDIVISORNVPROC) (GLuint index, GLuint divisor);
  1561. #ifdef GL_GLEXT_PROTOTYPES
  1562. GL_APICALL void GL_APIENTRY glVertexAttribDivisorNV (GLuint index, GLuint divisor);
  1563. #endif
  1564. #endif /* GL_NV_instanced_arrays */
  1565. #ifndef GL_NV_non_square_matrices
  1566. #define GL_NV_non_square_matrices 1
  1567. #define GL_FLOAT_MAT2x3_NV 0x8B65
  1568. #define GL_FLOAT_MAT2x4_NV 0x8B66
  1569. #define GL_FLOAT_MAT3x2_NV 0x8B67
  1570. #define GL_FLOAT_MAT3x4_NV 0x8B68
  1571. #define GL_FLOAT_MAT4x2_NV 0x8B69
  1572. #define GL_FLOAT_MAT4x3_NV 0x8B6A
  1573. typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX2X3FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1574. typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX3X2FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1575. typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX2X4FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1576. typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX4X2FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1577. typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX3X4FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1578. typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX4X3FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1579. #ifdef GL_GLEXT_PROTOTYPES
  1580. GL_APICALL void GL_APIENTRY glUniformMatrix2x3fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1581. GL_APICALL void GL_APIENTRY glUniformMatrix3x2fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1582. GL_APICALL void GL_APIENTRY glUniformMatrix2x4fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1583. GL_APICALL void GL_APIENTRY glUniformMatrix4x2fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1584. GL_APICALL void GL_APIENTRY glUniformMatrix3x4fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1585. GL_APICALL void GL_APIENTRY glUniformMatrix4x3fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1586. #endif
  1587. #endif /* GL_NV_non_square_matrices */
  1588. #ifndef GL_NV_read_buffer
  1589. #define GL_NV_read_buffer 1
  1590. #define GL_READ_BUFFER_NV 0x0C02
  1591. typedef void (GL_APIENTRYP PFNGLREADBUFFERNVPROC) (GLenum mode);
  1592. #ifdef GL_GLEXT_PROTOTYPES
  1593. GL_APICALL void GL_APIENTRY glReadBufferNV (GLenum mode);
  1594. #endif
  1595. #endif /* GL_NV_read_buffer */
  1596. #ifndef GL_NV_read_buffer_front
  1597. #define GL_NV_read_buffer_front 1
  1598. #endif /* GL_NV_read_buffer_front */
  1599. #ifndef GL_NV_read_depth
  1600. #define GL_NV_read_depth 1
  1601. #endif /* GL_NV_read_depth */
  1602. #ifndef GL_NV_read_depth_stencil
  1603. #define GL_NV_read_depth_stencil 1
  1604. #endif /* GL_NV_read_depth_stencil */
  1605. #ifndef GL_NV_read_stencil
  1606. #define GL_NV_read_stencil 1
  1607. #endif /* GL_NV_read_stencil */
  1608. #ifndef GL_NV_sRGB_formats
  1609. #define GL_NV_sRGB_formats 1
  1610. #define GL_SLUMINANCE_NV 0x8C46
  1611. #define GL_SLUMINANCE_ALPHA_NV 0x8C44
  1612. #define GL_SRGB8_NV 0x8C41
  1613. #define GL_SLUMINANCE8_NV 0x8C47
  1614. #define GL_SLUMINANCE8_ALPHA8_NV 0x8C45
  1615. #define GL_COMPRESSED_SRGB_S3TC_DXT1_NV 0x8C4C
  1616. #define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_NV 0x8C4D
  1617. #define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_NV 0x8C4E
  1618. #define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_NV 0x8C4F
  1619. #define GL_ETC1_SRGB8_NV 0x88EE
  1620. #endif /* GL_NV_sRGB_formats */
  1621. #ifndef GL_NV_shadow_samplers_array
  1622. #define GL_NV_shadow_samplers_array 1
  1623. #define GL_SAMPLER_2D_ARRAY_SHADOW_NV 0x8DC4
  1624. #endif /* GL_NV_shadow_samplers_array */
  1625. #ifndef GL_NV_shadow_samplers_cube
  1626. #define GL_NV_shadow_samplers_cube 1
  1627. #define GL_SAMPLER_CUBE_SHADOW_NV 0x8DC5
  1628. #endif /* GL_NV_shadow_samplers_cube */
  1629. #ifndef GL_NV_texture_border_clamp
  1630. #define GL_NV_texture_border_clamp 1
  1631. #define GL_TEXTURE_BORDER_COLOR_NV 0x1004
  1632. #define GL_CLAMP_TO_BORDER_NV 0x812D
  1633. #endif /* GL_NV_texture_border_clamp */
  1634. #ifndef GL_NV_texture_compression_s3tc_update
  1635. #define GL_NV_texture_compression_s3tc_update 1
  1636. #endif /* GL_NV_texture_compression_s3tc_update */
  1637. #ifndef GL_NV_texture_npot_2D_mipmap
  1638. #define GL_NV_texture_npot_2D_mipmap 1
  1639. #endif /* GL_NV_texture_npot_2D_mipmap */
  1640. #ifndef GL_QCOM_alpha_test
  1641. #define GL_QCOM_alpha_test 1
  1642. #define GL_ALPHA_TEST_QCOM 0x0BC0
  1643. #define GL_ALPHA_TEST_FUNC_QCOM 0x0BC1
  1644. #define GL_ALPHA_TEST_REF_QCOM 0x0BC2
  1645. typedef void (GL_APIENTRYP PFNGLALPHAFUNCQCOMPROC) (GLenum func, GLclampf ref);
  1646. #ifdef GL_GLEXT_PROTOTYPES
  1647. GL_APICALL void GL_APIENTRY glAlphaFuncQCOM (GLenum func, GLclampf ref);
  1648. #endif
  1649. #endif /* GL_QCOM_alpha_test */
  1650. #ifndef GL_QCOM_binning_control
  1651. #define GL_QCOM_binning_control 1
  1652. #define GL_BINNING_CONTROL_HINT_QCOM 0x8FB0
  1653. #define GL_CPU_OPTIMIZED_QCOM 0x8FB1
  1654. #define GL_GPU_OPTIMIZED_QCOM 0x8FB2
  1655. #define GL_RENDER_DIRECT_TO_FRAMEBUFFER_QCOM 0x8FB3
  1656. #endif /* GL_QCOM_binning_control */
  1657. #ifndef GL_QCOM_driver_control
  1658. #define GL_QCOM_driver_control 1
  1659. typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSQCOMPROC) (GLint *num, GLsizei size, GLuint *driverControls);
  1660. typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSTRINGQCOMPROC) (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
  1661. typedef void (GL_APIENTRYP PFNGLENABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
  1662. typedef void (GL_APIENTRYP PFNGLDISABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
  1663. #ifdef GL_GLEXT_PROTOTYPES
  1664. GL_APICALL void GL_APIENTRY glGetDriverControlsQCOM (GLint *num, GLsizei size, GLuint *driverControls);
  1665. GL_APICALL void GL_APIENTRY glGetDriverControlStringQCOM (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
  1666. GL_APICALL void GL_APIENTRY glEnableDriverControlQCOM (GLuint driverControl);
  1667. GL_APICALL void GL_APIENTRY glDisableDriverControlQCOM (GLuint driverControl);
  1668. #endif
  1669. #endif /* GL_QCOM_driver_control */
  1670. #ifndef GL_QCOM_extended_get
  1671. #define GL_QCOM_extended_get 1
  1672. #define GL_TEXTURE_WIDTH_QCOM 0x8BD2
  1673. #define GL_TEXTURE_HEIGHT_QCOM 0x8BD3
  1674. #define GL_TEXTURE_DEPTH_QCOM 0x8BD4
  1675. #define GL_TEXTURE_INTERNAL_FORMAT_QCOM 0x8BD5
  1676. #define GL_TEXTURE_FORMAT_QCOM 0x8BD6
  1677. #define GL_TEXTURE_TYPE_QCOM 0x8BD7
  1678. #define GL_TEXTURE_IMAGE_VALID_QCOM 0x8BD8
  1679. #define GL_TEXTURE_NUM_LEVELS_QCOM 0x8BD9
  1680. #define GL_TEXTURE_TARGET_QCOM 0x8BDA
  1681. #define GL_TEXTURE_OBJECT_VALID_QCOM 0x8BDB
  1682. #define GL_STATE_RESTORE 0x8BDC
  1683. typedef void (GL_APIENTRYP PFNGLEXTGETTEXTURESQCOMPROC) (GLuint *textures, GLint maxTextures, GLint *numTextures);
  1684. typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERSQCOMPROC) (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
  1685. typedef void (GL_APIENTRYP PFNGLEXTGETRENDERBUFFERSQCOMPROC) (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
  1686. typedef void (GL_APIENTRYP PFNGLEXTGETFRAMEBUFFERSQCOMPROC) (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
  1687. typedef void (GL_APIENTRYP PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC) (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
  1688. typedef void (GL_APIENTRYP PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC) (GLenum target, GLenum pname, GLint param);
  1689. typedef void (GL_APIENTRYP PFNGLEXTGETTEXSUBIMAGEQCOMPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, void *texels);
  1690. typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERPOINTERVQCOMPROC) (GLenum target, void **params);
  1691. #ifdef GL_GLEXT_PROTOTYPES
  1692. GL_APICALL void GL_APIENTRY glExtGetTexturesQCOM (GLuint *textures, GLint maxTextures, GLint *numTextures);
  1693. GL_APICALL void GL_APIENTRY glExtGetBuffersQCOM (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
  1694. GL_APICALL void GL_APIENTRY glExtGetRenderbuffersQCOM (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
  1695. GL_APICALL void GL_APIENTRY glExtGetFramebuffersQCOM (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
  1696. GL_APICALL void GL_APIENTRY glExtGetTexLevelParameterivQCOM (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
  1697. GL_APICALL void GL_APIENTRY glExtTexObjectStateOverrideiQCOM (GLenum target, GLenum pname, GLint param);
  1698. GL_APICALL void GL_APIENTRY glExtGetTexSubImageQCOM (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, void *texels);
  1699. GL_APICALL void GL_APIENTRY glExtGetBufferPointervQCOM (GLenum target, void **params);
  1700. #endif
  1701. #endif /* GL_QCOM_extended_get */
  1702. #ifndef GL_QCOM_extended_get2
  1703. #define GL_QCOM_extended_get2 1
  1704. typedef void (GL_APIENTRYP PFNGLEXTGETSHADERSQCOMPROC) (GLuint *shaders, GLint maxShaders, GLint *numShaders);
  1705. typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMSQCOMPROC) (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
  1706. typedef GLboolean (GL_APIENTRYP PFNGLEXTISPROGRAMBINARYQCOMPROC) (GLuint program);
  1707. typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC) (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
  1708. #ifdef GL_GLEXT_PROTOTYPES
  1709. GL_APICALL void GL_APIENTRY glExtGetShadersQCOM (GLuint *shaders, GLint maxShaders, GLint *numShaders);
  1710. GL_APICALL void GL_APIENTRY glExtGetProgramsQCOM (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
  1711. GL_APICALL GLboolean GL_APIENTRY glExtIsProgramBinaryQCOM (GLuint program);
  1712. GL_APICALL void GL_APIENTRY glExtGetProgramBinarySourceQCOM (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
  1713. #endif
  1714. #endif /* GL_QCOM_extended_get2 */
  1715. #ifndef GL_QCOM_perfmon_global_mode
  1716. #define GL_QCOM_perfmon_global_mode 1
  1717. #define GL_PERFMON_GLOBAL_MODE_QCOM 0x8FA0
  1718. #endif /* GL_QCOM_perfmon_global_mode */
  1719. #ifndef GL_QCOM_tiled_rendering
  1720. #define GL_QCOM_tiled_rendering 1
  1721. #define GL_COLOR_BUFFER_BIT0_QCOM 0x00000001
  1722. #define GL_COLOR_BUFFER_BIT1_QCOM 0x00000002
  1723. #define GL_COLOR_BUFFER_BIT2_QCOM 0x00000004
  1724. #define GL_COLOR_BUFFER_BIT3_QCOM 0x00000008
  1725. #define GL_COLOR_BUFFER_BIT4_QCOM 0x00000010
  1726. #define GL_COLOR_BUFFER_BIT5_QCOM 0x00000020
  1727. #define GL_COLOR_BUFFER_BIT6_QCOM 0x00000040
  1728. #define GL_COLOR_BUFFER_BIT7_QCOM 0x00000080
  1729. #define GL_DEPTH_BUFFER_BIT0_QCOM 0x00000100
  1730. #define GL_DEPTH_BUFFER_BIT1_QCOM 0x00000200
  1731. #define GL_DEPTH_BUFFER_BIT2_QCOM 0x00000400
  1732. #define GL_DEPTH_BUFFER_BIT3_QCOM 0x00000800
  1733. #define GL_DEPTH_BUFFER_BIT4_QCOM 0x00001000
  1734. #define GL_DEPTH_BUFFER_BIT5_QCOM 0x00002000
  1735. #define GL_DEPTH_BUFFER_BIT6_QCOM 0x00004000
  1736. #define GL_DEPTH_BUFFER_BIT7_QCOM 0x00008000
  1737. #define GL_STENCIL_BUFFER_BIT0_QCOM 0x00010000
  1738. #define GL_STENCIL_BUFFER_BIT1_QCOM 0x00020000
  1739. #define GL_STENCIL_BUFFER_BIT2_QCOM 0x00040000
  1740. #define GL_STENCIL_BUFFER_BIT3_QCOM 0x00080000
  1741. #define GL_STENCIL_BUFFER_BIT4_QCOM 0x00100000
  1742. #define GL_STENCIL_BUFFER_BIT5_QCOM 0x00200000
  1743. #define GL_STENCIL_BUFFER_BIT6_QCOM 0x00400000
  1744. #define GL_STENCIL_BUFFER_BIT7_QCOM 0x00800000
  1745. #define GL_MULTISAMPLE_BUFFER_BIT0_QCOM 0x01000000
  1746. #define GL_MULTISAMPLE_BUFFER_BIT1_QCOM 0x02000000
  1747. #define GL_MULTISAMPLE_BUFFER_BIT2_QCOM 0x04000000
  1748. #define GL_MULTISAMPLE_BUFFER_BIT3_QCOM 0x08000000
  1749. #define GL_MULTISAMPLE_BUFFER_BIT4_QCOM 0x10000000
  1750. #define GL_MULTISAMPLE_BUFFER_BIT5_QCOM 0x20000000
  1751. #define GL_MULTISAMPLE_BUFFER_BIT6_QCOM 0x40000000
  1752. #define GL_MULTISAMPLE_BUFFER_BIT7_QCOM 0x80000000
  1753. typedef void (GL_APIENTRYP PFNGLSTARTTILINGQCOMPROC) (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
  1754. typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask);
  1755. #ifdef GL_GLEXT_PROTOTYPES
  1756. GL_APICALL void GL_APIENTRY glStartTilingQCOM (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
  1757. GL_APICALL void GL_APIENTRY glEndTilingQCOM (GLbitfield preserveMask);
  1758. #endif
  1759. #endif /* GL_QCOM_tiled_rendering */
  1760. #ifndef GL_QCOM_writeonly_rendering
  1761. #define GL_QCOM_writeonly_rendering 1
  1762. #define GL_WRITEONLY_RENDERING_QCOM 0x8823
  1763. #endif /* GL_QCOM_writeonly_rendering */
  1764. #ifndef GL_VIV_shader_binary
  1765. #define GL_VIV_shader_binary 1
  1766. #define GL_SHADER_BINARY_VIV 0x8FC4
  1767. #endif /* GL_VIV_shader_binary */
  1768. #ifdef __cplusplus
  1769. }
  1770. #endif
  1771. #endif