qgl.h 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1999-2005 Id Software, Inc.
  4. This file is part of Quake III Arena source code.
  5. Quake III Arena source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake III Arena source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Foobar; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. /*
  19. ** QGL.H
  20. */
  21. #ifndef __QGL_H__
  22. #define __QGL_H__
  23. #if defined( __LINT__ )
  24. #include <GL/gl.h>
  25. #elif defined( _WIN32 )
  26. #pragma warning (disable: 4201)
  27. #pragma warning (disable: 4214)
  28. #pragma warning (disable: 4514)
  29. #pragma warning (disable: 4032)
  30. #pragma warning (disable: 4201)
  31. #pragma warning (disable: 4214)
  32. #include <windows.h>
  33. #include <gl/gl.h>
  34. #elif defined(MACOS_X)
  35. #include "macosx_glimp.h"
  36. #elif defined( __linux__ )
  37. #include <GL/gl.h>
  38. #include <GL/glx.h>
  39. // bk001129 - from cvs1.17 (mkv)
  40. #if defined(__FX__)
  41. #include <GL/fxmesa.h>
  42. #endif
  43. #elif defined( __FreeBSD__ ) // rb010123
  44. #include <GL/gl.h>
  45. #include <GL/glx.h>
  46. #if defined(__FX__)
  47. #include <GL/fxmesa.h>
  48. #endif
  49. #else
  50. #include <gl.h>
  51. #endif
  52. #ifndef APIENTRY
  53. #define APIENTRY
  54. #endif
  55. #ifndef WINAPI
  56. #define WINAPI
  57. #endif
  58. //===========================================================================
  59. /*
  60. ** multitexture extension definitions
  61. */
  62. #define GL_ACTIVE_TEXTURE_ARB 0x84E0
  63. #define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1
  64. #define GL_MAX_ACTIVE_TEXTURES_ARB 0x84E2
  65. #define GL_TEXTURE0_ARB 0x84C0
  66. #define GL_TEXTURE1_ARB 0x84C1
  67. #define GL_TEXTURE2_ARB 0x84C2
  68. #define GL_TEXTURE3_ARB 0x84C3
  69. // NOTE: some Linux platforms would need those prototypes
  70. #if defined(MACOS_X)
  71. typedef void (APIENTRY * PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s);
  72. typedef void (APIENTRY * PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v);
  73. typedef void (APIENTRY * PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s);
  74. typedef void (APIENTRY * PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v);
  75. typedef void (APIENTRY * PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s);
  76. typedef void (APIENTRY * PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v);
  77. typedef void (APIENTRY * PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s);
  78. typedef void (APIENTRY * PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v);
  79. typedef void (APIENTRY * PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t);
  80. typedef void (APIENTRY * PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v);
  81. typedef void (APIENTRY * PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
  82. typedef void (APIENTRY * PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v);
  83. typedef void (APIENTRY * PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t);
  84. typedef void (APIENTRY * PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v);
  85. typedef void (APIENTRY * PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t);
  86. typedef void (APIENTRY * PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v);
  87. typedef void (APIENTRY * PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
  88. typedef void (APIENTRY * PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v);
  89. typedef void (APIENTRY * PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
  90. typedef void (APIENTRY * PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v);
  91. typedef void (APIENTRY * PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r);
  92. typedef void (APIENTRY * PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v);
  93. typedef void (APIENTRY * PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
  94. typedef void (APIENTRY * PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v);
  95. typedef void (APIENTRY * PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  96. typedef void (APIENTRY * PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v);
  97. typedef void (APIENTRY * PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  98. typedef void (APIENTRY * PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v);
  99. typedef void (APIENTRY * PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
  100. typedef void (APIENTRY * PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v);
  101. typedef void (APIENTRY * PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
  102. typedef void (APIENTRY * PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v);
  103. typedef void (APIENTRY * PFNGLACTIVETEXTUREARBPROC) (GLenum target);
  104. typedef void (APIENTRY * PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum target);
  105. #endif
  106. // TTimo - VC7 / XP ?
  107. #ifdef WIN32
  108. typedef void (APIENTRY * PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
  109. typedef void (APIENTRY * PFNGLACTIVETEXTUREARBPROC) (GLenum target);
  110. typedef void (APIENTRY * PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum target);
  111. #endif
  112. /*
  113. ** extension constants
  114. */
  115. // S3TC compression constants
  116. #define GL_RGB_S3TC 0x83A0
  117. #define GL_RGB4_S3TC 0x83A1
  118. // extensions will be function pointers on all platforms
  119. extern void ( APIENTRY * qglMultiTexCoord2fARB )( GLenum texture, GLfloat s, GLfloat t );
  120. extern void ( APIENTRY * qglActiveTextureARB )( GLenum texture );
  121. extern void ( APIENTRY * qglClientActiveTextureARB )( GLenum texture );
  122. extern void ( APIENTRY * qglLockArraysEXT) (GLint, GLint);
  123. extern void ( APIENTRY * qglUnlockArraysEXT) (void);
  124. //===========================================================================
  125. // non-windows systems will just redefine qgl* to gl*
  126. #if !defined( _WIN32 ) && !defined(MACOS_X) && !defined( __linux__ ) && !defined( __FreeBSD__ ) // rb010123
  127. #include "qgl_linked.h"
  128. #elif defined(MACOS_X)
  129. // This includes #ifdefs for optional logging and GL error checking after every GL call as well as #defines to prevent incorrect usage of the non-'qgl' versions of the GL API.
  130. #include "macosx_qgl.h"
  131. #else
  132. // windows systems use a function pointer for each call so we can load minidrivers
  133. extern void ( APIENTRY * qglAccum )(GLenum op, GLfloat value);
  134. extern void ( APIENTRY * qglAlphaFunc )(GLenum func, GLclampf ref);
  135. extern GLboolean ( APIENTRY * qglAreTexturesResident )(GLsizei n, const GLuint *textures, GLboolean *residences);
  136. extern void ( APIENTRY * qglArrayElement )(GLint i);
  137. extern void ( APIENTRY * qglBegin )(GLenum mode);
  138. extern void ( APIENTRY * qglBindTexture )(GLenum target, GLuint texture);
  139. extern void ( APIENTRY * qglBitmap )(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
  140. extern void ( APIENTRY * qglBlendFunc )(GLenum sfactor, GLenum dfactor);
  141. extern void ( APIENTRY * qglCallList )(GLuint list);
  142. extern void ( APIENTRY * qglCallLists )(GLsizei n, GLenum type, const GLvoid *lists);
  143. extern void ( APIENTRY * qglClear )(GLbitfield mask);
  144. extern void ( APIENTRY * qglClearAccum )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  145. extern void ( APIENTRY * qglClearColor )(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
  146. extern void ( APIENTRY * qglClearDepth )(GLclampd depth);
  147. extern void ( APIENTRY * qglClearIndex )(GLfloat c);
  148. extern void ( APIENTRY * qglClearStencil )(GLint s);
  149. extern void ( APIENTRY * qglClipPlane )(GLenum plane, const GLdouble *equation);
  150. extern void ( APIENTRY * qglColor3b )(GLbyte red, GLbyte green, GLbyte blue);
  151. extern void ( APIENTRY * qglColor3bv )(const GLbyte *v);
  152. extern void ( APIENTRY * qglColor3d )(GLdouble red, GLdouble green, GLdouble blue);
  153. extern void ( APIENTRY * qglColor3dv )(const GLdouble *v);
  154. extern void ( APIENTRY * qglColor3f )(GLfloat red, GLfloat green, GLfloat blue);
  155. extern void ( APIENTRY * qglColor3fv )(const GLfloat *v);
  156. extern void ( APIENTRY * qglColor3i )(GLint red, GLint green, GLint blue);
  157. extern void ( APIENTRY * qglColor3iv )(const GLint *v);
  158. extern void ( APIENTRY * qglColor3s )(GLshort red, GLshort green, GLshort blue);
  159. extern void ( APIENTRY * qglColor3sv )(const GLshort *v);
  160. extern void ( APIENTRY * qglColor3ub )(GLubyte red, GLubyte green, GLubyte blue);
  161. extern void ( APIENTRY * qglColor3ubv )(const GLubyte *v);
  162. extern void ( APIENTRY * qglColor3ui )(GLuint red, GLuint green, GLuint blue);
  163. extern void ( APIENTRY * qglColor3uiv )(const GLuint *v);
  164. extern void ( APIENTRY * qglColor3us )(GLushort red, GLushort green, GLushort blue);
  165. extern void ( APIENTRY * qglColor3usv )(const GLushort *v);
  166. extern void ( APIENTRY * qglColor4b )(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
  167. extern void ( APIENTRY * qglColor4bv )(const GLbyte *v);
  168. extern void ( APIENTRY * qglColor4d )(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
  169. extern void ( APIENTRY * qglColor4dv )(const GLdouble *v);
  170. extern void ( APIENTRY * qglColor4f )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  171. extern void ( APIENTRY * qglColor4fv )(const GLfloat *v);
  172. extern void ( APIENTRY * qglColor4i )(GLint red, GLint green, GLint blue, GLint alpha);
  173. extern void ( APIENTRY * qglColor4iv )(const GLint *v);
  174. extern void ( APIENTRY * qglColor4s )(GLshort red, GLshort green, GLshort blue, GLshort alpha);
  175. extern void ( APIENTRY * qglColor4sv )(const GLshort *v);
  176. extern void ( APIENTRY * qglColor4ub )(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
  177. extern void ( APIENTRY * qglColor4ubv )(const GLubyte *v);
  178. extern void ( APIENTRY * qglColor4ui )(GLuint red, GLuint green, GLuint blue, GLuint alpha);
  179. extern void ( APIENTRY * qglColor4uiv )(const GLuint *v);
  180. extern void ( APIENTRY * qglColor4us )(GLushort red, GLushort green, GLushort blue, GLushort alpha);
  181. extern void ( APIENTRY * qglColor4usv )(const GLushort *v);
  182. extern void ( APIENTRY * qglColorMask )(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
  183. extern void ( APIENTRY * qglColorMaterial )(GLenum face, GLenum mode);
  184. extern void ( APIENTRY * qglColorPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  185. extern void ( APIENTRY * qglCopyPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
  186. extern void ( APIENTRY * qglCopyTexImage1D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
  187. extern void ( APIENTRY * qglCopyTexImage2D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
  188. extern void ( APIENTRY * qglCopyTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
  189. extern void ( APIENTRY * qglCopyTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  190. extern void ( APIENTRY * qglCullFace )(GLenum mode);
  191. extern void ( APIENTRY * qglDeleteLists )(GLuint list, GLsizei range);
  192. extern void ( APIENTRY * qglDeleteTextures )(GLsizei n, const GLuint *textures);
  193. extern void ( APIENTRY * qglDepthFunc )(GLenum func);
  194. extern void ( APIENTRY * qglDepthMask )(GLboolean flag);
  195. extern void ( APIENTRY * qglDepthRange )(GLclampd zNear, GLclampd zFar);
  196. extern void ( APIENTRY * qglDisable )(GLenum cap);
  197. extern void ( APIENTRY * qglDisableClientState )(GLenum array);
  198. extern void ( APIENTRY * qglDrawArrays )(GLenum mode, GLint first, GLsizei count);
  199. extern void ( APIENTRY * qglDrawBuffer )(GLenum mode);
  200. extern void ( APIENTRY * qglDrawElements )(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
  201. extern void ( APIENTRY * qglDrawPixels )(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
  202. extern void ( APIENTRY * qglEdgeFlag )(GLboolean flag);
  203. extern void ( APIENTRY * qglEdgeFlagPointer )(GLsizei stride, const GLvoid *pointer);
  204. extern void ( APIENTRY * qglEdgeFlagv )(const GLboolean *flag);
  205. extern void ( APIENTRY * qglEnable )(GLenum cap);
  206. extern void ( APIENTRY * qglEnableClientState )(GLenum array);
  207. extern void ( APIENTRY * qglEnd )(void);
  208. extern void ( APIENTRY * qglEndList )(void);
  209. extern void ( APIENTRY * qglEvalCoord1d )(GLdouble u);
  210. extern void ( APIENTRY * qglEvalCoord1dv )(const GLdouble *u);
  211. extern void ( APIENTRY * qglEvalCoord1f )(GLfloat u);
  212. extern void ( APIENTRY * qglEvalCoord1fv )(const GLfloat *u);
  213. extern void ( APIENTRY * qglEvalCoord2d )(GLdouble u, GLdouble v);
  214. extern void ( APIENTRY * qglEvalCoord2dv )(const GLdouble *u);
  215. extern void ( APIENTRY * qglEvalCoord2f )(GLfloat u, GLfloat v);
  216. extern void ( APIENTRY * qglEvalCoord2fv )(const GLfloat *u);
  217. extern void ( APIENTRY * qglEvalMesh1 )(GLenum mode, GLint i1, GLint i2);
  218. extern void ( APIENTRY * qglEvalMesh2 )(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
  219. extern void ( APIENTRY * qglEvalPoint1 )(GLint i);
  220. extern void ( APIENTRY * qglEvalPoint2 )(GLint i, GLint j);
  221. extern void ( APIENTRY * qglFeedbackBuffer )(GLsizei size, GLenum type, GLfloat *buffer);
  222. extern void ( APIENTRY * qglFinish )(void);
  223. extern void ( APIENTRY * qglFlush )(void);
  224. extern void ( APIENTRY * qglFogf )(GLenum pname, GLfloat param);
  225. extern void ( APIENTRY * qglFogfv )(GLenum pname, const GLfloat *params);
  226. extern void ( APIENTRY * qglFogi )(GLenum pname, GLint param);
  227. extern void ( APIENTRY * qglFogiv )(GLenum pname, const GLint *params);
  228. extern void ( APIENTRY * qglFrontFace )(GLenum mode);
  229. extern void ( APIENTRY * qglFrustum )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
  230. extern GLuint ( APIENTRY * qglGenLists )(GLsizei range);
  231. extern void ( APIENTRY * qglGenTextures )(GLsizei n, GLuint *textures);
  232. extern void ( APIENTRY * qglGetBooleanv )(GLenum pname, GLboolean *params);
  233. extern void ( APIENTRY * qglGetClipPlane )(GLenum plane, GLdouble *equation);
  234. extern void ( APIENTRY * qglGetDoublev )(GLenum pname, GLdouble *params);
  235. extern GLenum ( APIENTRY * qglGetError )(void);
  236. extern void ( APIENTRY * qglGetFloatv )(GLenum pname, GLfloat *params);
  237. extern void ( APIENTRY * qglGetIntegerv )(GLenum pname, GLint *params);
  238. extern void ( APIENTRY * qglGetLightfv )(GLenum light, GLenum pname, GLfloat *params);
  239. extern void ( APIENTRY * qglGetLightiv )(GLenum light, GLenum pname, GLint *params);
  240. extern void ( APIENTRY * qglGetMapdv )(GLenum target, GLenum query, GLdouble *v);
  241. extern void ( APIENTRY * qglGetMapfv )(GLenum target, GLenum query, GLfloat *v);
  242. extern void ( APIENTRY * qglGetMapiv )(GLenum target, GLenum query, GLint *v);
  243. extern void ( APIENTRY * qglGetMaterialfv )(GLenum face, GLenum pname, GLfloat *params);
  244. extern void ( APIENTRY * qglGetMaterialiv )(GLenum face, GLenum pname, GLint *params);
  245. extern void ( APIENTRY * qglGetPixelMapfv )(GLenum map, GLfloat *values);
  246. extern void ( APIENTRY * qglGetPixelMapuiv )(GLenum map, GLuint *values);
  247. extern void ( APIENTRY * qglGetPixelMapusv )(GLenum map, GLushort *values);
  248. extern void ( APIENTRY * qglGetPointerv )(GLenum pname, GLvoid* *params);
  249. extern void ( APIENTRY * qglGetPolygonStipple )(GLubyte *mask);
  250. extern const GLubyte * ( APIENTRY * qglGetString )(GLenum name);
  251. extern void ( APIENTRY * qglGetTexEnvfv )(GLenum target, GLenum pname, GLfloat *params);
  252. extern void ( APIENTRY * qglGetTexEnviv )(GLenum target, GLenum pname, GLint *params);
  253. extern void ( APIENTRY * qglGetTexGendv )(GLenum coord, GLenum pname, GLdouble *params);
  254. extern void ( APIENTRY * qglGetTexGenfv )(GLenum coord, GLenum pname, GLfloat *params);
  255. extern void ( APIENTRY * qglGetTexGeniv )(GLenum coord, GLenum pname, GLint *params);
  256. extern void ( APIENTRY * qglGetTexImage )(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
  257. extern void ( APIENTRY * qglGetTexLevelParameterfv )(GLenum target, GLint level, GLenum pname, GLfloat *params);
  258. extern void ( APIENTRY * qglGetTexLevelParameteriv )(GLenum target, GLint level, GLenum pname, GLint *params);
  259. extern void ( APIENTRY * qglGetTexParameterfv )(GLenum target, GLenum pname, GLfloat *params);
  260. extern void ( APIENTRY * qglGetTexParameteriv )(GLenum target, GLenum pname, GLint *params);
  261. extern void ( APIENTRY * qglHint )(GLenum target, GLenum mode);
  262. extern void ( APIENTRY * qglIndexMask )(GLuint mask);
  263. extern void ( APIENTRY * qglIndexPointer )(GLenum type, GLsizei stride, const GLvoid *pointer);
  264. extern void ( APIENTRY * qglIndexd )(GLdouble c);
  265. extern void ( APIENTRY * qglIndexdv )(const GLdouble *c);
  266. extern void ( APIENTRY * qglIndexf )(GLfloat c);
  267. extern void ( APIENTRY * qglIndexfv )(const GLfloat *c);
  268. extern void ( APIENTRY * qglIndexi )(GLint c);
  269. extern void ( APIENTRY * qglIndexiv )(const GLint *c);
  270. extern void ( APIENTRY * qglIndexs )(GLshort c);
  271. extern void ( APIENTRY * qglIndexsv )(const GLshort *c);
  272. extern void ( APIENTRY * qglIndexub )(GLubyte c);
  273. extern void ( APIENTRY * qglIndexubv )(const GLubyte *c);
  274. extern void ( APIENTRY * qglInitNames )(void);
  275. extern void ( APIENTRY * qglInterleavedArrays )(GLenum format, GLsizei stride, const GLvoid *pointer);
  276. extern GLboolean ( APIENTRY * qglIsEnabled )(GLenum cap);
  277. extern GLboolean ( APIENTRY * qglIsList )(GLuint list);
  278. extern GLboolean ( APIENTRY * qglIsTexture )(GLuint texture);
  279. extern void ( APIENTRY * qglLightModelf )(GLenum pname, GLfloat param);
  280. extern void ( APIENTRY * qglLightModelfv )(GLenum pname, const GLfloat *params);
  281. extern void ( APIENTRY * qglLightModeli )(GLenum pname, GLint param);
  282. extern void ( APIENTRY * qglLightModeliv )(GLenum pname, const GLint *params);
  283. extern void ( APIENTRY * qglLightf )(GLenum light, GLenum pname, GLfloat param);
  284. extern void ( APIENTRY * qglLightfv )(GLenum light, GLenum pname, const GLfloat *params);
  285. extern void ( APIENTRY * qglLighti )(GLenum light, GLenum pname, GLint param);
  286. extern void ( APIENTRY * qglLightiv )(GLenum light, GLenum pname, const GLint *params);
  287. extern void ( APIENTRY * qglLineStipple )(GLint factor, GLushort pattern);
  288. extern void ( APIENTRY * qglLineWidth )(GLfloat width);
  289. extern void ( APIENTRY * qglListBase )(GLuint base);
  290. extern void ( APIENTRY * qglLoadIdentity )(void);
  291. extern void ( APIENTRY * qglLoadMatrixd )(const GLdouble *m);
  292. extern void ( APIENTRY * qglLoadMatrixf )(const GLfloat *m);
  293. extern void ( APIENTRY * qglLoadName )(GLuint name);
  294. extern void ( APIENTRY * qglLogicOp )(GLenum opcode);
  295. extern void ( APIENTRY * qglMap1d )(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
  296. extern void ( APIENTRY * qglMap1f )(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
  297. extern void ( APIENTRY * qglMap2d )(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
  298. extern void ( APIENTRY * qglMap2f )(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
  299. extern void ( APIENTRY * qglMapGrid1d )(GLint un, GLdouble u1, GLdouble u2);
  300. extern void ( APIENTRY * qglMapGrid1f )(GLint un, GLfloat u1, GLfloat u2);
  301. extern void ( APIENTRY * qglMapGrid2d )(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
  302. extern void ( APIENTRY * qglMapGrid2f )(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
  303. extern void ( APIENTRY * qglMaterialf )(GLenum face, GLenum pname, GLfloat param);
  304. extern void ( APIENTRY * qglMaterialfv )(GLenum face, GLenum pname, const GLfloat *params);
  305. extern void ( APIENTRY * qglMateriali )(GLenum face, GLenum pname, GLint param);
  306. extern void ( APIENTRY * qglMaterialiv )(GLenum face, GLenum pname, const GLint *params);
  307. extern void ( APIENTRY * qglMatrixMode )(GLenum mode);
  308. extern void ( APIENTRY * qglMultMatrixd )(const GLdouble *m);
  309. extern void ( APIENTRY * qglMultMatrixf )(const GLfloat *m);
  310. extern void ( APIENTRY * qglNewList )(GLuint list, GLenum mode);
  311. extern void ( APIENTRY * qglNormal3b )(GLbyte nx, GLbyte ny, GLbyte nz);
  312. extern void ( APIENTRY * qglNormal3bv )(const GLbyte *v);
  313. extern void ( APIENTRY * qglNormal3d )(GLdouble nx, GLdouble ny, GLdouble nz);
  314. extern void ( APIENTRY * qglNormal3dv )(const GLdouble *v);
  315. extern void ( APIENTRY * qglNormal3f )(GLfloat nx, GLfloat ny, GLfloat nz);
  316. extern void ( APIENTRY * qglNormal3fv )(const GLfloat *v);
  317. extern void ( APIENTRY * qglNormal3i )(GLint nx, GLint ny, GLint nz);
  318. extern void ( APIENTRY * qglNormal3iv )(const GLint *v);
  319. extern void ( APIENTRY * qglNormal3s )(GLshort nx, GLshort ny, GLshort nz);
  320. extern void ( APIENTRY * qglNormal3sv )(const GLshort *v);
  321. extern void ( APIENTRY * qglNormalPointer )(GLenum type, GLsizei stride, const GLvoid *pointer);
  322. extern void ( APIENTRY * qglOrtho )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
  323. extern void ( APIENTRY * qglPassThrough )(GLfloat token);
  324. extern void ( APIENTRY * qglPixelMapfv )(GLenum map, GLsizei mapsize, const GLfloat *values);
  325. extern void ( APIENTRY * qglPixelMapuiv )(GLenum map, GLsizei mapsize, const GLuint *values);
  326. extern void ( APIENTRY * qglPixelMapusv )(GLenum map, GLsizei mapsize, const GLushort *values);
  327. extern void ( APIENTRY * qglPixelStoref )(GLenum pname, GLfloat param);
  328. extern void ( APIENTRY * qglPixelStorei )(GLenum pname, GLint param);
  329. extern void ( APIENTRY * qglPixelTransferf )(GLenum pname, GLfloat param);
  330. extern void ( APIENTRY * qglPixelTransferi )(GLenum pname, GLint param);
  331. extern void ( APIENTRY * qglPixelZoom )(GLfloat xfactor, GLfloat yfactor);
  332. extern void ( APIENTRY * qglPointSize )(GLfloat size);
  333. extern void ( APIENTRY * qglPolygonMode )(GLenum face, GLenum mode);
  334. extern void ( APIENTRY * qglPolygonOffset )(GLfloat factor, GLfloat units);
  335. extern void ( APIENTRY * qglPolygonStipple )(const GLubyte *mask);
  336. extern void ( APIENTRY * qglPopAttrib )(void);
  337. extern void ( APIENTRY * qglPopClientAttrib )(void);
  338. extern void ( APIENTRY * qglPopMatrix )(void);
  339. extern void ( APIENTRY * qglPopName )(void);
  340. extern void ( APIENTRY * qglPrioritizeTextures )(GLsizei n, const GLuint *textures, const GLclampf *priorities);
  341. extern void ( APIENTRY * qglPushAttrib )(GLbitfield mask);
  342. extern void ( APIENTRY * qglPushClientAttrib )(GLbitfield mask);
  343. extern void ( APIENTRY * qglPushMatrix )(void);
  344. extern void ( APIENTRY * qglPushName )(GLuint name);
  345. extern void ( APIENTRY * qglRasterPos2d )(GLdouble x, GLdouble y);
  346. extern void ( APIENTRY * qglRasterPos2dv )(const GLdouble *v);
  347. extern void ( APIENTRY * qglRasterPos2f )(GLfloat x, GLfloat y);
  348. extern void ( APIENTRY * qglRasterPos2fv )(const GLfloat *v);
  349. extern void ( APIENTRY * qglRasterPos2i )(GLint x, GLint y);
  350. extern void ( APIENTRY * qglRasterPos2iv )(const GLint *v);
  351. extern void ( APIENTRY * qglRasterPos2s )(GLshort x, GLshort y);
  352. extern void ( APIENTRY * qglRasterPos2sv )(const GLshort *v);
  353. extern void ( APIENTRY * qglRasterPos3d )(GLdouble x, GLdouble y, GLdouble z);
  354. extern void ( APIENTRY * qglRasterPos3dv )(const GLdouble *v);
  355. extern void ( APIENTRY * qglRasterPos3f )(GLfloat x, GLfloat y, GLfloat z);
  356. extern void ( APIENTRY * qglRasterPos3fv )(const GLfloat *v);
  357. extern void ( APIENTRY * qglRasterPos3i )(GLint x, GLint y, GLint z);
  358. extern void ( APIENTRY * qglRasterPos3iv )(const GLint *v);
  359. extern void ( APIENTRY * qglRasterPos3s )(GLshort x, GLshort y, GLshort z);
  360. extern void ( APIENTRY * qglRasterPos3sv )(const GLshort *v);
  361. extern void ( APIENTRY * qglRasterPos4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  362. extern void ( APIENTRY * qglRasterPos4dv )(const GLdouble *v);
  363. extern void ( APIENTRY * qglRasterPos4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  364. extern void ( APIENTRY * qglRasterPos4fv )(const GLfloat *v);
  365. extern void ( APIENTRY * qglRasterPos4i )(GLint x, GLint y, GLint z, GLint w);
  366. extern void ( APIENTRY * qglRasterPos4iv )(const GLint *v);
  367. extern void ( APIENTRY * qglRasterPos4s )(GLshort x, GLshort y, GLshort z, GLshort w);
  368. extern void ( APIENTRY * qglRasterPos4sv )(const GLshort *v);
  369. extern void ( APIENTRY * qglReadBuffer )(GLenum mode);
  370. extern void ( APIENTRY * qglReadPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
  371. extern void ( APIENTRY * qglRectd )(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
  372. extern void ( APIENTRY * qglRectdv )(const GLdouble *v1, const GLdouble *v2);
  373. extern void ( APIENTRY * qglRectf )(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
  374. extern void ( APIENTRY * qglRectfv )(const GLfloat *v1, const GLfloat *v2);
  375. extern void ( APIENTRY * qglRecti )(GLint x1, GLint y1, GLint x2, GLint y2);
  376. extern void ( APIENTRY * qglRectiv )(const GLint *v1, const GLint *v2);
  377. extern void ( APIENTRY * qglRects )(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
  378. extern void ( APIENTRY * qglRectsv )(const GLshort *v1, const GLshort *v2);
  379. extern GLint ( APIENTRY * qglRenderMode )(GLenum mode);
  380. extern void ( APIENTRY * qglRotated )(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
  381. extern void ( APIENTRY * qglRotatef )(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
  382. extern void ( APIENTRY * qglScaled )(GLdouble x, GLdouble y, GLdouble z);
  383. extern void ( APIENTRY * qglScalef )(GLfloat x, GLfloat y, GLfloat z);
  384. extern void ( APIENTRY * qglScissor )(GLint x, GLint y, GLsizei width, GLsizei height);
  385. extern void ( APIENTRY * qglSelectBuffer )(GLsizei size, GLuint *buffer);
  386. extern void ( APIENTRY * qglShadeModel )(GLenum mode);
  387. extern void ( APIENTRY * qglStencilFunc )(GLenum func, GLint ref, GLuint mask);
  388. extern void ( APIENTRY * qglStencilMask )(GLuint mask);
  389. extern void ( APIENTRY * qglStencilOp )(GLenum fail, GLenum zfail, GLenum zpass);
  390. extern void ( APIENTRY * qglTexCoord1d )(GLdouble s);
  391. extern void ( APIENTRY * qglTexCoord1dv )(const GLdouble *v);
  392. extern void ( APIENTRY * qglTexCoord1f )(GLfloat s);
  393. extern void ( APIENTRY * qglTexCoord1fv )(const GLfloat *v);
  394. extern void ( APIENTRY * qglTexCoord1i )(GLint s);
  395. extern void ( APIENTRY * qglTexCoord1iv )(const GLint *v);
  396. extern void ( APIENTRY * qglTexCoord1s )(GLshort s);
  397. extern void ( APIENTRY * qglTexCoord1sv )(const GLshort *v);
  398. extern void ( APIENTRY * qglTexCoord2d )(GLdouble s, GLdouble t);
  399. extern void ( APIENTRY * qglTexCoord2dv )(const GLdouble *v);
  400. extern void ( APIENTRY * qglTexCoord2f )(GLfloat s, GLfloat t);
  401. extern void ( APIENTRY * qglTexCoord2fv )(const GLfloat *v);
  402. extern void ( APIENTRY * qglTexCoord2i )(GLint s, GLint t);
  403. extern void ( APIENTRY * qglTexCoord2iv )(const GLint *v);
  404. extern void ( APIENTRY * qglTexCoord2s )(GLshort s, GLshort t);
  405. extern void ( APIENTRY * qglTexCoord2sv )(const GLshort *v);
  406. extern void ( APIENTRY * qglTexCoord3d )(GLdouble s, GLdouble t, GLdouble r);
  407. extern void ( APIENTRY * qglTexCoord3dv )(const GLdouble *v);
  408. extern void ( APIENTRY * qglTexCoord3f )(GLfloat s, GLfloat t, GLfloat r);
  409. extern void ( APIENTRY * qglTexCoord3fv )(const GLfloat *v);
  410. extern void ( APIENTRY * qglTexCoord3i )(GLint s, GLint t, GLint r);
  411. extern void ( APIENTRY * qglTexCoord3iv )(const GLint *v);
  412. extern void ( APIENTRY * qglTexCoord3s )(GLshort s, GLshort t, GLshort r);
  413. extern void ( APIENTRY * qglTexCoord3sv )(const GLshort *v);
  414. extern void ( APIENTRY * qglTexCoord4d )(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  415. extern void ( APIENTRY * qglTexCoord4dv )(const GLdouble *v);
  416. extern void ( APIENTRY * qglTexCoord4f )(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  417. extern void ( APIENTRY * qglTexCoord4fv )(const GLfloat *v);
  418. extern void ( APIENTRY * qglTexCoord4i )(GLint s, GLint t, GLint r, GLint q);
  419. extern void ( APIENTRY * qglTexCoord4iv )(const GLint *v);
  420. extern void ( APIENTRY * qglTexCoord4s )(GLshort s, GLshort t, GLshort r, GLshort q);
  421. extern void ( APIENTRY * qglTexCoord4sv )(const GLshort *v);
  422. extern void ( APIENTRY * qglTexCoordPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  423. extern void ( APIENTRY * qglTexEnvf )(GLenum target, GLenum pname, GLfloat param);
  424. extern void ( APIENTRY * qglTexEnvfv )(GLenum target, GLenum pname, const GLfloat *params);
  425. extern void ( APIENTRY * qglTexEnvi )(GLenum target, GLenum pname, GLint param);
  426. extern void ( APIENTRY * qglTexEnviv )(GLenum target, GLenum pname, const GLint *params);
  427. extern void ( APIENTRY * qglTexGend )(GLenum coord, GLenum pname, GLdouble param);
  428. extern void ( APIENTRY * qglTexGendv )(GLenum coord, GLenum pname, const GLdouble *params);
  429. extern void ( APIENTRY * qglTexGenf )(GLenum coord, GLenum pname, GLfloat param);
  430. extern void ( APIENTRY * qglTexGenfv )(GLenum coord, GLenum pname, const GLfloat *params);
  431. extern void ( APIENTRY * qglTexGeni )(GLenum coord, GLenum pname, GLint param);
  432. extern void ( APIENTRY * qglTexGeniv )(GLenum coord, GLenum pname, const GLint *params);
  433. extern void ( APIENTRY * qglTexImage1D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  434. extern void ( APIENTRY * qglTexImage2D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  435. extern void ( APIENTRY * qglTexParameterf )(GLenum target, GLenum pname, GLfloat param);
  436. extern void ( APIENTRY * qglTexParameterfv )(GLenum target, GLenum pname, const GLfloat *params);
  437. extern void ( APIENTRY * qglTexParameteri )(GLenum target, GLenum pname, GLint param);
  438. extern void ( APIENTRY * qglTexParameteriv )(GLenum target, GLenum pname, const GLint *params);
  439. extern void ( APIENTRY * qglTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
  440. extern void ( APIENTRY * qglTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
  441. extern void ( APIENTRY * qglTranslated )(GLdouble x, GLdouble y, GLdouble z);
  442. extern void ( APIENTRY * qglTranslatef )(GLfloat x, GLfloat y, GLfloat z);
  443. extern void ( APIENTRY * qglVertex2d )(GLdouble x, GLdouble y);
  444. extern void ( APIENTRY * qglVertex2dv )(const GLdouble *v);
  445. extern void ( APIENTRY * qglVertex2f )(GLfloat x, GLfloat y);
  446. extern void ( APIENTRY * qglVertex2fv )(const GLfloat *v);
  447. extern void ( APIENTRY * qglVertex2i )(GLint x, GLint y);
  448. extern void ( APIENTRY * qglVertex2iv )(const GLint *v);
  449. extern void ( APIENTRY * qglVertex2s )(GLshort x, GLshort y);
  450. extern void ( APIENTRY * qglVertex2sv )(const GLshort *v);
  451. extern void ( APIENTRY * qglVertex3d )(GLdouble x, GLdouble y, GLdouble z);
  452. extern void ( APIENTRY * qglVertex3dv )(const GLdouble *v);
  453. extern void ( APIENTRY * qglVertex3f )(GLfloat x, GLfloat y, GLfloat z);
  454. extern void ( APIENTRY * qglVertex3fv )(const GLfloat *v);
  455. extern void ( APIENTRY * qglVertex3i )(GLint x, GLint y, GLint z);
  456. extern void ( APIENTRY * qglVertex3iv )(const GLint *v);
  457. extern void ( APIENTRY * qglVertex3s )(GLshort x, GLshort y, GLshort z);
  458. extern void ( APIENTRY * qglVertex3sv )(const GLshort *v);
  459. extern void ( APIENTRY * qglVertex4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  460. extern void ( APIENTRY * qglVertex4dv )(const GLdouble *v);
  461. extern void ( APIENTRY * qglVertex4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  462. extern void ( APIENTRY * qglVertex4fv )(const GLfloat *v);
  463. extern void ( APIENTRY * qglVertex4i )(GLint x, GLint y, GLint z, GLint w);
  464. extern void ( APIENTRY * qglVertex4iv )(const GLint *v);
  465. extern void ( APIENTRY * qglVertex4s )(GLshort x, GLshort y, GLshort z, GLshort w);
  466. extern void ( APIENTRY * qglVertex4sv )(const GLshort *v);
  467. extern void ( APIENTRY * qglVertexPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  468. extern void ( APIENTRY * qglViewport )(GLint x, GLint y, GLsizei width, GLsizei height);
  469. #if defined( _WIN32 )
  470. extern int ( WINAPI * qwglChoosePixelFormat )(HDC, CONST PIXELFORMATDESCRIPTOR *);
  471. extern int ( WINAPI * qwglDescribePixelFormat) (HDC, int, UINT, LPPIXELFORMATDESCRIPTOR);
  472. extern int ( WINAPI * qwglGetPixelFormat)(HDC);
  473. extern BOOL ( WINAPI * qwglSetPixelFormat)(HDC, int, CONST PIXELFORMATDESCRIPTOR *);
  474. extern BOOL ( WINAPI * qwglSwapBuffers)(HDC);
  475. extern BOOL ( WINAPI * qwglGetDeviceGammaRamp3DFX)( HDC, LPVOID );
  476. extern BOOL ( WINAPI * qwglSetDeviceGammaRamp3DFX)( HDC, LPVOID );
  477. extern BOOL ( WINAPI * qwglCopyContext)(HGLRC, HGLRC, UINT);
  478. extern HGLRC ( WINAPI * qwglCreateContext)(HDC);
  479. extern HGLRC ( WINAPI * qwglCreateLayerContext)(HDC, int);
  480. extern BOOL ( WINAPI * qwglDeleteContext)(HGLRC);
  481. extern HGLRC ( WINAPI * qwglGetCurrentContext)(VOID);
  482. extern HDC ( WINAPI * qwglGetCurrentDC)(VOID);
  483. extern PROC ( WINAPI * qwglGetProcAddress)(LPCSTR);
  484. extern BOOL ( WINAPI * qwglMakeCurrent)(HDC, HGLRC);
  485. extern BOOL ( WINAPI * qwglShareLists)(HGLRC, HGLRC);
  486. extern BOOL ( WINAPI * qwglUseFontBitmaps)(HDC, DWORD, DWORD, DWORD);
  487. extern BOOL ( WINAPI * qwglUseFontOutlines)(HDC, DWORD, DWORD, DWORD, FLOAT,
  488. FLOAT, int, LPGLYPHMETRICSFLOAT);
  489. extern BOOL ( WINAPI * qwglDescribeLayerPlane)(HDC, int, int, UINT,
  490. LPLAYERPLANEDESCRIPTOR);
  491. extern int ( WINAPI * qwglSetLayerPaletteEntries)(HDC, int, int, int,
  492. CONST COLORREF *);
  493. extern int ( WINAPI * qwglGetLayerPaletteEntries)(HDC, int, int, int,
  494. COLORREF *);
  495. extern BOOL ( WINAPI * qwglRealizeLayerPalette)(HDC, int, BOOL);
  496. extern BOOL ( WINAPI * qwglSwapLayerBuffers)(HDC, UINT);
  497. extern BOOL ( WINAPI * qwglSwapIntervalEXT)( int interval );
  498. #endif // _WIN32
  499. #if ( (defined __linux__ ) || (defined __FreeBSD__ ) ) // rb010123
  500. //FX Mesa Functions
  501. // bk001129 - from cvs1.17 (mkv)
  502. #if defined (__FX__)
  503. extern fxMesaContext (*qfxMesaCreateContext)(GLuint win, GrScreenResolution_t, GrScreenRefresh_t, const GLint attribList[]);
  504. extern fxMesaContext (*qfxMesaCreateBestContext)(GLuint win, GLint width, GLint height, const GLint attribList[]);
  505. extern void (*qfxMesaDestroyContext)(fxMesaContext ctx);
  506. extern void (*qfxMesaMakeCurrent)(fxMesaContext ctx);
  507. extern fxMesaContext (*qfxMesaGetCurrentContext)(void);
  508. extern void (*qfxMesaSwapBuffers)(void);
  509. #endif
  510. //GLX Functions
  511. extern XVisualInfo * (*qglXChooseVisual)( Display *dpy, int screen, int *attribList );
  512. extern GLXContext (*qglXCreateContext)( Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct );
  513. extern void (*qglXDestroyContext)( Display *dpy, GLXContext ctx );
  514. extern Bool (*qglXMakeCurrent)( Display *dpy, GLXDrawable drawable, GLXContext ctx);
  515. extern void (*qglXCopyContext)( Display *dpy, GLXContext src, GLXContext dst, GLuint mask );
  516. extern void (*qglXSwapBuffers)( Display *dpy, GLXDrawable drawable );
  517. #endif // __linux__ || __FreeBSD__ // rb010123
  518. #endif // _WIN32 && __linux__
  519. #endif