Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  1. #ifndef __glext_h_
  2. #define __glext_h_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*
  7. ** License Applicability. Except to the extent portions of this file are
  8. ** made subject to an alternative license as permitted in the SGI Free
  9. ** Software License B, Version 1.0 (the "License"), the contents of this
  10. ** file are subject only to the provisions of the License. You may not use
  11. ** this file except in compliance with the License. You may obtain a copy
  12. ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
  13. ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
  14. **
  15. ** http://oss.sgi.com/projects/FreeB
  16. **
  17. ** Note that, as provided in the License, the Software is distributed on an
  18. ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
  19. ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
  20. ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
  21. ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
  22. **
  23. ** Original Code. The Original Code is: OpenGL Sample Implementation,
  24. ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
  25. ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
  26. ** Copyright in any portions created by third parties is as indicated
  27. ** elsewhere herein. All Rights Reserved.
  28. **
  29. ** Additional Notice Provisions: The application programming interfaces
  30. ** established by SGI in conjunction with the Original Code are The
  31. ** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
  32. ** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
  33. ** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
  34. ** Window System(R) (Version 1.3), released October 19, 1998. This software
  35. ** was created using the OpenGL(R) version 1.2.1 Sample Implementation
  36. ** published by SGI, but has not been independently verified as being
  37. ** compliant with the OpenGL(R) version 1.2.1 Specification.
  38. */
  39. #ifndef GL_APIENTRYP
  40. # define GL_APIENTRYP GL_APIENTRY*
  41. #endif
  42. /*------------------------------------------------------------------------*
  43. * OES extension tokens
  44. *------------------------------------------------------------------------*/
  45. /* GL_OES_blend_equation_separate */
  46. #ifndef GL_OES_blend_equation_separate
  47. /* BLEND_EQUATION_RGB_OES same as BLEND_EQUATION_OES */
  48. #define GL_BLEND_EQUATION_RGB_OES 0x8009
  49. #define GL_BLEND_EQUATION_ALPHA_OES 0x883D
  50. #endif
  51. /* GL_OES_blend_func_separate */
  52. #ifndef GL_OES_blend_func_separate
  53. #define GL_BLEND_DST_RGB_OES 0x80C8
  54. #define GL_BLEND_SRC_RGB_OES 0x80C9
  55. #define GL_BLEND_DST_ALPHA_OES 0x80CA
  56. #define GL_BLEND_SRC_ALPHA_OES 0x80CB
  57. #endif
  58. /* GL_OES_blend_subtract */
  59. #ifndef GL_OES_blend_subtract
  60. #define GL_BLEND_EQUATION_OES 0x8009
  61. #define GL_FUNC_ADD_OES 0x8006
  62. #define GL_FUNC_SUBTRACT_OES 0x800A
  63. #define GL_FUNC_REVERSE_SUBTRACT_OES 0x800B
  64. #endif
  65. /* GL_OES_compressed_ETC1_RGB8_texture */
  66. #ifndef GL_OES_compressed_ETC1_RGB8_texture
  67. #define GL_ETC1_RGB8_OES 0x8D64
  68. #endif
  69. /* OES_draw_texture */
  70. #ifndef GL_OES_draw_texture
  71. #define GL_TEXTURE_CROP_RECT_OES 0x8B9D
  72. #endif
  73. /* OES_fixed_point */
  74. #ifndef GL_OES_fixed_point
  75. #define GL_FIXED_OES 0x140C
  76. #endif
  77. /* OES_framebuffer_object */
  78. #ifndef GL_OES_framebuffer_object
  79. #define GL_NONE_OES 0
  80. #define GL_FRAMEBUFFER_OES 0x8D40
  81. #define GL_RENDERBUFFER_OES 0x8D41
  82. #define GL_RGBA4_OES 0x8056
  83. #define GL_RGB5_A1_OES 0x8057
  84. #define GL_RGB565_OES 0x8D62
  85. #define GL_DEPTH_COMPONENT16_OES 0x81A5
  86. #define GL_RENDERBUFFER_WIDTH_OES 0x8D42
  87. #define GL_RENDERBUFFER_HEIGHT_OES 0x8D43
  88. #define GL_RENDERBUFFER_INTERNAL_FORMAT_OES 0x8D44
  89. #define GL_RENDERBUFFER_RED_SIZE_OES 0x8D50
  90. #define GL_RENDERBUFFER_GREEN_SIZE_OES 0x8D51
  91. #define GL_RENDERBUFFER_BLUE_SIZE_OES 0x8D52
  92. #define GL_RENDERBUFFER_ALPHA_SIZE_OES 0x8D53
  93. #define GL_RENDERBUFFER_DEPTH_SIZE_OES 0x8D54
  94. #define GL_RENDERBUFFER_STENCIL_SIZE_OES 0x8D55
  95. #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_OES 0x8CD0
  96. #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_OES 0x8CD1
  97. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_OES 0x8CD2
  98. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_OES 0x8CD3
  99. #define GL_COLOR_ATTACHMENT0_OES 0x8CE0
  100. #define GL_DEPTH_ATTACHMENT_OES 0x8D00
  101. #define GL_STENCIL_ATTACHMENT_OES 0x8D20
  102. #define GL_FRAMEBUFFER_COMPLETE_OES 0x8CD5
  103. #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_OES 0x8CD6
  104. #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_OES 0x8CD7
  105. #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_OES 0x8CD9
  106. #define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_OES 0x8CDA
  107. #define GL_FRAMEBUFFER_UNSUPPORTED_OES 0x8CDD
  108. #define GL_FRAMEBUFFER_BINDING_OES 0x8CA6
  109. #define GL_RENDERBUFFER_BINDING_OES 0x8CA7
  110. #define GL_MAX_RENDERBUFFER_SIZE_OES 0x84E8
  111. #define GL_INVALID_FRAMEBUFFER_OPERATION_OES 0x0506
  112. #endif
  113. /* OES_matrix_get */
  114. #ifndef GL_OES_matrix_get
  115. #define GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES 0x898D
  116. #define GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES 0x898E
  117. #define GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES 0x898F
  118. #endif
  119. /* OES_matrix_palette */
  120. #ifndef GL_OES_matrix_palette
  121. #define GL_MAX_VERTEX_UNITS_OES 0x86A4
  122. #define GL_MAX_PALETTE_MATRICES_OES 0x8842
  123. #define GL_MATRIX_PALETTE_OES 0x8840
  124. #define GL_MATRIX_INDEX_ARRAY_OES 0x8844
  125. #define GL_WEIGHT_ARRAY_OES 0x86AD
  126. #define GL_CURRENT_PALETTE_MATRIX_OES 0x8843
  127. #define GL_MATRIX_INDEX_ARRAY_SIZE_OES 0x8846
  128. #define GL_MATRIX_INDEX_ARRAY_TYPE_OES 0x8847
  129. #define GL_MATRIX_INDEX_ARRAY_STRIDE_OES 0x8848
  130. #define GL_MATRIX_INDEX_ARRAY_POINTER_OES 0x8849
  131. #define GL_MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES 0x8B9E
  132. #define GL_WEIGHT_ARRAY_SIZE_OES 0x86AB
  133. #define GL_WEIGHT_ARRAY_TYPE_OES 0x86A9
  134. #define GL_WEIGHT_ARRAY_STRIDE_OES 0x86AA
  135. #define GL_WEIGHT_ARRAY_POINTER_OES 0x86AC
  136. #define GL_WEIGHT_ARRAY_BUFFER_BINDING_OES 0x889E
  137. #endif
  138. /* GL_OES_stencil_wrap */
  139. #ifndef GL_OES_stencil_wrap
  140. #define GL_INCR_WRAP_OES 0x8507
  141. #define GL_DECR_WRAP_OES 0x8508
  142. #endif
  143. /* GL_OES_texture_cube_map */
  144. #ifndef GL_OES_texture_cube_map
  145. #define GL_NORMAL_MAP_OES 0x8511
  146. #define GL_REFLECTION_MAP_OES 0x8512
  147. #define GL_TEXTURE_CUBE_MAP_OES 0x8513
  148. #define GL_TEXTURE_BINDING_CUBE_MAP_OES 0x8514
  149. #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_OES 0x8515
  150. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_OES 0x8516
  151. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_OES 0x8517
  152. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_OES 0x8518
  153. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_OES 0x8519
  154. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_OES 0x851A
  155. #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_OES 0x851C
  156. #define GL_TEXTURE_GEN_MODE_OES 0x2500
  157. #define GL_TEXTURE_GEN_STR_OES 0x8D60
  158. #endif
  159. /* GL_OES_texture_mirrored_repeat */
  160. #ifndef GL_OES_texture_mirrored_repeat
  161. #define GL_MIRRORED_REPEAT_OES 0x8370
  162. #endif
  163. /* GL_OES_EGL_image */
  164. #ifndef GL_OES_EGL_image
  165. typedef void* GLeglImageOES;
  166. #endif
  167. /* GL_OES_depth24 */
  168. #ifndef GL_OES_depth24
  169. #define GL_DEPTH_COMPONENT24_OES 0x81A6
  170. #endif
  171. /* GL_OES_depth32 */
  172. #ifndef GL_OES_depth32
  173. #define GL_DEPTH_COMPONENT32_OES 0x81A7
  174. #endif
  175. /* GL_OES_mapbuffer */
  176. #ifndef GL_OES_mapbuffer
  177. #define GL_WRITE_ONLY_OES 0x88B9
  178. #define GL_BUFFER_ACCESS_OES 0x88BB
  179. #define GL_BUFFER_MAPPED_OES 0x88BC
  180. #define GL_BUFFER_MAP_POINTER_OES 0x88BD
  181. #endif
  182. /* GL_OES_rgb8_rgba8 */
  183. #ifndef GL_OES_rgb8_rgba8
  184. #define GL_RGB8_OES 0x8051
  185. #define GL_RGBA8_OES 0x8058
  186. #endif
  187. /* GL_OES_stencil1 */
  188. #ifndef GL_OES_stencil1
  189. #define GL_STENCIL_INDEX1_OES 0x8D46
  190. #endif
  191. /* GL_OES_stencil4 */
  192. #ifndef GL_OES_stencil4
  193. #define GL_STENCIL_INDEX4_OES 0x8D47
  194. #endif
  195. /* GL_OES_stencil8 */
  196. #ifndef GL_OES_stencil8
  197. #define GL_STENCIL_INDEX8_OES 0x8D48
  198. #endif
  199. /* GL_AMD_compressed_3DC_texture */
  200. #ifndef GL_AMD_compressed_3DC_texture
  201. #define GL_3DC_X_AMD 0x87F9
  202. #define GL_3DC_XY_AMD 0x87FA
  203. #endif
  204. /* GL_AMD_compressed_ATC_texture */
  205. #ifndef GL_AMD_compressed_ATC_texture
  206. #define GL_ATC_RGB_AMD 0x8C92
  207. #define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93
  208. #define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE
  209. #endif
  210. /* GL_EXT_texture_filter_anisotropic */
  211. #ifndef GL_EXT_texture_filter_anisotropic
  212. #define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
  213. #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
  214. #endif
  215. /*------------------------------------------------------------------------*
  216. * OES extension functions
  217. *------------------------------------------------------------------------*/
  218. /* GL_OES_blend_equation_separate */
  219. #ifndef GL_OES_blend_equation_separate
  220. #define GL_OES_blend_equation_separate 1
  221. #ifdef GL_GLEXT_PROTOTYPES
  222. GL_API void GL_APIENTRY glBlendEquationSeparateOES (GLenum modeRGB, GLenum modeAlpha);
  223. #endif
  224. typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEOESPROC) (GLenum modeRGB, GLenum modeAlpha);
  225. #endif
  226. /* GL_OES_blend_func_separate */
  227. #ifndef GL_OES_blend_func_separate
  228. #define GL_OES_blend_func_separate 1
  229. #ifdef GL_GLEXT_PROTOTYPES
  230. GL_API void GL_APIENTRY glBlendFuncSeparateOES (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  231. #endif
  232. typedef void (GL_APIENTRYP PFNGLBLENDFUNCSEPARATEOESPROC) (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  233. #endif
  234. /* GL_OES_blend_subtract */
  235. #ifndef GL_OES_blend_subtract
  236. #define GL_OES_blend_subtract 1
  237. #ifdef GL_GLEXT_PROTOTYPES
  238. GL_API void GL_APIENTRY glBlendEquationOES (GLenum mode);
  239. #endif
  240. typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONOESPROC) (GLenum mode);
  241. #endif
  242. /* GL_OES_byte_coordinates */
  243. #ifndef GL_OES_byte_coordinates
  244. #define GL_OES_byte_coordinates 1
  245. #endif
  246. /* GL_OES_compressed_ETC1_RGB8_texture */
  247. #ifndef GL_OES_compressed_ETC1_RGB8_texture
  248. #define GL_OES_compressed_ETC1_RGB8_texture 1
  249. #endif
  250. /* GL_OES_draw_texture */
  251. #ifndef GL_OES_draw_texture
  252. #define GL_OES_draw_texture 1
  253. #ifdef GL_GLEXT_PROTOTYPES
  254. GL_API void GL_APIENTRY glDrawTexsOES (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height);
  255. GL_API void GL_APIENTRY glDrawTexiOES (GLint x, GLint y, GLint z, GLint width, GLint height);
  256. GL_API void GL_APIENTRY glDrawTexxOES (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height);
  257. GL_API void GL_APIENTRY glDrawTexsvOES (const GLshort *coords);
  258. GL_API void GL_APIENTRY glDrawTexivOES (const GLint *coords);
  259. GL_API void GL_APIENTRY glDrawTexxvOES (const GLfixed *coords);
  260. GL_API void GL_APIENTRY glDrawTexfOES (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);
  261. GL_API void GL_APIENTRY glDrawTexfvOES (const GLfloat *coords);
  262. #endif
  263. typedef void (GL_APIENTRYP PFNGLDRAWTEXSOESPROC) (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height);
  264. typedef void (GL_APIENTRYP PFNGLDRAWTEXIOESPROC) (GLint x, GLint y, GLint z, GLint width, GLint height);
  265. typedef void (GL_APIENTRYP PFNGLDRAWTEXXOESPROC) (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height);
  266. typedef void (GL_APIENTRYP PFNGLDRAWTEXSVOESPROC) (const GLshort *coords);
  267. typedef void (GL_APIENTRYP PFNGLDRAWTEXIVOESPROC) (const GLint *coords);
  268. typedef void (GL_APIENTRYP PFNGLDRAWTEXXVOESPROC) (const GLfixed *coords);
  269. typedef void (GL_APIENTRYP PFNGLDRAWTEXFOESPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);
  270. typedef void (GL_APIENTRYP PFNGLDRAWTEXFVOESPROC) (const GLfloat *coords);
  271. #endif
  272. /* GL_OES_extended_matrix_palette */
  273. #ifndef GL_OES_extended_matrix_palette
  274. #define GL_OES_extended_matrix_palette 1
  275. #endif
  276. /* GL_OES_fixed_point */
  277. #ifndef GL_OES_fixed_point
  278. #define GL_OES_fixed_point 1
  279. #ifdef GL_GLEXT_PROTOTYPES
  280. GL_API void GL_APIENTRY glAlphaFuncxOES (GLenum func, GLclampx ref);
  281. GL_API void GL_APIENTRY glClearColorxOES (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
  282. GL_API void GL_APIENTRY glClearDepthxOES (GLclampx depth);
  283. GL_API void GL_APIENTRY glClipPlanexOES (GLenum plane, const GLfixed *equation);
  284. GL_API void GL_APIENTRY glColor4xOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
  285. GL_API void GL_APIENTRY glDepthRangexOES (GLclampx zNear, GLclampx zFar);
  286. GL_API void GL_APIENTRY glFogxOES (GLenum pname, GLfixed param);
  287. GL_API void GL_APIENTRY glFogxvOES (GLenum pname, const GLfixed *params);
  288. GL_API void GL_APIENTRY glFrustumxOES (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
  289. GL_API void GL_APIENTRY glGetClipPlanexOES (GLenum pname, GLfixed eqn[4]);
  290. GL_API void GL_APIENTRY glGetFixedvOES (GLenum pname, GLfixed *params);
  291. GL_API void GL_APIENTRY glGetLightxvOES (GLenum light, GLenum pname, GLfixed *params);
  292. GL_API void GL_APIENTRY glGetMaterialxvOES (GLenum face, GLenum pname, GLfixed *params);
  293. GL_API void GL_APIENTRY glGetTexEnvxvOES (GLenum env, GLenum pname, GLfixed *params);
  294. GL_API void GL_APIENTRY glGetTexParameterxvOES (GLenum target, GLenum pname, GLfixed *params);
  295. GL_API void GL_APIENTRY glLightModelxOES (GLenum pname, GLfixed param);
  296. GL_API void GL_APIENTRY glLightModelxvOES (GLenum pname, const GLfixed *params);
  297. GL_API void GL_APIENTRY glLightxOES (GLenum light, GLenum pname, GLfixed param);
  298. GL_API void GL_APIENTRY glLightxvOES (GLenum light, GLenum pname, const GLfixed *params);
  299. GL_API void GL_APIENTRY glLineWidthxOES (GLfixed width);
  300. GL_API void GL_APIENTRY glLoadMatrixxOES (const GLfixed *m);
  301. GL_API void GL_APIENTRY glMaterialxOES (GLenum face, GLenum pname, GLfixed param);
  302. GL_API void GL_APIENTRY glMaterialxvOES (GLenum face, GLenum pname, const GLfixed *params);
  303. GL_API void GL_APIENTRY glMultMatrixxOES (const GLfixed *m);
  304. GL_API void GL_APIENTRY glMultiTexCoord4xOES (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
  305. GL_API void GL_APIENTRY glNormal3xOES (GLfixed nx, GLfixed ny, GLfixed nz);
  306. GL_API void GL_APIENTRY glOrthoxOES (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
  307. GL_API void GL_APIENTRY glPointParameterxOES (GLenum pname, GLfixed param);
  308. GL_API void GL_APIENTRY glPointParameterxvOES (GLenum pname, const GLfixed *params);
  309. GL_API void GL_APIENTRY glPointSizexOES (GLfixed size);
  310. GL_API void GL_APIENTRY glPolygonOffsetxOES (GLfixed factor, GLfixed units);
  311. GL_API void GL_APIENTRY glRotatexOES (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
  312. GL_API void GL_APIENTRY glSampleCoveragexOES (GLclampx value, GLboolean invert);
  313. GL_API void GL_APIENTRY glScalexOES (GLfixed x, GLfixed y, GLfixed z);
  314. GL_API void GL_APIENTRY glTexEnvxOES (GLenum target, GLenum pname, GLfixed param);
  315. GL_API void GL_APIENTRY glTexEnvxvOES (GLenum target, GLenum pname, const GLfixed *params);
  316. GL_API void GL_APIENTRY glTexParameterxOES (GLenum target, GLenum pname, GLfixed param);
  317. GL_API void GL_APIENTRY glTexParameterxvOES (GLenum target, GLenum pname, const GLfixed *params);
  318. GL_API void GL_APIENTRY glTranslatexOES (GLfixed x, GLfixed y, GLfixed z);
  319. #endif
  320. typedef void (GL_APIENTRYP PFNGLALPHAFUNCXOESPROC) (GLenum func, GLclampx ref);
  321. typedef void (GL_APIENTRYP PFNGLCLEARCOLORXOESPROC) (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
  322. typedef void (GL_APIENTRYP PFNGLCLEARDEPTHXOESPROC) (GLclampx depth);
  323. typedef void (GL_APIENTRYP PFNGLCLIPPLANEXOESPROC) (GLenum plane, const GLfixed *equation);
  324. typedef void (GL_APIENTRYP PFNGLCOLOR4XOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
  325. typedef void (GL_APIENTRYP PFNGLDEPTHRANGEXOESPROC) (GLclampx zNear, GLclampx zFar);
  326. typedef void (GL_APIENTRYP PFNGLFOGXOESPROC) (GLenum pname, GLfixed param);
  327. typedef void (GL_APIENTRYP PFNGLFOGXVOESPROC) (GLenum pname, const GLfixed *params);
  328. typedef void (GL_APIENTRYP PFNGLFRUSTUMXOESPROC) (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
  329. typedef void (GL_APIENTRYP PFNGLGETCLIPPLANEXOESPROC) (GLenum pname, GLfixed eqn[4]);
  330. typedef void (GL_APIENTRYP PFNGLGETFIXEDVOESPROC) (GLenum pname, GLfixed *params);
  331. typedef void (GL_APIENTRYP PFNGLGETLIGHTXVOESPROC) (GLenum light, GLenum pname, GLfixed *params);
  332. typedef void (GL_APIENTRYP PFNGLGETMATERIALXVOESPROC) (GLenum face, GLenum pname, GLfixed *params);
  333. typedef void (GL_APIENTRYP PFNGLGETTEXENVXVOESPROC) (GLenum env, GLenum pname, GLfixed *params);
  334. typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
  335. typedef void (GL_APIENTRYP PFNGLLIGHTMODELXOESPROC) (GLenum pname, GLfixed param);
  336. typedef void (GL_APIENTRYP PFNGLLIGHTMODELXVOESPROC) (GLenum pname, const GLfixed *params);
  337. typedef void (GL_APIENTRYP PFNGLLIGHTXOESPROC) (GLenum light, GLenum pname, GLfixed param);
  338. typedef void (GL_APIENTRYP PFNGLLIGHTXVOESPROC) (GLenum light, GLenum pname, const GLfixed *params);
  339. typedef void (GL_APIENTRYP PFNGLLINEWIDTHXOESPROC) (GLfixed width);
  340. typedef void (GL_APIENTRYP PFNGLLOADMATRIXXOESPROC) (const GLfixed *m);
  341. typedef void (GL_APIENTRYP PFNGLMATERIALXOESPROC) (GLenum face, GLenum pname, GLfixed param);
  342. typedef void (GL_APIENTRYP PFNGLMATERIALXVOESPROC) (GLenum face, GLenum pname, const GLfixed *params);
  343. typedef void (GL_APIENTRYP PFNGLMULTMATRIXXOESPROC) (const GLfixed *m);
  344. typedef void (GL_APIENTRYP PFNGLMULTITEXCOORD4XOESPROC) (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
  345. typedef void (GL_APIENTRYP PFNGLNORMAL3XOESPROC) (GLfixed nx, GLfixed ny, GLfixed nz);
  346. typedef void (GL_APIENTRYP PFNGLORTHOXOESPROC) (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
  347. typedef void (GL_APIENTRYP PFNGLPOINTPARAMETERXOESPROC) (GLenum pname, GLfixed param);
  348. typedef void (GL_APIENTRYP PFNGLPOINTPARAMETERXVOESPROC) (GLenum pname, const GLfixed *params);
  349. typedef void (GL_APIENTRYP PFNGLPOINTSIZEXOESPROC) (GLfixed size);
  350. typedef void (GL_APIENTRYP PFNGLPOLYGONOFFSETXOESPROC) (GLfixed factor, GLfixed units);
  351. typedef void (GL_APIENTRYP PFNGLROTATEXOESPROC) (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
  352. typedef void (GL_APIENTRYP PFNGLSAMPLECOVERAGEXOESPROC) (GLclampx value, GLboolean invert);
  353. typedef void (GL_APIENTRYP PFNGLSCALEXOESPROC) (GLfixed x, GLfixed y, GLfixed z);
  354. typedef void (GL_APIENTRYP PFNGLTEXENVXOESPROC) (GLenum target, GLenum pname, GLfixed param);
  355. typedef void (GL_APIENTRYP PFNGLTEXENVXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params);
  356. typedef void (GL_APIENTRYP PFNGLTEXPARAMETERXOESPROC) (GLenum target, GLenum pname, GLfixed param);
  357. typedef void (GL_APIENTRYP PFNGLTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params);
  358. typedef void (GL_APIENTRYP PFNGLTRANSLATEXOESPROC) (GLfixed x, GLfixed y, GLfixed z);
  359. #endif
  360. /* GL_OES_framebuffer_object */
  361. #ifndef GL_OES_framebuffer_object
  362. #define GL_OES_framebuffer_object 1
  363. #ifdef GL_GLEXT_PROTOTYPES
  364. GL_API GLboolean GL_APIENTRY glIsRenderbufferOES (GLuint renderbuffer);
  365. GL_API void GL_APIENTRY glBindRenderbufferOES (GLenum target, GLuint renderbuffer);
  366. GL_API void GL_APIENTRY glDeleteRenderbuffersOES (GLsizei n, const GLuint* renderbuffers);
  367. GL_API void GL_APIENTRY glGenRenderbuffersOES (GLsizei n, GLuint* renderbuffers);
  368. GL_API void GL_APIENTRY glRenderbufferStorageOES (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
  369. GL_API void GL_APIENTRY glGetRenderbufferParameterivOES (GLenum target, GLenum pname, GLint* params);
  370. GL_API GLboolean GL_APIENTRY glIsFramebufferOES (GLuint framebuffer);
  371. GL_API void GL_APIENTRY glBindFramebufferOES (GLenum target, GLuint framebuffer);
  372. GL_API void GL_APIENTRY glDeleteFramebuffersOES (GLsizei n, const GLuint* framebuffers);
  373. GL_API void GL_APIENTRY glGenFramebuffersOES (GLsizei n, GLuint* framebuffers);
  374. GL_API GLenum GL_APIENTRY glCheckFramebufferStatusOES (GLenum target);
  375. GL_API void GL_APIENTRY glFramebufferRenderbufferOES (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
  376. GL_API void GL_APIENTRY glFramebufferTexture2DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
  377. GL_API void GL_APIENTRY glGetFramebufferAttachmentParameterivOES (GLenum target, GLenum attachment, GLenum pname, GLint* params);
  378. GL_API void GL_APIENTRY glGenerateMipmapOES (GLenum target);
  379. #endif
  380. typedef GLboolean (GL_APIENTRYP PFNGLISRENDERBUFFEROESPROC) (GLuint renderbuffer);
  381. typedef void (GL_APIENTRYP PFNGLBINDRENDERBUFFEROESPROC) (GLenum target, GLuint renderbuffer);
  382. typedef void (GL_APIENTRYP PFNGLDELETERENDERBUFFERSOESPROC) (GLsizei n, const GLuint* renderbuffers);
  383. typedef void (GL_APIENTRYP PFNGLGENRENDERBUFFERSOESPROC) (GLsizei n, GLuint* renderbuffers);
  384. typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
  385. typedef void (GL_APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVOESPROC) (GLenum target, GLenum pname, GLint* params);
  386. typedef GLboolean (GL_APIENTRYP PFNGLISFRAMEBUFFEROESPROC) (GLuint framebuffer);
  387. typedef void (GL_APIENTRYP PFNGLBINDFRAMEBUFFEROESPROC) (GLenum target, GLuint framebuffer);
  388. typedef void (GL_APIENTRYP PFNGLDELETEFRAMEBUFFERSOESPROC) (GLsizei n, const GLuint* framebuffers);
  389. typedef void (GL_APIENTRYP PFNGLGENFRAMEBUFFERSOESPROC) (GLsizei n, GLuint* framebuffers);
  390. typedef GLenum (GL_APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSOESPROC) (GLenum target);
  391. typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFEROESPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
  392. typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DOESPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
  393. typedef void (GL_APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVOESPROC) (GLenum target, GLenum attachment, GLenum pname, GLint* params);
  394. typedef void (GL_APIENTRYP PFNGLGENERATEMIPMAPOESPROC) (GLenum target);
  395. #endif
  396. /* GL_OES_matrix_get */
  397. #ifndef GL_OES_matrix_get
  398. #define GL_OES_matrix_get 1
  399. #endif
  400. /* GL_OES_matrix_palette */
  401. #ifndef GL_OES_matrix_palette
  402. #define GL_OES_matrix_palette 1
  403. #ifdef GL_GLEXT_PROTOTYPES
  404. GL_API void GL_APIENTRY glCurrentPaletteMatrixOES (GLuint matrixpaletteindex);
  405. GL_API void GL_APIENTRY glLoadPaletteFromModelViewMatrixOES (void);
  406. GL_API void GL_APIENTRY glMatrixIndexPointerOES (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  407. GL_API void GL_APIENTRY glWeightPointerOES (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  408. #endif
  409. typedef void (GL_APIENTRYP PFNGLCURRENTPALETTEMATRIXOESPROC) (GLuint matrixpaletteindex);
  410. typedef void (GL_APIENTRYP PFNGLLOADPALETTEFROMMODELVIEWMATRIXOESPROC) (void);
  411. typedef void (GL_APIENTRYP PFNGLMATRIXINDEXPOINTEROESPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  412. typedef void (GL_APIENTRYP PFNGLWEIGHTPOINTEROESPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  413. #endif
  414. /* GL_OES_query_matrix */
  415. #ifndef GL_OES_query_matrix
  416. #define GL_OES_query_matrix 1
  417. #ifdef GL_GLEXT_PROTOTYPES
  418. GL_API GLbitfield GL_APIENTRY glQueryMatrixxOES (GLfixed mantissa[16], GLint exponent[16]);
  419. #endif
  420. typedef GLbitfield (GL_APIENTRYP PFNGLQUERYMATRIXXOESPROC) (GLfixed mantissa[16], GLint exponent[16]);
  421. #endif
  422. /* GL_OES_single_precision */
  423. #ifndef GL_OES_single_precision
  424. #define GL_OES_single_precision 1
  425. #ifdef GL_GLEXT_PROTOTYPES
  426. GL_API void GL_APIENTRY glDepthRangefOES (GLclampf zNear, GLclampf zFar);
  427. GL_API void GL_APIENTRY glFrustumfOES (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
  428. GL_API void GL_APIENTRY glOrthofOES (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
  429. GL_API void GL_APIENTRY glClipPlanefOES (GLenum plane, const GLfloat *equation);
  430. GL_API void GL_APIENTRY glGetClipPlanefOES (GLenum pname, GLfloat eqn[4]);
  431. GL_API void GL_APIENTRY glClearDepthfOES (GLclampf depth);
  432. #endif
  433. typedef void (GL_APIENTRYP PFNGLDEPTHRANGEFOESPROC) (GLclampf zNear, GLclampf zFar);
  434. typedef void (GL_APIENTRYP PFNGLFRUSTUMFOESPROC) (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
  435. typedef void (GL_APIENTRYP PFNGLORTHOFOESPROC) (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
  436. typedef void (GL_APIENTRYP PFNGLCLIPPLANEFOESPROC) (GLenum plane, const GLfloat *equation);
  437. typedef void (GL_APIENTRYP PFNGLGETCLIPPLANEFOESPROC) (GLenum pname, GLfloat eqn[4]);
  438. typedef void (GL_APIENTRYP PFNGLCLEARDEPTHFOESPROC) (GLclampf depth);
  439. #endif
  440. /* GL_OES_stencil_wrap */
  441. #ifndef GL_OES_stencil_wrap
  442. #define GL_OES_stencil_wrap 1
  443. #endif
  444. /* GL_OES_texture_cube_map */
  445. #ifndef GL_OES_texture_cube_map
  446. #define GL_OES_texture_cube_map 1
  447. #ifdef GL_GLEXT_PROTOTYPES
  448. GL_API void GL_APIENTRY glTexGenfOES (GLenum coord, GLenum pname, GLfloat param);
  449. GL_API void GL_APIENTRY glTexGenfvOES (GLenum coord, GLenum pname, const GLfloat *params);
  450. GL_API void GL_APIENTRY glTexGeniOES (GLenum coord, GLenum pname, GLint param);
  451. GL_API void GL_APIENTRY glTexGenivOES (GLenum coord, GLenum pname, const GLint *params);
  452. GL_API void GL_APIENTRY glTexGenxOES (GLenum coord, GLenum pname, GLfixed param);
  453. GL_API void GL_APIENTRY glTexGenxvOES (GLenum coord, GLenum pname, const GLfixed *params);
  454. GL_API void GL_APIENTRY glGetTexGenfvOES (GLenum coord, GLenum pname, GLfloat *params);
  455. GL_API void GL_APIENTRY glGetTexGenivOES (GLenum coord, GLenum pname, GLint *params);
  456. GL_API void GL_APIENTRY glGetTexGenxvOES (GLenum coord, GLenum pname, GLfixed *params);
  457. #endif
  458. typedef void (GL_APIENTRYP PFNGLTEXGENFOESPROC) (GLenum coord, GLenum pname, GLfloat param);
  459. typedef void (GL_APIENTRYP PFNGLTEXGENFVOESPROC) (GLenum coord, GLenum pname, const GLfloat *params);
  460. typedef void (GL_APIENTRYP PFNGLTEXGENIOESPROC) (GLenum coord, GLenum pname, GLint param);
  461. typedef void (GL_APIENTRYP PFNGLTEXGENIVOESPROC) (GLenum coord, GLenum pname, const GLint *params);
  462. typedef void (GL_APIENTRYP PFNGLTEXGENXOESPROC) (GLenum coord, GLenum pname, GLfixed param);
  463. typedef void (GL_APIENTRYP PFNGLTEXGENXVOESPROC) (GLenum coord, GLenum pname, const GLfixed *params);
  464. typedef void (GL_APIENTRYP PFNGLGETTEXGENFVOESPROC) (GLenum coord, GLenum pname, GLfloat *params);
  465. typedef void (GL_APIENTRYP PFNGLGETTEXGENIVOESPROC) (GLenum coord, GLenum pname, GLint *params);
  466. typedef void (GL_APIENTRYP PFNGLGETTEXGENXVOESPROC) (GLenum coord, GLenum pname, GLfixed *params);
  467. #endif
  468. /* GL_OES_texture_env_crossbar */
  469. #ifndef GL_OES_texture_env_crossbar
  470. #define GL_OES_texture_env_crossbar 1
  471. #endif
  472. /* GL_OES_texture_mirrored_repeat */
  473. #ifndef GL_OES_texture_mirrored_repeat
  474. #define GL_OES_texture_mirrored_repeat 1
  475. #endif
  476. /* GL_OES_EGL_image */
  477. #ifndef GL_OES_EGL_image
  478. #define GL_OES_EGL_image 1
  479. #ifdef GL_GLEXT_PROTOTYPES
  480. GL_API void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
  481. GL_API void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
  482. #endif
  483. typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
  484. typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
  485. #endif
  486. /* GL_OES_depth24 */
  487. #ifndef GL_OES_depth24
  488. #define GL_OES_depth24 1
  489. #endif
  490. /* GL_OES_depth32 */
  491. #ifndef GL_OES_depth32
  492. #define GL_OES_depth32 1
  493. #endif
  494. /* GL_OES_element_index_uint */
  495. #ifndef GL_OES_element_index_uint
  496. #define GL_OES_element_index_uint 1
  497. #endif
  498. /* GL_OES_fbo_render_mipmap */
  499. #ifndef GL_OES_fbo_render_mipmap
  500. #define GL_OES_fbo_render_mipmap 1
  501. #endif
  502. /* GL_OES_mapbuffer */
  503. #ifndef GL_OES_mapbuffer
  504. #define GL_OES_mapbuffer 1
  505. #ifdef GL_GLEXT_PROTOTYPES
  506. GL_API void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
  507. GL_API GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
  508. GL_API void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, void** params);
  509. #endif
  510. typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
  511. typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
  512. typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, void** params);
  513. #endif
  514. /* GL_OES_rgb8_rgba8 */
  515. #ifndef GL_OES_rgb8_rgba8
  516. #define GL_OES_rgb8_rgba8 1
  517. #endif
  518. /* GL_OES_stencil1 */
  519. #ifndef GL_OES_stencil1
  520. #define GL_OES_stencil1 1
  521. #endif
  522. /* GL_OES_stencil4 */
  523. #ifndef GL_OES_stencil4
  524. #define GL_OES_stencil4 1
  525. #endif
  526. /* GL_OES_stencil8 */
  527. #ifndef GL_OES_stencil8
  528. #define GL_OES_stencil8 1
  529. #endif
  530. /* GL_AMD_compressed_3DC_texture */
  531. #ifndef GL_AMD_compressed_3DC_texture
  532. #define GL_AMD_compressed_3DC_texture 1
  533. #endif
  534. /* GL_AMD_compressed_ATC_texture */
  535. #ifndef GL_AMD_compressed_ATC_texture
  536. #define GL_AMD_compressed_ATC_texture 1
  537. #endif
  538. /* GL_EXT_texture_filter_anisotropic */
  539. #ifndef GL_EXT_texture_filter_anisotropic
  540. #define GL_EXT_texture_filter_anisotropic 1
  541. #endif
  542. #ifdef __cplusplus
  543. }
  544. #endif
  545. #endif /* __glext_h_ */