glext.h 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073
  1. #ifndef __glext_h_
  2. #define __glext_h_
  3. /* $Revision: 13240 $ on $Date:: 2010-12-17 15:16:00 -0800 #$ */
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. /*
  8. * This document is licensed under the SGI Free Software B License Version
  9. * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
  10. */
  11. #ifndef GL_APIENTRYP
  12. # define GL_APIENTRYP GL_APIENTRY*
  13. #endif
  14. /*------------------------------------------------------------------------*
  15. * OES extension tokens
  16. *------------------------------------------------------------------------*/
  17. /* GL_OES_blend_equation_separate */
  18. #ifndef GL_OES_blend_equation_separate
  19. /* BLEND_EQUATION_RGB_OES same as BLEND_EQUATION_OES */
  20. #define GL_BLEND_EQUATION_RGB_OES 0x8009
  21. #define GL_BLEND_EQUATION_ALPHA_OES 0x883D
  22. #endif
  23. /* GL_OES_blend_func_separate */
  24. #ifndef GL_OES_blend_func_separate
  25. #define GL_BLEND_DST_RGB_OES 0x80C8
  26. #define GL_BLEND_SRC_RGB_OES 0x80C9
  27. #define GL_BLEND_DST_ALPHA_OES 0x80CA
  28. #define GL_BLEND_SRC_ALPHA_OES 0x80CB
  29. #endif
  30. /* GL_OES_blend_subtract */
  31. #ifndef GL_OES_blend_subtract
  32. #define GL_BLEND_EQUATION_OES 0x8009
  33. #define GL_FUNC_ADD_OES 0x8006
  34. #define GL_FUNC_SUBTRACT_OES 0x800A
  35. #define GL_FUNC_REVERSE_SUBTRACT_OES 0x800B
  36. #endif
  37. /* GL_OES_compressed_ETC1_RGB8_texture */
  38. #ifndef GL_OES_compressed_ETC1_RGB8_texture
  39. #define GL_ETC1_RGB8_OES 0x8D64
  40. #endif
  41. /* GL_OES_depth24 */
  42. #ifndef GL_OES_depth24
  43. #define GL_DEPTH_COMPONENT24_OES 0x81A6
  44. #endif
  45. /* GL_OES_depth32 */
  46. #ifndef GL_OES_depth32
  47. #define GL_DEPTH_COMPONENT32_OES 0x81A7
  48. #endif
  49. /* GL_OES_draw_texture */
  50. #ifndef GL_OES_draw_texture
  51. #define GL_TEXTURE_CROP_RECT_OES 0x8B9D
  52. #endif
  53. /* GL_OES_EGL_image */
  54. #ifndef GL_OES_EGL_image
  55. typedef void* GLeglImageOES;
  56. #endif
  57. /* GL_OES_EGL_image_external */
  58. #ifndef GL_OES_EGL_image_external
  59. /* GLeglImageOES defined in GL_OES_EGL_image already. */
  60. #define GL_TEXTURE_EXTERNAL_OES 0x8D65
  61. #define GL_TEXTURE_BINDING_EXTERNAL_OES 0x8D67
  62. #define GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES 0x8D68
  63. #endif
  64. /* GL_OES_element_index_uint */
  65. #ifndef GL_OES_element_index_uint
  66. #define GL_UNSIGNED_INT 0x1405
  67. #endif
  68. /* GL_OES_fixed_point */
  69. #ifndef GL_OES_fixed_point
  70. #define GL_FIXED_OES 0x140C
  71. #endif
  72. /* GL_OES_framebuffer_object */
  73. #ifndef GL_OES_framebuffer_object
  74. #define GL_NONE_OES 0
  75. #define GL_FRAMEBUFFER_OES 0x8D40
  76. #define GL_RENDERBUFFER_OES 0x8D41
  77. #define GL_RGBA4_OES 0x8056
  78. #define GL_RGB5_A1_OES 0x8057
  79. #define GL_RGB565_OES 0x8D62
  80. #define GL_DEPTH_COMPONENT16_OES 0x81A5
  81. #define GL_RENDERBUFFER_WIDTH_OES 0x8D42
  82. #define GL_RENDERBUFFER_HEIGHT_OES 0x8D43
  83. #define GL_RENDERBUFFER_INTERNAL_FORMAT_OES 0x8D44
  84. #define GL_RENDERBUFFER_RED_SIZE_OES 0x8D50
  85. #define GL_RENDERBUFFER_GREEN_SIZE_OES 0x8D51
  86. #define GL_RENDERBUFFER_BLUE_SIZE_OES 0x8D52
  87. #define GL_RENDERBUFFER_ALPHA_SIZE_OES 0x8D53
  88. #define GL_RENDERBUFFER_DEPTH_SIZE_OES 0x8D54
  89. #define GL_RENDERBUFFER_STENCIL_SIZE_OES 0x8D55
  90. #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_OES 0x8CD0
  91. #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_OES 0x8CD1
  92. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_OES 0x8CD2
  93. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_OES 0x8CD3
  94. #define GL_COLOR_ATTACHMENT0_OES 0x8CE0
  95. #define GL_DEPTH_ATTACHMENT_OES 0x8D00
  96. #define GL_STENCIL_ATTACHMENT_OES 0x8D20
  97. #define GL_FRAMEBUFFER_COMPLETE_OES 0x8CD5
  98. #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_OES 0x8CD6
  99. #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_OES 0x8CD7
  100. #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_OES 0x8CD9
  101. #define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_OES 0x8CDA
  102. #define GL_FRAMEBUFFER_UNSUPPORTED_OES 0x8CDD
  103. #define GL_FRAMEBUFFER_BINDING_OES 0x8CA6
  104. #define GL_RENDERBUFFER_BINDING_OES 0x8CA7
  105. #define GL_MAX_RENDERBUFFER_SIZE_OES 0x84E8
  106. #define GL_INVALID_FRAMEBUFFER_OPERATION_OES 0x0506
  107. #endif
  108. /* GL_OES_mapbuffer */
  109. #ifndef GL_OES_mapbuffer
  110. #define GL_WRITE_ONLY_OES 0x88B9
  111. #define GL_BUFFER_ACCESS_OES 0x88BB
  112. #define GL_BUFFER_MAPPED_OES 0x88BC
  113. #define GL_BUFFER_MAP_POINTER_OES 0x88BD
  114. #endif
  115. /* GL_OES_matrix_get */
  116. #ifndef GL_OES_matrix_get
  117. #define GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES 0x898D
  118. #define GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES 0x898E
  119. #define GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES 0x898F
  120. #endif
  121. /* GL_OES_matrix_palette */
  122. #ifndef GL_OES_matrix_palette
  123. #define GL_MAX_VERTEX_UNITS_OES 0x86A4
  124. #define GL_MAX_PALETTE_MATRICES_OES 0x8842
  125. #define GL_MATRIX_PALETTE_OES 0x8840
  126. #define GL_MATRIX_INDEX_ARRAY_OES 0x8844
  127. #define GL_WEIGHT_ARRAY_OES 0x86AD
  128. #define GL_CURRENT_PALETTE_MATRIX_OES 0x8843
  129. #define GL_MATRIX_INDEX_ARRAY_SIZE_OES 0x8846
  130. #define GL_MATRIX_INDEX_ARRAY_TYPE_OES 0x8847
  131. #define GL_MATRIX_INDEX_ARRAY_STRIDE_OES 0x8848
  132. #define GL_MATRIX_INDEX_ARRAY_POINTER_OES 0x8849
  133. #define GL_MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES 0x8B9E
  134. #define GL_WEIGHT_ARRAY_SIZE_OES 0x86AB
  135. #define GL_WEIGHT_ARRAY_TYPE_OES 0x86A9
  136. #define GL_WEIGHT_ARRAY_STRIDE_OES 0x86AA
  137. #define GL_WEIGHT_ARRAY_POINTER_OES 0x86AC
  138. #define GL_WEIGHT_ARRAY_BUFFER_BINDING_OES 0x889E
  139. #endif
  140. /* GL_OES_packed_depth_stencil */
  141. #ifndef GL_OES_packed_depth_stencil
  142. #define GL_DEPTH_STENCIL_OES 0x84F9
  143. #define GL_UNSIGNED_INT_24_8_OES 0x84FA
  144. #define GL_DEPTH24_STENCIL8_OES 0x88F0
  145. #endif
  146. /* GL_OES_rgb8_rgba8 */
  147. #ifndef GL_OES_rgb8_rgba8
  148. #define GL_RGB8_OES 0x8051
  149. #define GL_RGBA8_OES 0x8058
  150. #endif
  151. /* GL_OES_stencil1 */
  152. #ifndef GL_OES_stencil1
  153. #define GL_STENCIL_INDEX1_OES 0x8D46
  154. #endif
  155. /* GL_OES_stencil4 */
  156. #ifndef GL_OES_stencil4
  157. #define GL_STENCIL_INDEX4_OES 0x8D47
  158. #endif
  159. /* GL_OES_stencil8 */
  160. #ifndef GL_OES_stencil8
  161. #define GL_STENCIL_INDEX8_OES 0x8D48
  162. #endif
  163. /* GL_OES_stencil_wrap */
  164. #ifndef GL_OES_stencil_wrap
  165. #define GL_INCR_WRAP_OES 0x8507
  166. #define GL_DECR_WRAP_OES 0x8508
  167. #endif
  168. /* GL_OES_texture_cube_map */
  169. #ifndef GL_OES_texture_cube_map
  170. #define GL_NORMAL_MAP_OES 0x8511
  171. #define GL_REFLECTION_MAP_OES 0x8512
  172. #define GL_TEXTURE_CUBE_MAP_OES 0x8513
  173. #define GL_TEXTURE_BINDING_CUBE_MAP_OES 0x8514
  174. #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_OES 0x8515
  175. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_OES 0x8516
  176. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_OES 0x8517
  177. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_OES 0x8518
  178. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_OES 0x8519
  179. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_OES 0x851A
  180. #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_OES 0x851C
  181. #define GL_TEXTURE_GEN_MODE_OES 0x2500
  182. #define GL_TEXTURE_GEN_STR_OES 0x8D60
  183. #endif
  184. /* GL_OES_texture_mirrored_repeat */
  185. #ifndef GL_OES_texture_mirrored_repeat
  186. #define GL_MIRRORED_REPEAT_OES 0x8370
  187. #endif
  188. /* GL_OES_vertex_array_object */
  189. #ifndef GL_OES_vertex_array_object
  190. #define GL_VERTEX_ARRAY_BINDING_OES 0x85B5
  191. #endif
  192. /*------------------------------------------------------------------------*
  193. * AMD extension tokens
  194. *------------------------------------------------------------------------*/
  195. /* GL_AMD_compressed_3DC_texture */
  196. #ifndef GL_AMD_compressed_3DC_texture
  197. #define GL_3DC_X_AMD 0x87F9
  198. #define GL_3DC_XY_AMD 0x87FA
  199. #endif
  200. /* GL_AMD_compressed_ATC_texture */
  201. #ifndef GL_AMD_compressed_ATC_texture
  202. #define GL_ATC_RGB_AMD 0x8C92
  203. #define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93
  204. #define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE
  205. #endif
  206. /*------------------------------------------------------------------------*
  207. * APPLE extension tokens
  208. *------------------------------------------------------------------------*/
  209. /* GL_APPLE_texture_2D_limited_npot */
  210. /* No new tokens introduced by this extension. */
  211. /* GL_APPLE_framebuffer_multisample */
  212. #ifndef GL_APPLE_framebuffer_multisample
  213. #define GL_RENDERBUFFER_SAMPLES_APPLE 0x8CAB
  214. #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE 0x8D56
  215. #define GL_MAX_SAMPLES_APPLE 0x8D57
  216. #define GL_READ_FRAMEBUFFER_APPLE 0x8CA8
  217. #define GL_DRAW_FRAMEBUFFER_APPLE 0x8CA9
  218. #define GL_DRAW_FRAMEBUFFER_BINDING_APPLE 0x8CA6
  219. #define GL_READ_FRAMEBUFFER_BINDING_APPLE 0x8CAA
  220. #endif
  221. /* GL_APPLE_texture_format_BGRA8888 */
  222. #ifndef GL_APPLE_texture_format_BGRA8888
  223. #define GL_BGRA_EXT 0x80E1
  224. #endif
  225. /* GL_APPLE_texture_max_level */
  226. #ifndef GL_APPLE_texture_max_level
  227. #define GL_TEXTURE_MAX_LEVEL_APPLE 0x813D
  228. #endif
  229. /*------------------------------------------------------------------------*
  230. * ARM extension tokens
  231. *------------------------------------------------------------------------*/
  232. /* GL_ARM_rgba8 */
  233. /* No new tokens introduced by this extension. */
  234. /*------------------------------------------------------------------------*
  235. * EXT extension tokens
  236. *------------------------------------------------------------------------*/
  237. /* GL_EXT_blend_minmax */
  238. #ifndef GL_EXT_blend_minmax
  239. #define GL_MIN_EXT 0x8007
  240. #define GL_MAX_EXT 0x8008
  241. #endif
  242. /* GL_EXT_discard_framebuffer */
  243. #ifndef GL_EXT_discard_framebuffer
  244. #define GL_COLOR_EXT 0x1800
  245. #define GL_DEPTH_EXT 0x1801
  246. #define GL_STENCIL_EXT 0x1802
  247. #endif
  248. /* GL_EXT_multi_draw_arrays */
  249. /* No new tokens introduced by this extension. */
  250. /* GL_EXT_read_format_bgra */
  251. #ifndef GL_EXT_read_format_bgra
  252. #define GL_BGRA_EXT 0x80E1
  253. #define GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT 0x8365
  254. #define GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT 0x8366
  255. #endif
  256. /* GL_EXT_texture_filter_anisotropic */
  257. #ifndef GL_EXT_texture_filter_anisotropic
  258. #define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
  259. #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
  260. #endif
  261. /* GL_EXT_texture_format_BGRA8888 */
  262. #ifndef GL_EXT_texture_format_BGRA8888
  263. #define GL_BGRA_EXT 0x80E1
  264. #endif
  265. /* GL_EXT_texture_lod_bias */
  266. #ifndef GL_EXT_texture_lod_bias
  267. #define GL_MAX_TEXTURE_LOD_BIAS_EXT 0x84FD
  268. #define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500
  269. #define GL_TEXTURE_LOD_BIAS_EXT 0x8501
  270. #endif
  271. /*------------------------------------------------------------------------*
  272. * IMG extension tokens
  273. *------------------------------------------------------------------------*/
  274. /* GL_IMG_read_format */
  275. #ifndef GL_IMG_read_format
  276. #define GL_BGRA_IMG 0x80E1
  277. #define GL_UNSIGNED_SHORT_4_4_4_4_REV_IMG 0x8365
  278. #endif
  279. /* GL_IMG_texture_compression_pvrtc */
  280. #ifndef GL_IMG_texture_compression_pvrtc
  281. #define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00
  282. #define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG 0x8C01
  283. #define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02
  284. #define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG 0x8C03
  285. #endif
  286. /* GL_IMG_texture_env_enhanced_fixed_function */
  287. #ifndef GL_IMG_texture_env_enhanced_fixed_function
  288. #define GL_MODULATE_COLOR_IMG 0x8C04
  289. #define GL_RECIP_ADD_SIGNED_ALPHA_IMG 0x8C05
  290. #define GL_TEXTURE_ALPHA_MODULATE_IMG 0x8C06
  291. #define GL_FACTOR_ALPHA_MODULATE_IMG 0x8C07
  292. #define GL_FRAGMENT_ALPHA_MODULATE_IMG 0x8C08
  293. #define GL_ADD_BLEND_IMG 0x8C09
  294. #define GL_DOT3_RGBA_IMG 0x86AF
  295. #endif
  296. /* GL_IMG_user_clip_plane */
  297. #ifndef GL_IMG_user_clip_plane
  298. #define GL_CLIP_PLANE0_IMG 0x3000
  299. #define GL_CLIP_PLANE1_IMG 0x3001
  300. #define GL_CLIP_PLANE2_IMG 0x3002
  301. #define GL_CLIP_PLANE3_IMG 0x3003
  302. #define GL_CLIP_PLANE4_IMG 0x3004
  303. #define GL_CLIP_PLANE5_IMG 0x3005
  304. #define GL_MAX_CLIP_PLANES_IMG 0x0D32
  305. #endif
  306. /* GL_IMG_multisampled_render_to_texture */
  307. #ifndef GL_IMG_multisampled_render_to_texture
  308. #define GL_RENDERBUFFER_SAMPLES_IMG 0x9133
  309. #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134
  310. #define GL_MAX_SAMPLES_IMG 0x9135
  311. #define GL_TEXTURE_SAMPLES_IMG 0x9136
  312. #endif
  313. /*------------------------------------------------------------------------*
  314. * NV extension tokens
  315. *------------------------------------------------------------------------*/
  316. /* GL_NV_fence */
  317. #ifndef GL_NV_fence
  318. #define GL_ALL_COMPLETED_NV 0x84F2
  319. #define GL_FENCE_STATUS_NV 0x84F3
  320. #define GL_FENCE_CONDITION_NV 0x84F4
  321. #endif
  322. /*------------------------------------------------------------------------*
  323. * QCOM extension tokens
  324. *------------------------------------------------------------------------*/
  325. /* GL_QCOM_driver_control */
  326. /* No new tokens introduced by this extension. */
  327. /* GL_QCOM_extended_get */
  328. #ifndef GL_QCOM_extended_get
  329. #define GL_TEXTURE_WIDTH_QCOM 0x8BD2
  330. #define GL_TEXTURE_HEIGHT_QCOM 0x8BD3
  331. #define GL_TEXTURE_DEPTH_QCOM 0x8BD4
  332. #define GL_TEXTURE_INTERNAL_FORMAT_QCOM 0x8BD5
  333. #define GL_TEXTURE_FORMAT_QCOM 0x8BD6
  334. #define GL_TEXTURE_TYPE_QCOM 0x8BD7
  335. #define GL_TEXTURE_IMAGE_VALID_QCOM 0x8BD8
  336. #define GL_TEXTURE_NUM_LEVELS_QCOM 0x8BD9
  337. #define GL_TEXTURE_TARGET_QCOM 0x8BDA
  338. #define GL_TEXTURE_OBJECT_VALID_QCOM 0x8BDB
  339. #define GL_STATE_RESTORE 0x8BDC
  340. #endif
  341. /* GL_QCOM_extended_get2 */
  342. /* No new tokens introduced by this extension. */
  343. /* GL_QCOM_perfmon_global_mode */
  344. #ifndef GL_QCOM_perfmon_global_mode
  345. #define GL_PERFMON_GLOBAL_MODE_QCOM 0x8FA0
  346. #endif
  347. /* GL_QCOM_writeonly_rendering */
  348. #ifndef GL_QCOM_writeonly_rendering
  349. #define GL_WRITEONLY_RENDERING_QCOM 0x8823
  350. #endif
  351. /* GL_QCOM_tiled_rendering */
  352. #ifndef GL_QCOM_tiled_rendering
  353. #define GL_COLOR_BUFFER_BIT0_QCOM 0x00000001
  354. #define GL_COLOR_BUFFER_BIT1_QCOM 0x00000002
  355. #define GL_COLOR_BUFFER_BIT2_QCOM 0x00000004
  356. #define GL_COLOR_BUFFER_BIT3_QCOM 0x00000008
  357. #define GL_COLOR_BUFFER_BIT4_QCOM 0x00000010
  358. #define GL_COLOR_BUFFER_BIT5_QCOM 0x00000020
  359. #define GL_COLOR_BUFFER_BIT6_QCOM 0x00000040
  360. #define GL_COLOR_BUFFER_BIT7_QCOM 0x00000080
  361. #define GL_DEPTH_BUFFER_BIT0_QCOM 0x00000100
  362. #define GL_DEPTH_BUFFER_BIT1_QCOM 0x00000200
  363. #define GL_DEPTH_BUFFER_BIT2_QCOM 0x00000400
  364. #define GL_DEPTH_BUFFER_BIT3_QCOM 0x00000800
  365. #define GL_DEPTH_BUFFER_BIT4_QCOM 0x00001000
  366. #define GL_DEPTH_BUFFER_BIT5_QCOM 0x00002000
  367. #define GL_DEPTH_BUFFER_BIT6_QCOM 0x00004000
  368. #define GL_DEPTH_BUFFER_BIT7_QCOM 0x00008000
  369. #define GL_STENCIL_BUFFER_BIT0_QCOM 0x00010000
  370. #define GL_STENCIL_BUFFER_BIT1_QCOM 0x00020000
  371. #define GL_STENCIL_BUFFER_BIT2_QCOM 0x00040000
  372. #define GL_STENCIL_BUFFER_BIT3_QCOM 0x00080000
  373. #define GL_STENCIL_BUFFER_BIT4_QCOM 0x00100000
  374. #define GL_STENCIL_BUFFER_BIT5_QCOM 0x00200000
  375. #define GL_STENCIL_BUFFER_BIT6_QCOM 0x00400000
  376. #define GL_STENCIL_BUFFER_BIT7_QCOM 0x00800000
  377. #define GL_MULTISAMPLE_BUFFER_BIT0_QCOM 0x01000000
  378. #define GL_MULTISAMPLE_BUFFER_BIT1_QCOM 0x02000000
  379. #define GL_MULTISAMPLE_BUFFER_BIT2_QCOM 0x04000000
  380. #define GL_MULTISAMPLE_BUFFER_BIT3_QCOM 0x08000000
  381. #define GL_MULTISAMPLE_BUFFER_BIT4_QCOM 0x10000000
  382. #define GL_MULTISAMPLE_BUFFER_BIT5_QCOM 0x20000000
  383. #define GL_MULTISAMPLE_BUFFER_BIT6_QCOM 0x40000000
  384. #define GL_MULTISAMPLE_BUFFER_BIT7_QCOM 0x80000000
  385. #endif
  386. /*------------------------------------------------------------------------*
  387. * End of extension tokens, start of corresponding extension functions
  388. *------------------------------------------------------------------------*/
  389. /*------------------------------------------------------------------------*
  390. * OES extension functions
  391. *------------------------------------------------------------------------*/
  392. /* GL_OES_blend_equation_separate */
  393. #ifndef GL_OES_blend_equation_separate
  394. #define GL_OES_blend_equation_separate 1
  395. #ifdef GL_GLEXT_PROTOTYPES
  396. GL_API void GL_APIENTRY glBlendEquationSeparateOES (GLenum modeRGB, GLenum modeAlpha);
  397. #endif
  398. typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEOESPROC) (GLenum modeRGB, GLenum modeAlpha);
  399. #endif
  400. /* GL_OES_blend_func_separate */
  401. #ifndef GL_OES_blend_func_separate
  402. #define GL_OES_blend_func_separate 1
  403. #ifdef GL_GLEXT_PROTOTYPES
  404. GL_API void GL_APIENTRY glBlendFuncSeparateOES (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  405. #endif
  406. typedef void (GL_APIENTRYP PFNGLBLENDFUNCSEPARATEOESPROC) (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  407. #endif
  408. /* GL_OES_blend_subtract */
  409. #ifndef GL_OES_blend_subtract
  410. #define GL_OES_blend_subtract 1
  411. #ifdef GL_GLEXT_PROTOTYPES
  412. GL_API void GL_APIENTRY glBlendEquationOES (GLenum mode);
  413. #endif
  414. typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONOESPROC) (GLenum mode);
  415. #endif
  416. /* GL_OES_byte_coordinates */
  417. #ifndef GL_OES_byte_coordinates
  418. #define GL_OES_byte_coordinates 1
  419. #endif
  420. /* GL_OES_compressed_ETC1_RGB8_texture */
  421. #ifndef GL_OES_compressed_ETC1_RGB8_texture
  422. #define GL_OES_compressed_ETC1_RGB8_texture 1
  423. #endif
  424. /* GL_OES_depth24 */
  425. #ifndef GL_OES_depth24
  426. #define GL_OES_depth24 1
  427. #endif
  428. /* GL_OES_depth32 */
  429. #ifndef GL_OES_depth32
  430. #define GL_OES_depth32 1
  431. #endif
  432. /* GL_OES_draw_texture */
  433. #ifndef GL_OES_draw_texture
  434. #define GL_OES_draw_texture 1
  435. #ifdef GL_GLEXT_PROTOTYPES
  436. GL_API void GL_APIENTRY glDrawTexsOES (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height);
  437. GL_API void GL_APIENTRY glDrawTexiOES (GLint x, GLint y, GLint z, GLint width, GLint height);
  438. GL_API void GL_APIENTRY glDrawTexxOES (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height);
  439. GL_API void GL_APIENTRY glDrawTexsvOES (const GLshort *coords);
  440. GL_API void GL_APIENTRY glDrawTexivOES (const GLint *coords);
  441. GL_API void GL_APIENTRY glDrawTexxvOES (const GLfixed *coords);
  442. GL_API void GL_APIENTRY glDrawTexfOES (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);
  443. GL_API void GL_APIENTRY glDrawTexfvOES (const GLfloat *coords);
  444. #endif
  445. typedef void (GL_APIENTRYP PFNGLDRAWTEXSOESPROC) (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height);
  446. typedef void (GL_APIENTRYP PFNGLDRAWTEXIOESPROC) (GLint x, GLint y, GLint z, GLint width, GLint height);
  447. typedef void (GL_APIENTRYP PFNGLDRAWTEXXOESPROC) (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height);
  448. typedef void (GL_APIENTRYP PFNGLDRAWTEXSVOESPROC) (const GLshort *coords);
  449. typedef void (GL_APIENTRYP PFNGLDRAWTEXIVOESPROC) (const GLint *coords);
  450. typedef void (GL_APIENTRYP PFNGLDRAWTEXXVOESPROC) (const GLfixed *coords);
  451. typedef void (GL_APIENTRYP PFNGLDRAWTEXFOESPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);
  452. typedef void (GL_APIENTRYP PFNGLDRAWTEXFVOESPROC) (const GLfloat *coords);
  453. #endif
  454. /* GL_OES_EGL_image */
  455. #ifndef GL_OES_EGL_image
  456. #define GL_OES_EGL_image 1
  457. #ifdef GL_GLEXT_PROTOTYPES
  458. GL_API void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
  459. GL_API void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
  460. #endif
  461. typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
  462. typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
  463. #endif
  464. /* GL_OES_EGL_image_external */
  465. #ifndef GL_OES_EGL_image_external
  466. #define GL_OES_EGL_image_external 1
  467. /* glEGLImageTargetTexture2DOES defined in GL_OES_EGL_image already. */
  468. #endif
  469. /* GL_OES_element_index_uint */
  470. #ifndef GL_OES_element_index_uint
  471. #define GL_OES_element_index_uint 1
  472. #endif
  473. /* GL_OES_extended_matrix_palette */
  474. #ifndef GL_OES_extended_matrix_palette
  475. #define GL_OES_extended_matrix_palette 1
  476. #endif
  477. /* GL_OES_fbo_render_mipmap */
  478. #ifndef GL_OES_fbo_render_mipmap
  479. #define GL_OES_fbo_render_mipmap 1
  480. #endif
  481. /* GL_OES_fixed_point */
  482. #ifndef GL_OES_fixed_point
  483. #define GL_OES_fixed_point 1
  484. #ifdef GL_GLEXT_PROTOTYPES
  485. GL_API void GL_APIENTRY glAlphaFuncxOES (GLenum func, GLclampx ref);
  486. GL_API void GL_APIENTRY glClearColorxOES (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
  487. GL_API void GL_APIENTRY glClearDepthxOES (GLclampx depth);
  488. GL_API void GL_APIENTRY glClipPlanexOES (GLenum plane, const GLfixed *equation);
  489. GL_API void GL_APIENTRY glColor4xOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
  490. GL_API void GL_APIENTRY glDepthRangexOES (GLclampx zNear, GLclampx zFar);
  491. GL_API void GL_APIENTRY glFogxOES (GLenum pname, GLfixed param);
  492. GL_API void GL_APIENTRY glFogxvOES (GLenum pname, const GLfixed *params);
  493. GL_API void GL_APIENTRY glFrustumxOES (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
  494. GL_API void GL_APIENTRY glGetClipPlanexOES (GLenum pname, GLfixed eqn[4]);
  495. GL_API void GL_APIENTRY glGetFixedvOES (GLenum pname, GLfixed *params);
  496. GL_API void GL_APIENTRY glGetLightxvOES (GLenum light, GLenum pname, GLfixed *params);
  497. GL_API void GL_APIENTRY glGetMaterialxvOES (GLenum face, GLenum pname, GLfixed *params);
  498. GL_API void GL_APIENTRY glGetTexEnvxvOES (GLenum env, GLenum pname, GLfixed *params);
  499. GL_API void GL_APIENTRY glGetTexParameterxvOES (GLenum target, GLenum pname, GLfixed *params);
  500. GL_API void GL_APIENTRY glLightModelxOES (GLenum pname, GLfixed param);
  501. GL_API void GL_APIENTRY glLightModelxvOES (GLenum pname, const GLfixed *params);
  502. GL_API void GL_APIENTRY glLightxOES (GLenum light, GLenum pname, GLfixed param);
  503. GL_API void GL_APIENTRY glLightxvOES (GLenum light, GLenum pname, const GLfixed *params);
  504. GL_API void GL_APIENTRY glLineWidthxOES (GLfixed width);
  505. GL_API void GL_APIENTRY glLoadMatrixxOES (const GLfixed *m);
  506. GL_API void GL_APIENTRY glMaterialxOES (GLenum face, GLenum pname, GLfixed param);
  507. GL_API void GL_APIENTRY glMaterialxvOES (GLenum face, GLenum pname, const GLfixed *params);
  508. GL_API void GL_APIENTRY glMultMatrixxOES (const GLfixed *m);
  509. GL_API void GL_APIENTRY glMultiTexCoord4xOES (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
  510. GL_API void GL_APIENTRY glNormal3xOES (GLfixed nx, GLfixed ny, GLfixed nz);
  511. GL_API void GL_APIENTRY glOrthoxOES (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
  512. GL_API void GL_APIENTRY glPointParameterxOES (GLenum pname, GLfixed param);
  513. GL_API void GL_APIENTRY glPointParameterxvOES (GLenum pname, const GLfixed *params);
  514. GL_API void GL_APIENTRY glPointSizexOES (GLfixed size);
  515. GL_API void GL_APIENTRY glPolygonOffsetxOES (GLfixed factor, GLfixed units);
  516. GL_API void GL_APIENTRY glRotatexOES (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
  517. GL_API void GL_APIENTRY glSampleCoveragexOES (GLclampx value, GLboolean invert);
  518. GL_API void GL_APIENTRY glScalexOES (GLfixed x, GLfixed y, GLfixed z);
  519. GL_API void GL_APIENTRY glTexEnvxOES (GLenum target, GLenum pname, GLfixed param);
  520. GL_API void GL_APIENTRY glTexEnvxvOES (GLenum target, GLenum pname, const GLfixed *params);
  521. GL_API void GL_APIENTRY glTexParameterxOES (GLenum target, GLenum pname, GLfixed param);
  522. GL_API void GL_APIENTRY glTexParameterxvOES (GLenum target, GLenum pname, const GLfixed *params);
  523. GL_API void GL_APIENTRY glTranslatexOES (GLfixed x, GLfixed y, GLfixed z);
  524. #endif
  525. typedef void (GL_APIENTRYP PFNGLALPHAFUNCXOESPROC) (GLenum func, GLclampx ref);
  526. typedef void (GL_APIENTRYP PFNGLCLEARCOLORXOESPROC) (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
  527. typedef void (GL_APIENTRYP PFNGLCLEARDEPTHXOESPROC) (GLclampx depth);
  528. typedef void (GL_APIENTRYP PFNGLCLIPPLANEXOESPROC) (GLenum plane, const GLfixed *equation);
  529. typedef void (GL_APIENTRYP PFNGLCOLOR4XOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
  530. typedef void (GL_APIENTRYP PFNGLDEPTHRANGEXOESPROC) (GLclampx zNear, GLclampx zFar);
  531. typedef void (GL_APIENTRYP PFNGLFOGXOESPROC) (GLenum pname, GLfixed param);
  532. typedef void (GL_APIENTRYP PFNGLFOGXVOESPROC) (GLenum pname, const GLfixed *params);
  533. typedef void (GL_APIENTRYP PFNGLFRUSTUMXOESPROC) (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
  534. typedef void (GL_APIENTRYP PFNGLGETCLIPPLANEXOESPROC) (GLenum pname, GLfixed eqn[4]);
  535. typedef void (GL_APIENTRYP PFNGLGETFIXEDVOESPROC) (GLenum pname, GLfixed *params);
  536. typedef void (GL_APIENTRYP PFNGLGETLIGHTXVOESPROC) (GLenum light, GLenum pname, GLfixed *params);
  537. typedef void (GL_APIENTRYP PFNGLGETMATERIALXVOESPROC) (GLenum face, GLenum pname, GLfixed *params);
  538. typedef void (GL_APIENTRYP PFNGLGETTEXENVXVOESPROC) (GLenum env, GLenum pname, GLfixed *params);
  539. typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
  540. typedef void (GL_APIENTRYP PFNGLLIGHTMODELXOESPROC) (GLenum pname, GLfixed param);
  541. typedef void (GL_APIENTRYP PFNGLLIGHTMODELXVOESPROC) (GLenum pname, const GLfixed *params);
  542. typedef void (GL_APIENTRYP PFNGLLIGHTXOESPROC) (GLenum light, GLenum pname, GLfixed param);
  543. typedef void (GL_APIENTRYP PFNGLLIGHTXVOESPROC) (GLenum light, GLenum pname, const GLfixed *params);
  544. typedef void (GL_APIENTRYP PFNGLLINEWIDTHXOESPROC) (GLfixed width);
  545. typedef void (GL_APIENTRYP PFNGLLOADMATRIXXOESPROC) (const GLfixed *m);
  546. typedef void (GL_APIENTRYP PFNGLMATERIALXOESPROC) (GLenum face, GLenum pname, GLfixed param);
  547. typedef void (GL_APIENTRYP PFNGLMATERIALXVOESPROC) (GLenum face, GLenum pname, const GLfixed *params);
  548. typedef void (GL_APIENTRYP PFNGLMULTMATRIXXOESPROC) (const GLfixed *m);
  549. typedef void (GL_APIENTRYP PFNGLMULTITEXCOORD4XOESPROC) (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
  550. typedef void (GL_APIENTRYP PFNGLNORMAL3XOESPROC) (GLfixed nx, GLfixed ny, GLfixed nz);
  551. typedef void (GL_APIENTRYP PFNGLORTHOXOESPROC) (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
  552. typedef void (GL_APIENTRYP PFNGLPOINTPARAMETERXOESPROC) (GLenum pname, GLfixed param);
  553. typedef void (GL_APIENTRYP PFNGLPOINTPARAMETERXVOESPROC) (GLenum pname, const GLfixed *params);
  554. typedef void (GL_APIENTRYP PFNGLPOINTSIZEXOESPROC) (GLfixed size);
  555. typedef void (GL_APIENTRYP PFNGLPOLYGONOFFSETXOESPROC) (GLfixed factor, GLfixed units);
  556. typedef void (GL_APIENTRYP PFNGLROTATEXOESPROC) (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
  557. typedef void (GL_APIENTRYP PFNGLSAMPLECOVERAGEXOESPROC) (GLclampx value, GLboolean invert);
  558. typedef void (GL_APIENTRYP PFNGLSCALEXOESPROC) (GLfixed x, GLfixed y, GLfixed z);
  559. typedef void (GL_APIENTRYP PFNGLTEXENVXOESPROC) (GLenum target, GLenum pname, GLfixed param);
  560. typedef void (GL_APIENTRYP PFNGLTEXENVXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params);
  561. typedef void (GL_APIENTRYP PFNGLTEXPARAMETERXOESPROC) (GLenum target, GLenum pname, GLfixed param);
  562. typedef void (GL_APIENTRYP PFNGLTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params);
  563. typedef void (GL_APIENTRYP PFNGLTRANSLATEXOESPROC) (GLfixed x, GLfixed y, GLfixed z);
  564. #endif
  565. /* GL_OES_framebuffer_object */
  566. #ifndef GL_OES_framebuffer_object
  567. #define GL_OES_framebuffer_object 1
  568. #ifdef GL_GLEXT_PROTOTYPES
  569. GL_API GLboolean GL_APIENTRY glIsRenderbufferOES (GLuint renderbuffer);
  570. GL_API void GL_APIENTRY glBindRenderbufferOES (GLenum target, GLuint renderbuffer);
  571. GL_API void GL_APIENTRY glDeleteRenderbuffersOES (GLsizei n, const GLuint* renderbuffers);
  572. GL_API void GL_APIENTRY glGenRenderbuffersOES (GLsizei n, GLuint* renderbuffers);
  573. GL_API void GL_APIENTRY glRenderbufferStorageOES (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
  574. GL_API void GL_APIENTRY glGetRenderbufferParameterivOES (GLenum target, GLenum pname, GLint* params);
  575. GL_API GLboolean GL_APIENTRY glIsFramebufferOES (GLuint framebuffer);
  576. GL_API void GL_APIENTRY glBindFramebufferOES (GLenum target, GLuint framebuffer);
  577. GL_API void GL_APIENTRY glDeleteFramebuffersOES (GLsizei n, const GLuint* framebuffers);
  578. GL_API void GL_APIENTRY glGenFramebuffersOES (GLsizei n, GLuint* framebuffers);
  579. GL_API GLenum GL_APIENTRY glCheckFramebufferStatusOES (GLenum target);
  580. GL_API void GL_APIENTRY glFramebufferRenderbufferOES (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
  581. GL_API void GL_APIENTRY glFramebufferTexture2DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
  582. GL_API void GL_APIENTRY glGetFramebufferAttachmentParameterivOES (GLenum target, GLenum attachment, GLenum pname, GLint* params);
  583. GL_API void GL_APIENTRY glGenerateMipmapOES (GLenum target);
  584. #endif
  585. typedef GLboolean (GL_APIENTRYP PFNGLISRENDERBUFFEROESPROC) (GLuint renderbuffer);
  586. typedef void (GL_APIENTRYP PFNGLBINDRENDERBUFFEROESPROC) (GLenum target, GLuint renderbuffer);
  587. typedef void (GL_APIENTRYP PFNGLDELETERENDERBUFFERSOESPROC) (GLsizei n, const GLuint* renderbuffers);
  588. typedef void (GL_APIENTRYP PFNGLGENRENDERBUFFERSOESPROC) (GLsizei n, GLuint* renderbuffers);
  589. typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
  590. typedef void (GL_APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVOESPROC) (GLenum target, GLenum pname, GLint* params);
  591. typedef GLboolean (GL_APIENTRYP PFNGLISFRAMEBUFFEROESPROC) (GLuint framebuffer);
  592. typedef void (GL_APIENTRYP PFNGLBINDFRAMEBUFFEROESPROC) (GLenum target, GLuint framebuffer);
  593. typedef void (GL_APIENTRYP PFNGLDELETEFRAMEBUFFERSOESPROC) (GLsizei n, const GLuint* framebuffers);
  594. typedef void (GL_APIENTRYP PFNGLGENFRAMEBUFFERSOESPROC) (GLsizei n, GLuint* framebuffers);
  595. typedef GLenum (GL_APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSOESPROC) (GLenum target);
  596. typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFEROESPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
  597. typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DOESPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
  598. typedef void (GL_APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVOESPROC) (GLenum target, GLenum attachment, GLenum pname, GLint* params);
  599. typedef void (GL_APIENTRYP PFNGLGENERATEMIPMAPOESPROC) (GLenum target);
  600. #endif
  601. /* GL_OES_mapbuffer */
  602. #ifndef GL_OES_mapbuffer
  603. #define GL_OES_mapbuffer 1
  604. #ifdef GL_GLEXT_PROTOTYPES
  605. GL_API void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
  606. GL_API GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
  607. GL_API void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, GLvoid ** params);
  608. #endif
  609. typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
  610. typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
  611. typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, GLvoid ** params);
  612. #endif
  613. /* GL_OES_matrix_get */
  614. #ifndef GL_OES_matrix_get
  615. #define GL_OES_matrix_get 1
  616. #endif
  617. /* GL_OES_matrix_palette */
  618. #ifndef GL_OES_matrix_palette
  619. #define GL_OES_matrix_palette 1
  620. #ifdef GL_GLEXT_PROTOTYPES
  621. GL_API void GL_APIENTRY glCurrentPaletteMatrixOES (GLuint matrixpaletteindex);
  622. GL_API void GL_APIENTRY glLoadPaletteFromModelViewMatrixOES (void);
  623. GL_API void GL_APIENTRY glMatrixIndexPointerOES (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  624. GL_API void GL_APIENTRY glWeightPointerOES (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  625. #endif
  626. typedef void (GL_APIENTRYP PFNGLCURRENTPALETTEMATRIXOESPROC) (GLuint matrixpaletteindex);
  627. typedef void (GL_APIENTRYP PFNGLLOADPALETTEFROMMODELVIEWMATRIXOESPROC) (void);
  628. typedef void (GL_APIENTRYP PFNGLMATRIXINDEXPOINTEROESPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  629. typedef void (GL_APIENTRYP PFNGLWEIGHTPOINTEROESPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  630. #endif
  631. /* GL_OES_packed_depth_stencil */
  632. #ifndef GL_OES_packed_depth_stencil
  633. #define GL_OES_packed_depth_stencil 1
  634. #endif
  635. /* GL_OES_query_matrix */
  636. #ifndef GL_OES_query_matrix
  637. #define GL_OES_query_matrix 1
  638. #ifdef GL_GLEXT_PROTOTYPES
  639. GL_API GLbitfield GL_APIENTRY glQueryMatrixxOES (GLfixed mantissa[16], GLint exponent[16]);
  640. #endif
  641. typedef GLbitfield (GL_APIENTRYP PFNGLQUERYMATRIXXOESPROC) (GLfixed mantissa[16], GLint exponent[16]);
  642. #endif
  643. /* GL_OES_rgb8_rgba8 */
  644. #ifndef GL_OES_rgb8_rgba8
  645. #define GL_OES_rgb8_rgba8 1
  646. #endif
  647. /* GL_OES_single_precision */
  648. #ifndef GL_OES_single_precision
  649. #define GL_OES_single_precision 1
  650. #ifdef GL_GLEXT_PROTOTYPES
  651. GL_API void GL_APIENTRY glDepthRangefOES (GLclampf zNear, GLclampf zFar);
  652. GL_API void GL_APIENTRY glFrustumfOES (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
  653. GL_API void GL_APIENTRY glOrthofOES (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
  654. GL_API void GL_APIENTRY glClipPlanefOES (GLenum plane, const GLfloat *equation);
  655. GL_API void GL_APIENTRY glGetClipPlanefOES (GLenum pname, GLfloat eqn[4]);
  656. GL_API void GL_APIENTRY glClearDepthfOES (GLclampf depth);
  657. #endif
  658. typedef void (GL_APIENTRYP PFNGLDEPTHRANGEFOESPROC) (GLclampf zNear, GLclampf zFar);
  659. typedef void (GL_APIENTRYP PFNGLFRUSTUMFOESPROC) (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
  660. typedef void (GL_APIENTRYP PFNGLORTHOFOESPROC) (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
  661. typedef void (GL_APIENTRYP PFNGLCLIPPLANEFOESPROC) (GLenum plane, const GLfloat *equation);
  662. typedef void (GL_APIENTRYP PFNGLGETCLIPPLANEFOESPROC) (GLenum pname, GLfloat eqn[4]);
  663. typedef void (GL_APIENTRYP PFNGLCLEARDEPTHFOESPROC) (GLclampf depth);
  664. #endif
  665. /* GL_OES_stencil1 */
  666. #ifndef GL_OES_stencil1
  667. #define GL_OES_stencil1 1
  668. #endif
  669. /* GL_OES_stencil4 */
  670. #ifndef GL_OES_stencil4
  671. #define GL_OES_stencil4 1
  672. #endif
  673. /* GL_OES_stencil8 */
  674. #ifndef GL_OES_stencil8
  675. #define GL_OES_stencil8 1
  676. #endif
  677. /* GL_OES_stencil_wrap */
  678. #ifndef GL_OES_stencil_wrap
  679. #define GL_OES_stencil_wrap 1
  680. #endif
  681. /* GL_OES_texture_cube_map */
  682. #ifndef GL_OES_texture_cube_map
  683. #define GL_OES_texture_cube_map 1
  684. #ifdef GL_GLEXT_PROTOTYPES
  685. GL_API void GL_APIENTRY glTexGenfOES (GLenum coord, GLenum pname, GLfloat param);
  686. GL_API void GL_APIENTRY glTexGenfvOES (GLenum coord, GLenum pname, const GLfloat *params);
  687. GL_API void GL_APIENTRY glTexGeniOES (GLenum coord, GLenum pname, GLint param);
  688. GL_API void GL_APIENTRY glTexGenivOES (GLenum coord, GLenum pname, const GLint *params);
  689. GL_API void GL_APIENTRY glTexGenxOES (GLenum coord, GLenum pname, GLfixed param);
  690. GL_API void GL_APIENTRY glTexGenxvOES (GLenum coord, GLenum pname, const GLfixed *params);
  691. GL_API void GL_APIENTRY glGetTexGenfvOES (GLenum coord, GLenum pname, GLfloat *params);
  692. GL_API void GL_APIENTRY glGetTexGenivOES (GLenum coord, GLenum pname, GLint *params);
  693. GL_API void GL_APIENTRY glGetTexGenxvOES (GLenum coord, GLenum pname, GLfixed *params);
  694. #endif
  695. typedef void (GL_APIENTRYP PFNGLTEXGENFOESPROC) (GLenum coord, GLenum pname, GLfloat param);
  696. typedef void (GL_APIENTRYP PFNGLTEXGENFVOESPROC) (GLenum coord, GLenum pname, const GLfloat *params);
  697. typedef void (GL_APIENTRYP PFNGLTEXGENIOESPROC) (GLenum coord, GLenum pname, GLint param);
  698. typedef void (GL_APIENTRYP PFNGLTEXGENIVOESPROC) (GLenum coord, GLenum pname, const GLint *params);
  699. typedef void (GL_APIENTRYP PFNGLTEXGENXOESPROC) (GLenum coord, GLenum pname, GLfixed param);
  700. typedef void (GL_APIENTRYP PFNGLTEXGENXVOESPROC) (GLenum coord, GLenum pname, const GLfixed *params);
  701. typedef void (GL_APIENTRYP PFNGLGETTEXGENFVOESPROC) (GLenum coord, GLenum pname, GLfloat *params);
  702. typedef void (GL_APIENTRYP PFNGLGETTEXGENIVOESPROC) (GLenum coord, GLenum pname, GLint *params);
  703. typedef void (GL_APIENTRYP PFNGLGETTEXGENXVOESPROC) (GLenum coord, GLenum pname, GLfixed *params);
  704. #endif
  705. /* GL_OES_texture_env_crossbar */
  706. #ifndef GL_OES_texture_env_crossbar
  707. #define GL_OES_texture_env_crossbar 1
  708. #endif
  709. /* GL_OES_texture_mirrored_repeat */
  710. #ifndef GL_OES_texture_mirrored_repeat
  711. #define GL_OES_texture_mirrored_repeat 1
  712. #endif
  713. /* GL_OES_vertex_array_object */
  714. #ifndef GL_OES_vertex_array_object
  715. #define GL_OES_vertex_array_object 1
  716. #ifdef GL_GLEXT_PROTOTYPES
  717. GL_API void GL_APIENTRY glBindVertexArrayOES (GLuint array);
  718. GL_API void GL_APIENTRY glDeleteVertexArraysOES (GLsizei n, const GLuint *arrays);
  719. GL_API void GL_APIENTRY glGenVertexArraysOES (GLsizei n, GLuint *arrays);
  720. GL_API GLboolean GL_APIENTRY glIsVertexArrayOES (GLuint array);
  721. #endif
  722. typedef void (GL_APIENTRYP PFNGLBINDVERTEXARRAYOESPROC) (GLuint array);
  723. typedef void (GL_APIENTRYP PFNGLDELETEVERTEXARRAYSOESPROC) (GLsizei n, const GLuint *arrays);
  724. typedef void (GL_APIENTRYP PFNGLGENVERTEXARRAYSOESPROC) (GLsizei n, GLuint *arrays);
  725. typedef GLboolean (GL_APIENTRYP PFNGLISVERTEXARRAYOESPROC) (GLuint array);
  726. #endif
  727. /*------------------------------------------------------------------------*
  728. * AMD extension functions
  729. *------------------------------------------------------------------------*/
  730. /* GL_AMD_compressed_3DC_texture */
  731. #ifndef GL_AMD_compressed_3DC_texture
  732. #define GL_AMD_compressed_3DC_texture 1
  733. #endif
  734. /* GL_AMD_compressed_ATC_texture */
  735. #ifndef GL_AMD_compressed_ATC_texture
  736. #define GL_AMD_compressed_ATC_texture 1
  737. #endif
  738. /*------------------------------------------------------------------------*
  739. * APPLE extension functions
  740. *------------------------------------------------------------------------*/
  741. /* GL_APPLE_texture_2D_limited_npot */
  742. #ifndef GL_APPLE_texture_2D_limited_npot
  743. #define GL_APPLE_texture_2D_limited_npot 1
  744. #endif
  745. /* GL_APPLE_framebuffer_multisample */
  746. #ifndef GL_APPLE_framebuffer_multisample
  747. #define GL_APPLE_framebuffer_multisample 1
  748. #ifdef GL_GLEXT_PROTOTYPES
  749. GL_API void GL_APIENTRY glRenderbufferStorageMultisampleAPPLE (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
  750. GL_API void GL_APIENTRY glResolveMultisampleFramebufferAPPLE (void);
  751. #endif /* GL_GLEXT_PROTOTYPES */
  752. typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  753. typedef void (GL_APIENTRYP PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC) (void);
  754. #endif
  755. /* GL_APPLE_texture_format_BGRA8888 */
  756. #ifndef GL_APPLE_texture_format_BGRA8888
  757. #define GL_APPLE_texture_format_BGRA8888 1
  758. #endif
  759. /* GL_APPLE_texture_max_level */
  760. #ifndef GL_APPLE_texture_max_level
  761. #define GL_APPLE_texture_max_level 1
  762. #endif
  763. /*------------------------------------------------------------------------*
  764. * ARM extension functions
  765. *------------------------------------------------------------------------*/
  766. /* GL_ARM_rgba8 */
  767. #ifndef GL_ARM_rgba8
  768. #define GL_ARM_rgba8 1
  769. #endif
  770. /*------------------------------------------------------------------------*
  771. * EXT extension functions
  772. *------------------------------------------------------------------------*/
  773. /* GL_EXT_blend_minmax */
  774. #ifndef GL_EXT_blend_minmax
  775. #define GL_EXT_blend_minmax 1
  776. #endif
  777. /* GL_EXT_discard_framebuffer */
  778. #ifndef GL_EXT_discard_framebuffer
  779. #define GL_EXT_discard_framebuffer 1
  780. #ifdef GL_GLEXT_PROTOTYPES
  781. GL_API void GL_APIENTRY glDiscardFramebufferEXT (GLenum target, GLsizei numAttachments, const GLenum *attachments);
  782. #endif
  783. typedef void (GL_APIENTRYP PFNGLDISCARDFRAMEBUFFEREXTPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
  784. #endif
  785. /* GL_EXT_multi_draw_arrays */
  786. #ifndef GL_EXT_multi_draw_arrays
  787. #define GL_EXT_multi_draw_arrays 1
  788. #ifdef GL_GLEXT_PROTOTYPES
  789. GL_API void GL_APIENTRY glMultiDrawArraysEXT (GLenum, GLint *, GLsizei *, GLsizei);
  790. GL_API void GL_APIENTRY glMultiDrawElementsEXT (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei);
  791. #endif /* GL_GLEXT_PROTOTYPES */
  792. typedef void (GL_APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount);
  793. typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
  794. #endif
  795. /* GL_EXT_read_format_bgra */
  796. #ifndef GL_EXT_read_format_bgra
  797. #define GL_EXT_read_format_bgra 1
  798. #endif
  799. /* GL_EXT_texture_filter_anisotropic */
  800. #ifndef GL_EXT_texture_filter_anisotropic
  801. #define GL_EXT_texture_filter_anisotropic 1
  802. #endif
  803. /* GL_EXT_texture_format_BGRA8888 */
  804. #ifndef GL_EXT_texture_format_BGRA8888
  805. #define GL_EXT_texture_format_BGRA8888 1
  806. #endif
  807. /* GL_EXT_texture_lod_bias */
  808. #ifndef GL_EXT_texture_lod_bias
  809. #define GL_EXT_texture_lod_bias 1
  810. #endif
  811. /*------------------------------------------------------------------------*
  812. * IMG extension functions
  813. *------------------------------------------------------------------------*/
  814. /* GL_IMG_read_format */
  815. #ifndef GL_IMG_read_format
  816. #define GL_IMG_read_format 1
  817. #endif
  818. /* GL_IMG_texture_compression_pvrtc */
  819. #ifndef GL_IMG_texture_compression_pvrtc
  820. #define GL_IMG_texture_compression_pvrtc 1
  821. #endif
  822. /* GL_IMG_texture_env_enhanced_fixed_function */
  823. #ifndef GL_IMG_texture_env_enhanced_fixed_function
  824. #define GL_IMG_texture_env_enhanced_fixed_function 1
  825. #endif
  826. /* GL_IMG_user_clip_plane */
  827. #ifndef GL_IMG_user_clip_plane
  828. #define GL_IMG_user_clip_plane 1
  829. #ifdef GL_GLEXT_PROTOTYPES
  830. GL_API void GL_APIENTRY glClipPlanefIMG (GLenum, const GLfloat *);
  831. GL_API void GL_APIENTRY glClipPlanexIMG (GLenum, const GLfixed *);
  832. #endif
  833. typedef void (GL_APIENTRYP PFNGLCLIPPLANEFIMGPROC) (GLenum p, const GLfloat *eqn);
  834. typedef void (GL_APIENTRYP PFNGLCLIPPLANEXIMGPROC) (GLenum p, const GLfixed *eqn);
  835. #endif
  836. /* GL_IMG_multisampled_render_to_texture */
  837. #ifndef GL_IMG_multisampled_render_to_texture
  838. #define GL_IMG_multisampled_render_to_texture 1
  839. #ifdef GL_GLEXT_PROTOTYPES
  840. GL_API void GL_APIENTRY glRenderbufferStorageMultisampleIMG (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
  841. GL_API void GL_APIENTRY glFramebufferTexture2DMultisampleIMG (GLenum, GLenum, GLenum, GLuint, GLint, GLsizei);
  842. #endif
  843. typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMG) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  844. typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMG) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
  845. #endif
  846. /*------------------------------------------------------------------------*
  847. * NV extension functions
  848. *------------------------------------------------------------------------*/
  849. /* NV_fence */
  850. #ifndef GL_NV_fence
  851. #define GL_NV_fence 1
  852. #ifdef GL_GLEXT_PROTOTYPES
  853. GL_API void GL_APIENTRY glDeleteFencesNV (GLsizei, const GLuint *);
  854. GL_API void GL_APIENTRY glGenFencesNV (GLsizei, GLuint *);
  855. GL_API GLboolean GL_APIENTRY glIsFenceNV (GLuint);
  856. GL_API GLboolean GL_APIENTRY glTestFenceNV (GLuint);
  857. GL_API void GL_APIENTRY glGetFenceivNV (GLuint, GLenum, GLint *);
  858. GL_API void GL_APIENTRY glFinishFenceNV (GLuint);
  859. GL_API void GL_APIENTRY glSetFenceNV (GLuint, GLenum);
  860. #endif
  861. typedef void (GL_APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences);
  862. typedef void (GL_APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
  863. typedef GLboolean (GL_APIENTRYP PFNGLISFENCENVPROC) (GLuint fence);
  864. typedef GLboolean (GL_APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence);
  865. typedef void (GL_APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
  866. typedef void (GL_APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence);
  867. typedef void (GL_APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition);
  868. #endif
  869. /*------------------------------------------------------------------------*
  870. * QCOM extension functions
  871. *------------------------------------------------------------------------*/
  872. /* GL_QCOM_driver_control */
  873. #ifndef GL_QCOM_driver_control
  874. #define GL_QCOM_driver_control 1
  875. #ifdef GL_GLEXT_PROTOTYPES
  876. GL_API void GL_APIENTRY glGetDriverControlsQCOM (GLint *num, GLsizei size, GLuint *driverControls);
  877. GL_API void GL_APIENTRY glGetDriverControlStringQCOM (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
  878. GL_API void GL_APIENTRY glEnableDriverControlQCOM (GLuint driverControl);
  879. GL_API void GL_APIENTRY glDisableDriverControlQCOM (GLuint driverControl);
  880. #endif
  881. typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSQCOMPROC) (GLint *num, GLsizei size, GLuint *driverControls);
  882. typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSTRINGQCOMPROC) (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
  883. typedef void (GL_APIENTRYP PFNGLENABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
  884. typedef void (GL_APIENTRYP PFNGLDISABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
  885. #endif
  886. /* GL_QCOM_extended_get */
  887. #ifndef GL_QCOM_extended_get
  888. #define GL_QCOM_extended_get 1
  889. #ifdef GL_GLEXT_PROTOTYPES
  890. GL_API void GL_APIENTRY glExtGetTexturesQCOM (GLuint *textures, GLint maxTextures, GLint *numTextures);
  891. GL_API void GL_APIENTRY glExtGetBuffersQCOM (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
  892. GL_API void GL_APIENTRY glExtGetRenderbuffersQCOM (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
  893. GL_API void GL_APIENTRY glExtGetFramebuffersQCOM (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
  894. GL_API void GL_APIENTRY glExtGetTexLevelParameterivQCOM (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
  895. GL_API void GL_APIENTRY glExtTexObjectStateOverrideiQCOM (GLenum target, GLenum pname, GLint param);
  896. GL_API void GL_APIENTRY glExtGetTexSubImageQCOM (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLvoid *texels);
  897. GL_API void GL_APIENTRY glExtGetBufferPointervQCOM (GLenum target, GLvoid **params);
  898. #endif
  899. typedef void (GL_APIENTRYP PFNGLEXTGETTEXTURESQCOMPROC) (GLuint *textures, GLint maxTextures, GLint *numTextures);
  900. typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERSQCOMPROC) (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
  901. typedef void (GL_APIENTRYP PFNGLEXTGETRENDERBUFFERSQCOMPROC) (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
  902. typedef void (GL_APIENTRYP PFNGLEXTGETFRAMEBUFFERSQCOMPROC) (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
  903. typedef void (GL_APIENTRYP PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC) (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
  904. typedef void (GL_APIENTRYP PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC) (GLenum target, GLenum pname, GLint param);
  905. 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, GLvoid *texels);
  906. typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERPOINTERVQCOMPROC) (GLenum target, GLvoid **params);
  907. #endif
  908. /* GL_QCOM_extended_get2 */
  909. #ifndef GL_QCOM_extended_get2
  910. #define GL_QCOM_extended_get2 1
  911. #ifdef GL_GLEXT_PROTOTYPES
  912. GL_API void GL_APIENTRY glExtGetShadersQCOM (GLuint *shaders, GLint maxShaders, GLint *numShaders);
  913. GL_API void GL_APIENTRY glExtGetProgramsQCOM (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
  914. GL_API GLboolean GL_APIENTRY glExtIsProgramBinaryQCOM (GLuint program);
  915. GL_API void GL_APIENTRY glExtGetProgramBinarySourceQCOM (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
  916. #endif
  917. typedef void (GL_APIENTRYP PFNGLEXTGETSHADERSQCOMPROC) (GLuint *shaders, GLint maxShaders, GLint *numShaders);
  918. typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMSQCOMPROC) (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
  919. typedef GLboolean (GL_APIENTRYP PFNGLEXTISPROGRAMBINARYQCOMPROC) (GLuint program);
  920. typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC) (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
  921. #endif
  922. /* GL_QCOM_perfmon_global_mode */
  923. #ifndef GL_QCOM_perfmon_global_mode
  924. #define GL_QCOM_perfmon_global_mode 1
  925. #endif
  926. /* GL_QCOM_writeonly_rendering */
  927. #ifndef GL_QCOM_writeonly_rendering
  928. #define GL_QCOM_writeonly_rendering 1
  929. #endif
  930. /* GL_QCOM_tiled_rendering */
  931. #ifndef GL_QCOM_tiled_rendering
  932. #define GL_QCOM_tiled_rendering 1
  933. #ifdef GL_GLEXT_PROTOTYPES
  934. GL_API void GL_APIENTRY glStartTilingQCOM (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
  935. GL_API void GL_APIENTRY glEndTilingQCOM (GLbitfield preserveMask);
  936. #endif
  937. typedef void (GL_APIENTRYP PFNGLSTARTTILINGQCOMPROC) (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
  938. typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask);
  939. #endif
  940. #ifdef __cplusplus
  941. }
  942. #endif
  943. #endif /* __glext_h_ */