QGL.H 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  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. #ifdef _WIN32
  24. # include <windows.h>
  25. #endif
  26. #include <gl/gl.h>
  27. #include <gl/glu.h>
  28. int QGL_Init( const char *dllname, const char* pGluName );
  29. void QGL_Shutdown();
  30. #ifndef APIENTRY
  31. # define APIENTRY
  32. #endif
  33. extern void ( APIENTRY * qglAccum )(GLenum op, GLfloat value);
  34. extern void ( APIENTRY * qglAlphaFunc )(GLenum func, GLclampf ref);
  35. extern GLboolean ( APIENTRY * qglAreTexturesResident )(GLsizei n, const GLuint *textures, GLboolean *residences);
  36. extern void ( APIENTRY * qglArrayElement )(GLint i);
  37. extern void ( APIENTRY * qglBegin )(GLenum mode);
  38. extern void ( APIENTRY * qglBindTexture )(GLenum target, GLuint texture);
  39. extern void ( APIENTRY * qglBitmap )(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
  40. extern void ( APIENTRY * qglBlendFunc )(GLenum sfactor, GLenum dfactor);
  41. extern void ( APIENTRY * qglCallList )(GLuint list);
  42. extern void ( APIENTRY * qglCallLists )(GLsizei n, GLenum type, const GLvoid *lists);
  43. extern void ( APIENTRY * qglClear )(GLbitfield mask);
  44. extern void ( APIENTRY * qglClearAccum )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  45. extern void ( APIENTRY * qglClearColor )(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
  46. extern void ( APIENTRY * qglClearDepth )(GLclampd depth);
  47. extern void ( APIENTRY * qglClearIndex )(GLfloat c);
  48. extern void ( APIENTRY * qglClearStencil )(GLint s);
  49. extern void ( APIENTRY * qglClipPlane )(GLenum plane, const GLdouble *equation);
  50. extern void ( APIENTRY * qglColor3b )(GLbyte red, GLbyte green, GLbyte blue);
  51. extern void ( APIENTRY * qglColor3bv )(const GLbyte *v);
  52. extern void ( APIENTRY * qglColor3d )(GLdouble red, GLdouble green, GLdouble blue);
  53. extern void ( APIENTRY * qglColor3dv )(const GLdouble *v);
  54. extern void ( APIENTRY * qglColor3f )(GLfloat red, GLfloat green, GLfloat blue);
  55. extern void ( APIENTRY * qglColor3fv )(const GLfloat *v);
  56. extern void ( APIENTRY * qglColor3i )(GLint red, GLint green, GLint blue);
  57. extern void ( APIENTRY * qglColor3iv )(const GLint *v);
  58. extern void ( APIENTRY * qglColor3s )(GLshort red, GLshort green, GLshort blue);
  59. extern void ( APIENTRY * qglColor3sv )(const GLshort *v);
  60. extern void ( APIENTRY * qglColor3ub )(GLubyte red, GLubyte green, GLubyte blue);
  61. extern void ( APIENTRY * qglColor3ubv )(const GLubyte *v);
  62. extern void ( APIENTRY * qglColor3ui )(GLuint red, GLuint green, GLuint blue);
  63. extern void ( APIENTRY * qglColor3uiv )(const GLuint *v);
  64. extern void ( APIENTRY * qglColor3us )(GLushort red, GLushort green, GLushort blue);
  65. extern void ( APIENTRY * qglColor3usv )(const GLushort *v);
  66. extern void ( APIENTRY * qglColor4b )(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
  67. extern void ( APIENTRY * qglColor4bv )(const GLbyte *v);
  68. extern void ( APIENTRY * qglColor4d )(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
  69. extern void ( APIENTRY * qglColor4dv )(const GLdouble *v);
  70. extern void ( APIENTRY * qglColor4f )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  71. extern void ( APIENTRY * qglColor4fv )(const GLfloat *v);
  72. extern void ( APIENTRY * qglColor4i )(GLint red, GLint green, GLint blue, GLint alpha);
  73. extern void ( APIENTRY * qglColor4iv )(const GLint *v);
  74. extern void ( APIENTRY * qglColor4s )(GLshort red, GLshort green, GLshort blue, GLshort alpha);
  75. extern void ( APIENTRY * qglColor4sv )(const GLshort *v);
  76. extern void ( APIENTRY * qglColor4ub )(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
  77. extern void ( APIENTRY * qglColor4ubv )(const GLubyte *v);
  78. extern void ( APIENTRY * qglColor4ui )(GLuint red, GLuint green, GLuint blue, GLuint alpha);
  79. extern void ( APIENTRY * qglColor4uiv )(const GLuint *v);
  80. extern void ( APIENTRY * qglColor4us )(GLushort red, GLushort green, GLushort blue, GLushort alpha);
  81. extern void ( APIENTRY * qglColor4usv )(const GLushort *v);
  82. extern void ( APIENTRY * qglColorMask )(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
  83. extern void ( APIENTRY * qglColorMaterial )(GLenum face, GLenum mode);
  84. extern void ( APIENTRY * qglColorPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  85. extern void ( APIENTRY * qglCopyPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
  86. extern void ( APIENTRY * qglCopyTexImage1D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
  87. extern void ( APIENTRY * qglCopyTexImage2D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
  88. extern void ( APIENTRY * qglCopyTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
  89. extern void ( APIENTRY * qglCopyTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  90. extern void ( APIENTRY * qglCullFace )(GLenum mode);
  91. extern void ( APIENTRY * qglDeleteLists )(GLuint list, GLsizei range);
  92. extern void ( APIENTRY * qglDeleteTextures )(GLsizei n, const GLuint *textures);
  93. extern void ( APIENTRY * qglDepthFunc )(GLenum func);
  94. extern void ( APIENTRY * qglDepthMask )(GLboolean flag);
  95. extern void ( APIENTRY * qglDepthRange )(GLclampd zNear, GLclampd zFar);
  96. extern void ( APIENTRY * qglDisable )(GLenum cap);
  97. extern void ( APIENTRY * qglDisableClientState )(GLenum array);
  98. extern void ( APIENTRY * qglDrawArrays )(GLenum mode, GLint first, GLsizei count);
  99. extern void ( APIENTRY * qglDrawBuffer )(GLenum mode);
  100. extern void ( APIENTRY * qglDrawElements )(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
  101. extern void ( APIENTRY * qglDrawPixels )(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
  102. extern void ( APIENTRY * qglEdgeFlag )(GLboolean flag);
  103. extern void ( APIENTRY * qglEdgeFlagPointer )(GLsizei stride, const GLvoid *pointer);
  104. extern void ( APIENTRY * qglEdgeFlagv )(const GLboolean *flag);
  105. extern void ( APIENTRY * qglEnable )(GLenum cap);
  106. extern void ( APIENTRY * qglEnableClientState )(GLenum array);
  107. extern void ( APIENTRY * qglEnd )(void);
  108. extern void ( APIENTRY * qglEndList )(void);
  109. extern void ( APIENTRY * qglEvalCoord1d )(GLdouble u);
  110. extern void ( APIENTRY * qglEvalCoord1dv )(const GLdouble *u);
  111. extern void ( APIENTRY * qglEvalCoord1f )(GLfloat u);
  112. extern void ( APIENTRY * qglEvalCoord1fv )(const GLfloat *u);
  113. extern void ( APIENTRY * qglEvalCoord2d )(GLdouble u, GLdouble v);
  114. extern void ( APIENTRY * qglEvalCoord2dv )(const GLdouble *u);
  115. extern void ( APIENTRY * qglEvalCoord2f )(GLfloat u, GLfloat v);
  116. extern void ( APIENTRY * qglEvalCoord2fv )(const GLfloat *u);
  117. extern void ( APIENTRY * qglEvalMesh1 )(GLenum mode, GLint i1, GLint i2);
  118. extern void ( APIENTRY * qglEvalMesh2 )(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
  119. extern void ( APIENTRY * qglEvalPoint1 )(GLint i);
  120. extern void ( APIENTRY * qglEvalPoint2 )(GLint i, GLint j);
  121. extern void ( APIENTRY * qglFeedbackBuffer )(GLsizei size, GLenum type, GLfloat *buffer);
  122. extern void ( APIENTRY * qglFinish )(void);
  123. extern void ( APIENTRY * qglFlush )(void);
  124. extern void ( APIENTRY * qglFogf )(GLenum pname, GLfloat param);
  125. extern void ( APIENTRY * qglFogfv )(GLenum pname, const GLfloat *params);
  126. extern void ( APIENTRY * qglFogi )(GLenum pname, GLint param);
  127. extern void ( APIENTRY * qglFogiv )(GLenum pname, const GLint *params);
  128. extern void ( APIENTRY * qglFrontFace )(GLenum mode);
  129. extern void ( APIENTRY * qglFrustum )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
  130. extern GLuint ( APIENTRY * qglGenLists )(GLsizei range);
  131. extern void ( APIENTRY * qglGenTextures )(GLsizei n, GLuint *textures);
  132. extern void ( APIENTRY * qglGetBooleanv )(GLenum pname, GLboolean *params);
  133. extern void ( APIENTRY * qglGetClipPlane )(GLenum plane, GLdouble *equation);
  134. extern void ( APIENTRY * qglGetDoublev )(GLenum pname, GLdouble *params);
  135. extern GLenum ( APIENTRY * qglGetError )(void);
  136. extern void ( APIENTRY * qglGetFloatv )(GLenum pname, GLfloat *params);
  137. extern void ( APIENTRY * qglGetIntegerv )(GLenum pname, GLint *params);
  138. extern void ( APIENTRY * qglGetLightfv )(GLenum light, GLenum pname, GLfloat *params);
  139. extern void ( APIENTRY * qglGetLightiv )(GLenum light, GLenum pname, GLint *params);
  140. extern void ( APIENTRY * qglGetMapdv )(GLenum target, GLenum query, GLdouble *v);
  141. extern void ( APIENTRY * qglGetMapfv )(GLenum target, GLenum query, GLfloat *v);
  142. extern void ( APIENTRY * qglGetMapiv )(GLenum target, GLenum query, GLint *v);
  143. extern void ( APIENTRY * qglGetMaterialfv )(GLenum face, GLenum pname, GLfloat *params);
  144. extern void ( APIENTRY * qglGetMaterialiv )(GLenum face, GLenum pname, GLint *params);
  145. extern void ( APIENTRY * qglGetPixelMapfv )(GLenum map, GLfloat *values);
  146. extern void ( APIENTRY * qglGetPixelMapuiv )(GLenum map, GLuint *values);
  147. extern void ( APIENTRY * qglGetPixelMapusv )(GLenum map, GLushort *values);
  148. extern void ( APIENTRY * qglGetPointerv )(GLenum pname, GLvoid* *params);
  149. extern void ( APIENTRY * qglGetPolygonStipple )(GLubyte *mask);
  150. extern const GLubyte * ( APIENTRY * qglGetString )(GLenum name);
  151. extern void ( APIENTRY * qglGetTexEnvfv )(GLenum target, GLenum pname, GLfloat *params);
  152. extern void ( APIENTRY * qglGetTexEnviv )(GLenum target, GLenum pname, GLint *params);
  153. extern void ( APIENTRY * qglGetTexGendv )(GLenum coord, GLenum pname, GLdouble *params);
  154. extern void ( APIENTRY * qglGetTexGenfv )(GLenum coord, GLenum pname, GLfloat *params);
  155. extern void ( APIENTRY * qglGetTexGeniv )(GLenum coord, GLenum pname, GLint *params);
  156. extern void ( APIENTRY * qglGetTexImage )(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
  157. extern void ( APIENTRY * qglGetTexLevelParameterfv )(GLenum target, GLint level, GLenum pname, GLfloat *params);
  158. extern void ( APIENTRY * qglGetTexLevelParameteriv )(GLenum target, GLint level, GLenum pname, GLint *params);
  159. extern void ( APIENTRY * qglGetTexParameterfv )(GLenum target, GLenum pname, GLfloat *params);
  160. extern void ( APIENTRY * qglGetTexParameteriv )(GLenum target, GLenum pname, GLint *params);
  161. extern void ( APIENTRY * qglHint )(GLenum target, GLenum mode);
  162. extern void ( APIENTRY * qglIndexMask )(GLuint mask);
  163. extern void ( APIENTRY * qglIndexPointer )(GLenum type, GLsizei stride, const GLvoid *pointer);
  164. extern void ( APIENTRY * qglIndexd )(GLdouble c);
  165. extern void ( APIENTRY * qglIndexdv )(const GLdouble *c);
  166. extern void ( APIENTRY * qglIndexf )(GLfloat c);
  167. extern void ( APIENTRY * qglIndexfv )(const GLfloat *c);
  168. extern void ( APIENTRY * qglIndexi )(GLint c);
  169. extern void ( APIENTRY * qglIndexiv )(const GLint *c);
  170. extern void ( APIENTRY * qglIndexs )(GLshort c);
  171. extern void ( APIENTRY * qglIndexsv )(const GLshort *c);
  172. extern void ( APIENTRY * qglIndexub )(GLubyte c);
  173. extern void ( APIENTRY * qglIndexubv )(const GLubyte *c);
  174. extern void ( APIENTRY * qglInitNames )(void);
  175. extern void ( APIENTRY * qglInterleavedArrays )(GLenum format, GLsizei stride, const GLvoid *pointer);
  176. extern GLboolean ( APIENTRY * qglIsEnabled )(GLenum cap);
  177. extern GLboolean ( APIENTRY * qglIsList )(GLuint list);
  178. extern GLboolean ( APIENTRY * qglIsTexture )(GLuint texture);
  179. extern void ( APIENTRY * qglLightModelf )(GLenum pname, GLfloat param);
  180. extern void ( APIENTRY * qglLightModelfv )(GLenum pname, const GLfloat *params);
  181. extern void ( APIENTRY * qglLightModeli )(GLenum pname, GLint param);
  182. extern void ( APIENTRY * qglLightModeliv )(GLenum pname, const GLint *params);
  183. extern void ( APIENTRY * qglLightf )(GLenum light, GLenum pname, GLfloat param);
  184. extern void ( APIENTRY * qglLightfv )(GLenum light, GLenum pname, const GLfloat *params);
  185. extern void ( APIENTRY * qglLighti )(GLenum light, GLenum pname, GLint param);
  186. extern void ( APIENTRY * qglLightiv )(GLenum light, GLenum pname, const GLint *params);
  187. extern void ( APIENTRY * qglLineStipple )(GLint factor, GLushort pattern);
  188. extern void ( APIENTRY * qglLineWidth )(GLfloat width);
  189. extern void ( APIENTRY * qglListBase )(GLuint base);
  190. extern void ( APIENTRY * qglLoadIdentity )(void);
  191. extern void ( APIENTRY * qglLoadMatrixd )(const GLdouble *m);
  192. extern void ( APIENTRY * qglLoadMatrixf )(const GLfloat *m);
  193. extern void ( APIENTRY * qglLoadName )(GLuint name);
  194. extern void ( APIENTRY * qglLogicOp )(GLenum opcode);
  195. extern void ( APIENTRY * qglMap1d )(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
  196. extern void ( APIENTRY * qglMap1f )(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
  197. 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);
  198. 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);
  199. extern void ( APIENTRY * qglMapGrid1d )(GLint un, GLdouble u1, GLdouble u2);
  200. extern void ( APIENTRY * qglMapGrid1f )(GLint un, GLfloat u1, GLfloat u2);
  201. extern void ( APIENTRY * qglMapGrid2d )(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
  202. extern void ( APIENTRY * qglMapGrid2f )(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
  203. extern void ( APIENTRY * qglMaterialf )(GLenum face, GLenum pname, GLfloat param);
  204. extern void ( APIENTRY * qglMaterialfv )(GLenum face, GLenum pname, const GLfloat *params);
  205. extern void ( APIENTRY * qglMateriali )(GLenum face, GLenum pname, GLint param);
  206. extern void ( APIENTRY * qglMaterialiv )(GLenum face, GLenum pname, const GLint *params);
  207. extern void ( APIENTRY * qglMatrixMode )(GLenum mode);
  208. extern void ( APIENTRY * qglMultMatrixd )(const GLdouble *m);
  209. extern void ( APIENTRY * qglMultMatrixf )(const GLfloat *m);
  210. extern void ( APIENTRY * qglNewList )(GLuint list, GLenum mode);
  211. extern void ( APIENTRY * qglNormal3b )(GLbyte nx, GLbyte ny, GLbyte nz);
  212. extern void ( APIENTRY * qglNormal3bv )(const GLbyte *v);
  213. extern void ( APIENTRY * qglNormal3d )(GLdouble nx, GLdouble ny, GLdouble nz);
  214. extern void ( APIENTRY * qglNormal3dv )(const GLdouble *v);
  215. extern void ( APIENTRY * qglNormal3f )(GLfloat nx, GLfloat ny, GLfloat nz);
  216. extern void ( APIENTRY * qglNormal3fv )(const GLfloat *v);
  217. extern void ( APIENTRY * qglNormal3i )(GLint nx, GLint ny, GLint nz);
  218. extern void ( APIENTRY * qglNormal3iv )(const GLint *v);
  219. extern void ( APIENTRY * qglNormal3s )(GLshort nx, GLshort ny, GLshort nz);
  220. extern void ( APIENTRY * qglNormal3sv )(const GLshort *v);
  221. extern void ( APIENTRY * qglNormalPointer )(GLenum type, GLsizei stride, const GLvoid *pointer);
  222. extern void ( APIENTRY * qglOrtho )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
  223. extern void ( APIENTRY * qglPassThrough )(GLfloat token);
  224. extern void ( APIENTRY * qglPixelMapfv )(GLenum map, GLsizei mapsize, const GLfloat *values);
  225. extern void ( APIENTRY * qglPixelMapuiv )(GLenum map, GLsizei mapsize, const GLuint *values);
  226. extern void ( APIENTRY * qglPixelMapusv )(GLenum map, GLsizei mapsize, const GLushort *values);
  227. extern void ( APIENTRY * qglPixelStoref )(GLenum pname, GLfloat param);
  228. extern void ( APIENTRY * qglPixelStorei )(GLenum pname, GLint param);
  229. extern void ( APIENTRY * qglPixelTransferf )(GLenum pname, GLfloat param);
  230. extern void ( APIENTRY * qglPixelTransferi )(GLenum pname, GLint param);
  231. extern void ( APIENTRY * qglPixelZoom )(GLfloat xfactor, GLfloat yfactor);
  232. extern void ( APIENTRY * qglPointSize )(GLfloat size);
  233. extern void ( APIENTRY * qglPolygonMode )(GLenum face, GLenum mode);
  234. extern void ( APIENTRY * qglPolygonOffset )(GLfloat factor, GLfloat units);
  235. extern void ( APIENTRY * qglPolygonStipple )(const GLubyte *mask);
  236. extern void ( APIENTRY * qglPopAttrib )(void);
  237. extern void ( APIENTRY * qglPopClientAttrib )(void);
  238. extern void ( APIENTRY * qglPopMatrix )(void);
  239. extern void ( APIENTRY * qglPopName )(void);
  240. extern void ( APIENTRY * qglPrioritizeTextures )(GLsizei n, const GLuint *textures, const GLclampf *priorities);
  241. extern void ( APIENTRY * qglPushAttrib )(GLbitfield mask);
  242. extern void ( APIENTRY * qglPushClientAttrib )(GLbitfield mask);
  243. extern void ( APIENTRY * qglPushMatrix )(void);
  244. extern void ( APIENTRY * qglPushName )(GLuint name);
  245. extern void ( APIENTRY * qglRasterPos2d )(GLdouble x, GLdouble y);
  246. extern void ( APIENTRY * qglRasterPos2dv )(const GLdouble *v);
  247. extern void ( APIENTRY * qglRasterPos2f )(GLfloat x, GLfloat y);
  248. extern void ( APIENTRY * qglRasterPos2fv )(const GLfloat *v);
  249. extern void ( APIENTRY * qglRasterPos2i )(GLint x, GLint y);
  250. extern void ( APIENTRY * qglRasterPos2iv )(const GLint *v);
  251. extern void ( APIENTRY * qglRasterPos2s )(GLshort x, GLshort y);
  252. extern void ( APIENTRY * qglRasterPos2sv )(const GLshort *v);
  253. extern void ( APIENTRY * qglRasterPos3d )(GLdouble x, GLdouble y, GLdouble z);
  254. extern void ( APIENTRY * qglRasterPos3dv )(const GLdouble *v);
  255. extern void ( APIENTRY * qglRasterPos3f )(GLfloat x, GLfloat y, GLfloat z);
  256. extern void ( APIENTRY * qglRasterPos3fv )(const GLfloat *v);
  257. extern void ( APIENTRY * qglRasterPos3i )(GLint x, GLint y, GLint z);
  258. extern void ( APIENTRY * qglRasterPos3iv )(const GLint *v);
  259. extern void ( APIENTRY * qglRasterPos3s )(GLshort x, GLshort y, GLshort z);
  260. extern void ( APIENTRY * qglRasterPos3sv )(const GLshort *v);
  261. extern void ( APIENTRY * qglRasterPos4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  262. extern void ( APIENTRY * qglRasterPos4dv )(const GLdouble *v);
  263. extern void ( APIENTRY * qglRasterPos4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  264. extern void ( APIENTRY * qglRasterPos4fv )(const GLfloat *v);
  265. extern void ( APIENTRY * qglRasterPos4i )(GLint x, GLint y, GLint z, GLint w);
  266. extern void ( APIENTRY * qglRasterPos4iv )(const GLint *v);
  267. extern void ( APIENTRY * qglRasterPos4s )(GLshort x, GLshort y, GLshort z, GLshort w);
  268. extern void ( APIENTRY * qglRasterPos4sv )(const GLshort *v);
  269. extern void ( APIENTRY * qglReadBuffer )(GLenum mode);
  270. extern void ( APIENTRY * qglReadPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
  271. extern void ( APIENTRY * qglRectd )(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
  272. extern void ( APIENTRY * qglRectdv )(const GLdouble *v1, const GLdouble *v2);
  273. extern void ( APIENTRY * qglRectf )(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
  274. extern void ( APIENTRY * qglRectfv )(const GLfloat *v1, const GLfloat *v2);
  275. extern void ( APIENTRY * qglRecti )(GLint x1, GLint y1, GLint x2, GLint y2);
  276. extern void ( APIENTRY * qglRectiv )(const GLint *v1, const GLint *v2);
  277. extern void ( APIENTRY * qglRects )(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
  278. extern void ( APIENTRY * qglRectsv )(const GLshort *v1, const GLshort *v2);
  279. extern GLint ( APIENTRY * qglRenderMode )(GLenum mode);
  280. extern void ( APIENTRY * qglRotated )(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
  281. extern void ( APIENTRY * qglRotatef )(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
  282. extern void ( APIENTRY * qglScaled )(GLdouble x, GLdouble y, GLdouble z);
  283. extern void ( APIENTRY * qglScalef )(GLfloat x, GLfloat y, GLfloat z);
  284. extern void ( APIENTRY * qglScissor )(GLint x, GLint y, GLsizei width, GLsizei height);
  285. extern void ( APIENTRY * qglSelectBuffer )(GLsizei size, GLuint *buffer);
  286. extern void ( APIENTRY * qglShadeModel )(GLenum mode);
  287. extern void ( APIENTRY * qglStencilFunc )(GLenum func, GLint ref, GLuint mask);
  288. extern void ( APIENTRY * qglStencilMask )(GLuint mask);
  289. extern void ( APIENTRY * qglStencilOp )(GLenum fail, GLenum zfail, GLenum zpass);
  290. extern void ( APIENTRY * qglTexCoord1d )(GLdouble s);
  291. extern void ( APIENTRY * qglTexCoord1dv )(const GLdouble *v);
  292. extern void ( APIENTRY * qglTexCoord1f )(GLfloat s);
  293. extern void ( APIENTRY * qglTexCoord1fv )(const GLfloat *v);
  294. extern void ( APIENTRY * qglTexCoord1i )(GLint s);
  295. extern void ( APIENTRY * qglTexCoord1iv )(const GLint *v);
  296. extern void ( APIENTRY * qglTexCoord1s )(GLshort s);
  297. extern void ( APIENTRY * qglTexCoord1sv )(const GLshort *v);
  298. extern void ( APIENTRY * qglTexCoord2d )(GLdouble s, GLdouble t);
  299. extern void ( APIENTRY * qglTexCoord2dv )(const GLdouble *v);
  300. extern void ( APIENTRY * qglTexCoord2f )(GLfloat s, GLfloat t);
  301. extern void ( APIENTRY * qglTexCoord2fv )(const GLfloat *v);
  302. extern void ( APIENTRY * qglTexCoord2i )(GLint s, GLint t);
  303. extern void ( APIENTRY * qglTexCoord2iv )(const GLint *v);
  304. extern void ( APIENTRY * qglTexCoord2s )(GLshort s, GLshort t);
  305. extern void ( APIENTRY * qglTexCoord2sv )(const GLshort *v);
  306. extern void ( APIENTRY * qglTexCoord3d )(GLdouble s, GLdouble t, GLdouble r);
  307. extern void ( APIENTRY * qglTexCoord3dv )(const GLdouble *v);
  308. extern void ( APIENTRY * qglTexCoord3f )(GLfloat s, GLfloat t, GLfloat r);
  309. extern void ( APIENTRY * qglTexCoord3fv )(const GLfloat *v);
  310. extern void ( APIENTRY * qglTexCoord3i )(GLint s, GLint t, GLint r);
  311. extern void ( APIENTRY * qglTexCoord3iv )(const GLint *v);
  312. extern void ( APIENTRY * qglTexCoord3s )(GLshort s, GLshort t, GLshort r);
  313. extern void ( APIENTRY * qglTexCoord3sv )(const GLshort *v);
  314. extern void ( APIENTRY * qglTexCoord4d )(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  315. extern void ( APIENTRY * qglTexCoord4dv )(const GLdouble *v);
  316. extern void ( APIENTRY * qglTexCoord4f )(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  317. extern void ( APIENTRY * qglTexCoord4fv )(const GLfloat *v);
  318. extern void ( APIENTRY * qglTexCoord4i )(GLint s, GLint t, GLint r, GLint q);
  319. extern void ( APIENTRY * qglTexCoord4iv )(const GLint *v);
  320. extern void ( APIENTRY * qglTexCoord4s )(GLshort s, GLshort t, GLshort r, GLshort q);
  321. extern void ( APIENTRY * qglTexCoord4sv )(const GLshort *v);
  322. extern void ( APIENTRY * qglTexCoordPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  323. extern void ( APIENTRY * qglTexEnvf )(GLenum target, GLenum pname, GLfloat param);
  324. extern void ( APIENTRY * qglTexEnvfv )(GLenum target, GLenum pname, const GLfloat *params);
  325. extern void ( APIENTRY * qglTexEnvi )(GLenum target, GLenum pname, GLint param);
  326. extern void ( APIENTRY * qglTexEnviv )(GLenum target, GLenum pname, const GLint *params);
  327. extern void ( APIENTRY * qglTexGend )(GLenum coord, GLenum pname, GLdouble param);
  328. extern void ( APIENTRY * qglTexGendv )(GLenum coord, GLenum pname, const GLdouble *params);
  329. extern void ( APIENTRY * qglTexGenf )(GLenum coord, GLenum pname, GLfloat param);
  330. extern void ( APIENTRY * qglTexGenfv )(GLenum coord, GLenum pname, const GLfloat *params);
  331. extern void ( APIENTRY * qglTexGeni )(GLenum coord, GLenum pname, GLint param);
  332. extern void ( APIENTRY * qglTexGeniv )(GLenum coord, GLenum pname, const GLint *params);
  333. extern void ( APIENTRY * qglTexImage1D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  334. extern void ( APIENTRY * qglTexImage2D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  335. extern void ( APIENTRY * qglTexParameterf )(GLenum target, GLenum pname, GLfloat param);
  336. extern void ( APIENTRY * qglTexParameterfv )(GLenum target, GLenum pname, const GLfloat *params);
  337. extern void ( APIENTRY * qglTexParameteri )(GLenum target, GLenum pname, GLint param);
  338. extern void ( APIENTRY * qglTexParameteriv )(GLenum target, GLenum pname, const GLint *params);
  339. extern void ( APIENTRY * qglTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
  340. extern void ( APIENTRY * qglTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
  341. extern void ( APIENTRY * qglTranslated )(GLdouble x, GLdouble y, GLdouble z);
  342. extern void ( APIENTRY * qglTranslatef )(GLfloat x, GLfloat y, GLfloat z);
  343. extern void ( APIENTRY * qglVertex2d )(GLdouble x, GLdouble y);
  344. extern void ( APIENTRY * qglVertex2dv )(const GLdouble *v);
  345. extern void ( APIENTRY * qglVertex2f )(GLfloat x, GLfloat y);
  346. extern void ( APIENTRY * qglVertex2fv )(const GLfloat *v);
  347. extern void ( APIENTRY * qglVertex2i )(GLint x, GLint y);
  348. extern void ( APIENTRY * qglVertex2iv )(const GLint *v);
  349. extern void ( APIENTRY * qglVertex2s )(GLshort x, GLshort y);
  350. extern void ( APIENTRY * qglVertex2sv )(const GLshort *v);
  351. extern void ( APIENTRY * qglVertex3d )(GLdouble x, GLdouble y, GLdouble z);
  352. extern void ( APIENTRY * qglVertex3dv )(const GLdouble *v);
  353. extern void ( APIENTRY * qglVertex3f )(GLfloat x, GLfloat y, GLfloat z);
  354. extern void ( APIENTRY * qglVertex3fv )(const GLfloat *v);
  355. extern void ( APIENTRY * qglVertex3i )(GLint x, GLint y, GLint z);
  356. extern void ( APIENTRY * qglVertex3iv )(const GLint *v);
  357. extern void ( APIENTRY * qglVertex3s )(GLshort x, GLshort y, GLshort z);
  358. extern void ( APIENTRY * qglVertex3sv )(const GLshort *v);
  359. extern void ( APIENTRY * qglVertex4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  360. extern void ( APIENTRY * qglVertex4dv )(const GLdouble *v);
  361. extern void ( APIENTRY * qglVertex4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  362. extern void ( APIENTRY * qglVertex4fv )(const GLfloat *v);
  363. extern void ( APIENTRY * qglVertex4i )(GLint x, GLint y, GLint z, GLint w);
  364. extern void ( APIENTRY * qglVertex4iv )(const GLint *v);
  365. extern void ( APIENTRY * qglVertex4s )(GLshort x, GLshort y, GLshort z, GLshort w);
  366. extern void ( APIENTRY * qglVertex4sv )(const GLshort *v);
  367. extern void ( APIENTRY * qglVertexPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  368. extern void ( APIENTRY * qglViewport )(GLint x, GLint y, GLsizei width, GLsizei height);
  369. extern void ( APIENTRY * qglPointParameterfEXT)( GLenum param, GLfloat value );
  370. extern void ( APIENTRY * qglPointParameterfvEXT)( GLenum param, const GLfloat *value );
  371. extern void ( APIENTRY * qglColorTableEXT)( int, int, int, int, int, const void * );
  372. extern void ( APIENTRY * qglMTexCoord2fSGIS)( GLenum, GLfloat, GLfloat );
  373. extern void ( APIENTRY * qglSelectTextureSGIS)( GLenum );
  374. #ifdef _WIN32
  375. extern int ( WINAPI * qwglChoosePixelFormat )(HDC, CONST PIXELFORMATDESCRIPTOR *);
  376. extern int ( WINAPI * qwglDescribePixelFormat) (HDC, int, UINT, LPPIXELFORMATDESCRIPTOR);
  377. extern int ( WINAPI * qwglGetPixelFormat)(HDC);
  378. extern BOOL ( WINAPI * qwglSetPixelFormat)(HDC, int, CONST PIXELFORMATDESCRIPTOR *);
  379. extern BOOL ( WINAPI * qwglSwapBuffers)(HDC);
  380. extern BOOL ( WINAPI * qwglCopyContext)(HGLRC, HGLRC, UINT);
  381. extern HGLRC ( WINAPI * qwglCreateContext)(HDC);
  382. extern HGLRC ( WINAPI * qwglCreateLayerContext)(HDC, int);
  383. extern BOOL ( WINAPI * qwglDeleteContext)(HGLRC);
  384. extern HGLRC ( WINAPI * qwglGetCurrentContext)(VOID);
  385. extern HDC ( WINAPI * qwglGetCurrentDC)(VOID);
  386. extern PROC ( WINAPI * qwglGetProcAddress)(LPCSTR);
  387. extern BOOL ( WINAPI * qwglMakeCurrent)(HDC, HGLRC);
  388. extern BOOL ( WINAPI * qwglShareLists)(HGLRC, HGLRC);
  389. extern BOOL ( WINAPI * qwglUseFontBitmaps)(HDC, DWORD, DWORD, DWORD);
  390. extern BOOL ( WINAPI * qwglUseFontOutlines)(HDC, DWORD, DWORD, DWORD, FLOAT,
  391. FLOAT, int, LPGLYPHMETRICSFLOAT);
  392. extern BOOL ( WINAPI * qwglDescribeLayerPlane)(HDC, int, int, UINT,
  393. LPLAYERPLANEDESCRIPTOR);
  394. extern int ( WINAPI * qwglSetLayerPaletteEntries)(HDC, int, int, int,
  395. CONST COLORREF *);
  396. extern int ( WINAPI * qwglGetLayerPaletteEntries)(HDC, int, int, int,
  397. COLORREF *);
  398. extern BOOL ( WINAPI * qwglRealizeLayerPalette)(HDC, int, BOOL);
  399. extern BOOL ( WINAPI * qwglSwapLayerBuffers)(HDC, UINT);
  400. extern BOOL ( WINAPI * qwglSwapIntervalEXT)( int interval );
  401. extern BOOL ( WINAPI * qwglGetDeviceGammaRampEXT ) ( unsigned char *pRed, unsigned char *pGreen, unsigned char *pBlue );
  402. extern BOOL ( WINAPI * qwglSetDeviceGammaRampEXT ) ( const unsigned char *pRed, const unsigned char *pGreen, const unsigned char *pBlue );
  403. #endif
  404. // glu stuff.. radiant only uses a couple
  405. extern int (APIENTRY* qgluBuild2DMipmaps) (GLenum target, GLint components, GLint width, GLint height, GLenum format, GLenum type, const void *data);
  406. extern void (APIENTRY* qgluPerspective) (GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar);
  407. extern void (APIENTRY* qgluLookAt)(
  408. GLdouble eyex,
  409. GLdouble eyey,
  410. GLdouble eyez,
  411. GLdouble centerx,
  412. GLdouble centery,
  413. GLdouble centerz,
  414. GLdouble upx,
  415. GLdouble upy,
  416. GLdouble upz);
  417. // end of glu stuff
  418. /*
  419. ** extension constants
  420. */
  421. #define GL_POINT_SIZE_MIN_EXT 0x8126
  422. #define GL_POINT_SIZE_MAX_EXT 0x8127
  423. #define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128
  424. #define GL_DISTANCE_ATTENUATION_EXT 0x8129
  425. #define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB
  426. #define GL_TEXTURE0_SGIS 0x835E
  427. #define GL_TEXTURE1_SGIS 0x835F
  428. #endif