home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 5093 / opengl.7z / gl.h < prev   
Encoding:
C/C++ Source or Header  |  2012-02-20  |  50.8 KB  |  1,159 lines

  1. #ifndef __GL_H
  2. #define __GL_H
  3.  
  4. #ifndef OPENGL_EXPORTS
  5. #define OPENGLAPI __declspec(dllimport)
  6. #else
  7. #define OPENGLAPI __declspec(dllexport)
  8. #endif
  9.  
  10. #ifdef _MSC_VER
  11. #pragma comment(lib, "opengl32.lib")
  12. #endif
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.  
  18. // Section 2.4
  19. // Basic GL Operation
  20. typedef void GLvoid;
  21. typedef unsigned __int8 GLboolean;
  22. typedef __int8 GLbyte;
  23. typedef unsigned __int8 GLubyte;
  24. typedef __int16 GLshort;
  25. typedef unsigned __int16 GLushort;
  26. typedef __int32 GLint;
  27. typedef unsigned __int32 GLuint;
  28. typedef unsigned __int32 GLsizei;
  29. typedef __int32 GLenum;
  30. typedef unsigned __int32 GLbitfield;
  31. typedef float GLfloat;
  32. typedef float GLclampf;
  33. typedef double GLdouble;
  34. typedef double GLclampd;
  35.  
  36. // Section 2.5
  37. // GL Errors
  38. OPENGLAPI GLenum WINAPI glGetError(GLvoid);
  39.  
  40. // Section 2.6.1
  41. // Begin and End Objects
  42. OPENGLAPI GLvoid WINAPI glBegin(GLenum mode);
  43. OPENGLAPI GLvoid WINAPI glEnd(GLvoid);
  44.  
  45. // Section 2.6.2
  46. // Polygon Edges
  47. OPENGLAPI GLvoid WINAPI glEdgeFlag(GLboolean flag);
  48. OPENGLAPI GLvoid WINAPI glEdgeFlagv(GLboolean* flag);
  49.  
  50. // Section 2.7
  51. // Vertex Specification
  52. OPENGLAPI GLvoid WINAPI glVertex2s(GLshort x, GLshort y);
  53. OPENGLAPI GLvoid WINAPI glVertex3s(GLshort x, GLshort y, GLshort z);
  54. OPENGLAPI GLvoid WINAPI glVertex4s(GLshort x, GLshort y, GLshort z, GLshort w);
  55. OPENGLAPI GLvoid WINAPI glVertex2i(GLint x, GLint y);
  56. OPENGLAPI GLvoid WINAPI glVertex3i(GLint x, GLint y, GLint z);
  57. OPENGLAPI GLvoid WINAPI glVertex4i(GLint x, GLint y, GLint z, GLint w);
  58. OPENGLAPI GLvoid WINAPI glVertex2f(GLfloat x, GLfloat y);
  59. OPENGLAPI GLvoid WINAPI glVertex3f(GLfloat x, GLfloat y, GLfloat z);
  60. OPENGLAPI GLvoid WINAPI glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  61. OPENGLAPI GLvoid WINAPI glVertex2d(GLdouble x, GLdouble y);
  62. OPENGLAPI GLvoid WINAPI glVertex3d(GLdouble x, GLdouble y, GLdouble z);
  63. OPENGLAPI GLvoid WINAPI glVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  64. OPENGLAPI GLvoid WINAPI glVertex2sv(const GLshort* coords);
  65. OPENGLAPI GLvoid WINAPI glVertex2iv(const GLint* coords);
  66. OPENGLAPI GLvoid WINAPI glVertex2fv(const GLfloat* coords);
  67. OPENGLAPI GLvoid WINAPI glVertex2dv(const GLdouble* coords);
  68. OPENGLAPI GLvoid WINAPI glVertex3sv(const GLshort* coords);
  69. OPENGLAPI GLvoid WINAPI glVertex3iv(const GLint* coords);
  70. OPENGLAPI GLvoid WINAPI glVertex3fv(const GLfloat* coords);
  71. OPENGLAPI GLvoid WINAPI glVertex3dv(const GLdouble* coords);
  72. OPENGLAPI GLvoid WINAPI glVertex4sv(const GLshort* coords);
  73. OPENGLAPI GLvoid WINAPI glVertex4iv(const GLint* coords);
  74. OPENGLAPI GLvoid WINAPI glVertex4fv(const GLfloat* coords);
  75. OPENGLAPI GLvoid WINAPI glVertex4dv(const GLdouble* coords);
  76. OPENGLAPI GLvoid WINAPI glTexCoord1s(GLshort s);
  77. OPENGLAPI GLvoid WINAPI glTexCoord1i(GLint s);
  78. OPENGLAPI GLvoid WINAPI glTexCoord1f(GLfloat s);
  79. OPENGLAPI GLvoid WINAPI glTexCoord1d(GLdouble s);
  80. OPENGLAPI GLvoid WINAPI glTexCoord2s(GLshort s, GLshort t);
  81. OPENGLAPI GLvoid WINAPI glTexCoord2i(GLint s, GLint t);
  82. OPENGLAPI GLvoid WINAPI glTexCoord2f(GLfloat s, GLfloat t);
  83. OPENGLAPI GLvoid WINAPI glTexCoord2d(GLdouble s, GLdouble t);
  84. OPENGLAPI GLvoid WINAPI glTexCoord3s(GLshort s, GLshort t, GLshort r);
  85. OPENGLAPI GLvoid WINAPI glTexCoord3i(GLint s, GLint t, GLint r);
  86. OPENGLAPI GLvoid WINAPI glTexCoord3f(GLfloat s, GLfloat t, GLfloat r);
  87. OPENGLAPI GLvoid WINAPI glTexCoord3d(GLdouble s, GLdouble t, GLdouble r);
  88. OPENGLAPI GLvoid WINAPI glTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q);
  89. OPENGLAPI GLvoid WINAPI glTexCoord4i(GLint s, GLint t, GLint r, GLint q);
  90. OPENGLAPI GLvoid WINAPI glTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  91. OPENGLAPI GLvoid WINAPI glTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  92. OPENGLAPI GLvoid WINAPI glTexCoord1sv(const GLshort* coords);
  93. OPENGLAPI GLvoid WINAPI glTexCoord1iv(const GLint* coords);
  94. OPENGLAPI GLvoid WINAPI glTexCoord1fv(const GLfloat* coords);
  95. OPENGLAPI GLvoid WINAPI glTexCoord1dv(const GLdouble* coords);
  96. OPENGLAPI GLvoid WINAPI glTexCoord2sv(const GLshort* coords);
  97. OPENGLAPI GLvoid WINAPI glTexCoord2iv(const GLint* coords);
  98. OPENGLAPI GLvoid WINAPI glTexCoord2fv(const GLfloat* coords);
  99. OPENGLAPI GLvoid WINAPI glTexCoord2dv(const GLdouble* coords);
  100. OPENGLAPI GLvoid WINAPI glTexCoord3sv(const GLshort* coords);
  101. OPENGLAPI GLvoid WINAPI glTexCoord3iv(const GLint* coords);
  102. OPENGLAPI GLvoid WINAPI glTexCoord3fv(const GLfloat* coords);
  103. OPENGLAPI GLvoid WINAPI glTexCoord3dv(const GLdouble* coords);
  104. OPENGLAPI GLvoid WINAPI glTexCoord4sv(const GLshort* coords);
  105. OPENGLAPI GLvoid WINAPI glTexCoord4iv(const GLint* coords);
  106. OPENGLAPI GLvoid WINAPI glTexCoord4fv(const GLfloat* coords);
  107. OPENGLAPI GLvoid WINAPI glTexCoord4dv(const GLdouble* coords);
  108. OPENGLAPI GLvoid WINAPI glMultiTexCoord1s(GLenum texture, GLshort s);
  109. OPENGLAPI GLvoid WINAPI glMultiTexCoord1i(GLenum texture, GLint s);
  110. OPENGLAPI GLvoid WINAPI glMultiTexCoord1f(GLenum texture, GLfloat s);
  111. OPENGLAPI GLvoid WINAPI glMultiTexCoord1d(GLenum texture, GLdouble s);
  112. OPENGLAPI GLvoid WINAPI glMultiTexCoord2s(GLenum texture, GLshort s, GLshort t);
  113. OPENGLAPI GLvoid WINAPI glMultiTexCoord2i(GLenum texture, GLint s, GLint t);
  114. OPENGLAPI GLvoid WINAPI glMultiTexCoord2f(GLenum texture, GLfloat s, GLfloat t);
  115. OPENGLAPI GLvoid WINAPI glMultiTexCoord2d(GLenum texture, GLdouble s, GLdouble t);
  116. OPENGLAPI GLvoid WINAPI glMultiTexCoord3s(GLenum texture, GLshort s, GLshort t, GLshort r);
  117. OPENGLAPI GLvoid WINAPI glMultiTexCoord3i(GLenum texture, GLint s, GLint t, GLint r);
  118. OPENGLAPI GLvoid WINAPI glMultiTexCoord3f(GLenum texture, GLfloat s, GLfloat t, GLfloat r);
  119. OPENGLAPI GLvoid WINAPI glMultiTexCoord3d(GLenum texture, GLdouble s, GLdouble t, GLdouble r);
  120. OPENGLAPI GLvoid WINAPI glMultiTexCoord4s(GLenum texture, GLshort s, GLshort t, GLshort r, GLshort q);
  121. OPENGLAPI GLvoid WINAPI glMultiTexCoord4i(GLenum texture, GLint s, GLint t, GLint r, GLint q);
  122. OPENGLAPI GLvoid WINAPI glMultiTexCoord4f(GLenum texture, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  123. OPENGLAPI GLvoid WINAPI glMultiTexCoord4d(GLenum texture, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  124. OPENGLAPI GLvoid WINAPI glMultiTexCoord1sv(GLenum texture, const GLshort* coords);
  125. OPENGLAPI GLvoid WINAPI glMultiTexCoord1iv(GLenum texture, const GLint* coords);
  126. OPENGLAPI GLvoid WINAPI glMultiTexCoord1fv(GLenum texture, const GLfloat* coords);
  127. OPENGLAPI GLvoid WINAPI glMultiTexCoord1dv(GLenum texture, const GLdouble* coords);
  128. OPENGLAPI GLvoid WINAPI glMultiTexCoord2sv(GLenum texture, const GLshort* coords);
  129. OPENGLAPI GLvoid WINAPI glMultiTexCoord2iv(GLenum texture, const GLint* coords);
  130. OPENGLAPI GLvoid WINAPI glMultiTexCoord2fv(GLenum texture, const GLfloat* coords);
  131. OPENGLAPI GLvoid WINAPI glMultiTexCoord2dv(GLenum texture, const GLdouble* coords);
  132. OPENGLAPI GLvoid WINAPI glMultiTexCoord3sv(GLenum texture, const GLshort* coords);
  133. OPENGLAPI GLvoid WINAPI glMultiTexCoord3iv(GLenum texture, const GLint* coords);
  134. OPENGLAPI GLvoid WINAPI glMultiTexCoord3fv(GLenum texture, const GLfloat* coords);
  135. OPENGLAPI GLvoid WINAPI glMultiTexCoord3dv(GLenum texture, const GLdouble* coords);
  136. OPENGLAPI GLvoid WINAPI glMultiTexCoord4sv(GLenum texture, const GLshort* coords);
  137. OPENGLAPI GLvoid WINAPI glMultiTexCoord4iv(GLenum texture, const GLint* coords);
  138. OPENGLAPI GLvoid WINAPI glMultiTexCoord4fv(GLenum texture, const GLfloat* coords);
  139. OPENGLAPI GLvoid WINAPI glMultiTexCoord4dv(GLenum texture, const GLdouble* coords);
  140. OPENGLAPI GLvoid WINAPI glNormal3b(GLbyte x, GLbyte y, GLbyte z);
  141. OPENGLAPI GLvoid WINAPI glNormal3s(GLshort x, GLshort y, GLshort z);
  142. OPENGLAPI GLvoid WINAPI glNormal3i(GLint x, GLint y, GLint z);
  143. OPENGLAPI GLvoid WINAPI glNormal3f(GLfloat x, GLfloat y, GLfloat z);
  144. OPENGLAPI GLvoid WINAPI glNormal3d(GLdouble x, GLdouble y, GLdouble z);
  145. OPENGLAPI GLvoid WINAPI glNormal3bv(const GLbyte* coords);
  146. OPENGLAPI GLvoid WINAPI glNormal3sv(const GLshort* coords);
  147. OPENGLAPI GLvoid WINAPI glNormal3iv(const GLint* coords);
  148. OPENGLAPI GLvoid WINAPI glNormal3fv(const GLfloat* coords);
  149. OPENGLAPI GLvoid WINAPI glNormal3dv(const GLdouble* coords);
  150. OPENGLAPI GLvoid WINAPI glColor3b(GLbyte r, GLbyte g, GLbyte b);
  151. OPENGLAPI GLvoid WINAPI glColor3s(GLshort r, GLshort g, GLshort b);
  152. OPENGLAPI GLvoid WINAPI glColor3i(GLint r, GLint g, GLint b);
  153. OPENGLAPI GLvoid WINAPI glColor3f(GLfloat r, GLfloat g, GLfloat b);
  154. OPENGLAPI GLvoid WINAPI glColor3d(GLdouble r, GLdouble g, GLdouble b);
  155. OPENGLAPI GLvoid WINAPI glColor3ub(GLubyte r, GLubyte g, GLubyte b);
  156. OPENGLAPI GLvoid WINAPI glColor3us(GLushort r, GLushort g, GLushort b);
  157. OPENGLAPI GLvoid WINAPI glColor3ui(GLuint r, GLuint g, GLuint b);
  158. OPENGLAPI GLvoid WINAPI glColor4b(GLbyte r, GLbyte g, GLbyte b, GLbyte a);
  159. OPENGLAPI GLvoid WINAPI glColor4s(GLshort r, GLshort g, GLshort b, GLshort a);
  160. OPENGLAPI GLvoid WINAPI glColor4i(GLint r, GLint g, GLint b, GLint a);
  161. OPENGLAPI GLvoid WINAPI glColor4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a);
  162. OPENGLAPI GLvoid WINAPI glColor4d(GLdouble r, GLdouble g, GLdouble b, GLdouble a);
  163. OPENGLAPI GLvoid WINAPI glColor4ub(GLubyte r, GLubyte g, GLubyte b, GLubyte a);
  164. OPENGLAPI GLvoid WINAPI glColor4us(GLushort r, GLushort g, GLushort b, GLushort a);
  165. OPENGLAPI GLvoid WINAPI glColor4ui(GLuint r, GLuint g, GLuint b, GLuint a);
  166. OPENGLAPI GLvoid WINAPI glColor3bv(const GLbyte* components);
  167. OPENGLAPI GLvoid WINAPI glColor3sv(const GLshort* components);
  168. OPENGLAPI GLvoid WINAPI glColor3iv(const GLint* components);
  169. OPENGLAPI GLvoid WINAPI glColor3fv(const GLfloat* components);
  170. OPENGLAPI GLvoid WINAPI glColor3dv(const GLdouble* components);
  171. OPENGLAPI GLvoid WINAPI glColor3ubv(const GLubyte* components);
  172. OPENGLAPI GLvoid WINAPI glColor3usv(const GLushort* components);
  173. OPENGLAPI GLvoid WINAPI glColor3uiv(const GLuint* components);
  174. OPENGLAPI GLvoid WINAPI glColor4bv(const GLbyte* components);
  175. OPENGLAPI GLvoid WINAPI glColor4sv(const GLshort* components);
  176. OPENGLAPI GLvoid WINAPI glColor4iv(const GLint* components);
  177. OPENGLAPI GLvoid WINAPI glColor4fv(const GLfloat* components);
  178. OPENGLAPI GLvoid WINAPI glColor4dv(const GLdouble* components);
  179. OPENGLAPI GLvoid WINAPI glColor4ubv(const GLubyte* components);
  180. OPENGLAPI GLvoid WINAPI glColor4usv(const GLushort* components);
  181. OPENGLAPI GLvoid WINAPI glColor4uiv(const GLuint* components);
  182. OPENGLAPI GLvoid WINAPI glIndexs(GLshort index);
  183. OPENGLAPI GLvoid WINAPI glIndexi(GLint index);
  184. OPENGLAPI GLvoid WINAPI glIndexf(GLfloat index);
  185. OPENGLAPI GLvoid WINAPI glIndexd(GLdouble index);
  186. OPENGLAPI GLvoid WINAPI glIndexub(GLubyte index);
  187. OPENGLAPI GLvoid WINAPI glIndexsv(const GLshort* index);
  188. OPENGLAPI GLvoid WINAPI glIndexiv(const GLint* index);
  189. OPENGLAPI GLvoid WINAPI glIndexfv(const GLfloat* index);
  190. OPENGLAPI GLvoid WINAPI glIndexdv(const GLdouble* index);
  191. OPENGLAPI GLvoid WINAPI glIndexubv(const GLubyte* index);
  192.  
  193. // Section 2.8
  194. // Vertex Arrays
  195. OPENGLAPI GLvoid WINAPI glClientActiveTexture(GLenum texture);
  196. OPENGLAPI GLvoid WINAPI glEdgeFlagPointer(GLsizei stride, const GLvoid* pointer);
  197. OPENGLAPI GLvoid WINAPI glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer);
  198. OPENGLAPI GLvoid WINAPI glColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer);
  199. OPENGLAPI GLvoid WINAPI glIndexPointer(GLenum type, GLsizei stride, const GLvoid* pointer);
  200. OPENGLAPI GLvoid WINAPI glNormalPointer(GLenum type, GLsizei stride, const GLvoid* pointer);
  201. OPENGLAPI GLvoid WINAPI glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer);
  202. OPENGLAPI GLvoid WINAPI glEnableClientState(GLenum array);
  203. OPENGLAPI GLvoid WINAPI glDisableClientState(GLenum array);
  204. OPENGLAPI GLvoid WINAPI glArrayElement(GLint i);
  205. OPENGLAPI GLvoid WINAPI glDrawArrays(GLenum mode, GLint first, GLsizei count);
  206. OPENGLAPI GLvoid WINAPI glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices);
  207. OPENGLAPI GLvoid WINAPI glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid* indices);
  208. OPENGLAPI GLvoid WINAPI glInterleavedArrays(GLenum format, GLsizei stride, const GLvoid* pointer);
  209.  
  210. // Section 2.9
  211. // Rectangles
  212. OPENGLAPI GLvoid WINAPI glRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
  213. OPENGLAPI GLvoid WINAPI glRecti(GLint x1, GLint y1, GLint x2, GLint y2);
  214. OPENGLAPI GLvoid WINAPI glRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
  215. OPENGLAPI GLvoid WINAPI glRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
  216. OPENGLAPI GLvoid WINAPI glRectsv(GLshort v1[2], GLshort v2[2]);
  217. OPENGLAPI GLvoid WINAPI glRectiv(GLint v1[2], GLint v2[2]);
  218. OPENGLAPI GLvoid WINAPI glRectfv(GLfloat v1[2], GLfloat v2[2]);
  219. OPENGLAPI GLvoid WINAPI glRectdv(GLdouble v1[2], GLdouble v2[2]);
  220.  
  221. // Section 2.10.1
  222. // Controlling the Viewport
  223. OPENGLAPI GLvoid WINAPI glDepthRange(GLclampd n, GLclampd f);
  224. OPENGLAPI GLvoid WINAPI glViewport(GLint x, GLint y, GLsizei w, GLsizei h);
  225.  
  226. // Section 2.10.2
  227. // Matrices
  228. OPENGLAPI GLvoid WINAPI glMatrixMode(GLenum mode);
  229. OPENGLAPI GLvoid WINAPI glLoadMatrixf(GLfloat m[16]);
  230. OPENGLAPI GLvoid WINAPI glLoadMatrixd(GLdouble m[16]);
  231. OPENGLAPI GLvoid WINAPI glMultMatrixf(GLfloat m[16]);
  232. OPENGLAPI GLvoid WINAPI glMultMatrixd(GLdouble m[16]);
  233. OPENGLAPI GLvoid WINAPI glLoadIdentity(GLvoid);
  234. OPENGLAPI GLvoid WINAPI glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
  235. OPENGLAPI GLvoid WINAPI glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
  236. OPENGLAPI GLvoid WINAPI glTranslatef(GLfloat x, GLfloat y, GLfloat z);
  237. OPENGLAPI GLvoid WINAPI glTranslated(GLdouble x, GLdouble y, GLdouble z);
  238. OPENGLAPI GLvoid WINAPI glScalef(GLfloat x, GLfloat y, GLfloat z);
  239. OPENGLAPI GLvoid WINAPI glScaled(GLdouble x, GLdouble y, GLdouble z);
  240. OPENGLAPI GLvoid WINAPI glFrustum(GLdouble l, GLdouble r, GLdouble b, GLdouble t, GLdouble n, GLdouble f);
  241. OPENGLAPI GLvoid WINAPI glOrtho(GLdouble l, GLdouble r, GLdouble b, GLdouble t, GLdouble n, GLdouble f);
  242. OPENGLAPI GLvoid WINAPI glPushMatrix(GLvoid);
  243. OPENGLAPI GLvoid WINAPI glActiveTexture(GLenum texture);
  244. OPENGLAPI GLvoid WINAPI glPopMatrix(GLvoid);
  245.  
  246. // Section 2.10.3
  247. // Normal Transformation
  248. OPENGLAPI GLvoid WINAPI glEnable(GLenum target);
  249. OPENGLAPI GLvoid WINAPI glDisable(GLenum target);
  250.  
  251. // Section 2.10.4
  252. // Generating Texture Coordinates
  253. OPENGLAPI GLvoid WINAPI glTexGeni(GLenum coord, GLenum pname, GLint param);
  254. OPENGLAPI GLvoid WINAPI glTexGenf(GLenum coord, GLenum pname, GLfloat param);
  255. OPENGLAPI GLvoid WINAPI glTexGend(GLenum coord, GLenum pname, GLdouble param);
  256. OPENGLAPI GLvoid WINAPI glTexGeniv(GLenum coord, GLenum pname, const GLint* params);
  257. OPENGLAPI GLvoid WINAPI glTexGenfv(GLenum coord, GLenum pname, const GLfloat* params);
  258. OPENGLAPI GLvoid WINAPI glTexGendv(GLenum coord, GLenum pname, const GLdouble* params);
  259.  
  260. // Section 2.11
  261. // Clipping
  262. OPENGLAPI GLvoid WINAPI glClipPlane(GLenum p, GLdouble eqn[4]);
  263.  
  264. // Section 2.12
  265. // Current Raster Position
  266. OPENGLAPI GLvoid WINAPI glRasterPos2s(GLshort x, GLshort y);
  267. OPENGLAPI GLvoid WINAPI glRasterPos2i(GLint x, GLint y);
  268. OPENGLAPI GLvoid WINAPI glRasterPos2f(GLfloat x, GLfloat y);
  269. OPENGLAPI GLvoid WINAPI glRasterPos2d(GLdouble x, GLdouble y);
  270. OPENGLAPI GLvoid WINAPI glRasterPos3s(GLshort x, GLshort y, GLshort z);
  271. OPENGLAPI GLvoid WINAPI glRasterPos3i(GLint x, GLint y, GLint z);
  272. OPENGLAPI GLvoid WINAPI glRasterPos3f(GLfloat x, GLfloat y, GLfloat z);
  273. OPENGLAPI GLvoid WINAPI glRasterPos3d(GLdouble x, GLdouble y, GLdouble z);
  274. OPENGLAPI GLvoid WINAPI glRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w);
  275. OPENGLAPI GLvoid WINAPI glRasterPos4i(GLint x, GLint y, GLint z, GLint w);
  276. OPENGLAPI GLvoid WINAPI glRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  277. OPENGLAPI GLvoid WINAPI glRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  278. OPENGLAPI GLvoid WINAPI glRasterPos2sv(const GLshort* coords);
  279. OPENGLAPI GLvoid WINAPI glRasterPos2iv(const GLint* coords);
  280. OPENGLAPI GLvoid WINAPI glRasterPos2fv(const GLfloat* coords);
  281. OPENGLAPI GLvoid WINAPI glRasterPos2dv(const GLdouble* coords);
  282. OPENGLAPI GLvoid WINAPI glRasterPos3sv(const GLshort* coords);
  283. OPENGLAPI GLvoid WINAPI glRasterPos3iv(const GLint* coords);
  284. OPENGLAPI GLvoid WINAPI glRasterPos3fv(const GLfloat* coords);
  285. OPENGLAPI GLvoid WINAPI glRasterPos3dv(const GLdouble* coords);
  286. OPENGLAPI GLvoid WINAPI glRasterPos4sv(const GLshort* coords);
  287. OPENGLAPI GLvoid WINAPI glRasterPos4iv(const GLint* coords);
  288. OPENGLAPI GLvoid WINAPI glRasterPos4fv(const GLfloat* coords);
  289. OPENGLAPI GLvoid WINAPI glRasterPos4dv(const GLdouble* coords);
  290.  
  291. // Section 2.13.1
  292. // Lighting
  293. OPENGLAPI GLvoid WINAPI glFrontFace(GLenum dir);
  294.  
  295. // Section 2.13.2
  296. // Lighting Parameter Specification
  297. OPENGLAPI GLvoid WINAPI glMateriali(GLenum face, GLenum pname, GLint param);
  298. OPENGLAPI GLvoid WINAPI glMaterialf(GLenum face, GLenum pname, GLfloat param);
  299. OPENGLAPI GLvoid WINAPI glMaterialiv(GLenum face, GLenum pname, const GLint* params);
  300. OPENGLAPI GLvoid WINAPI glMaterialfv(GLenum face, GLenum pname, const GLfloat* params);
  301. OPENGLAPI GLvoid WINAPI glLighti(GLenum light, GLenum pname, GLint param);
  302. OPENGLAPI GLvoid WINAPI glLightf(GLenum light, GLenum pname, GLfloat param);
  303. OPENGLAPI GLvoid WINAPI glLightiv(GLenum light, GLenum pname, const GLint* params);
  304. OPENGLAPI GLvoid WINAPI glLightfv(GLenum light, GLenum pname, const GLfloat* params);
  305. OPENGLAPI GLvoid WINAPI glLightModeli(GLenum pname, GLint param);
  306. OPENGLAPI GLvoid WINAPI glLightModelf(GLenum pname, GLfloat param);
  307. OPENGLAPI GLvoid WINAPI glLightModeliv(GLenum pname, const GLint* params);
  308. OPENGLAPI GLvoid WINAPI glLightModelfv(GLenum pname, const GLfloat* params);
  309.  
  310. // Section 2.13.3
  311. // Color Material
  312. OPENGLAPI GLvoid WINAPI glColorMaterial(GLenum face, GLenum mode);
  313.  
  314. // Section 2.13.7
  315. // Flatshading
  316. OPENGLAPI GLvoid WINAPI glShadeModel(GLenum mode);
  317.  
  318. // Section 3.3
  319. // Points
  320. OPENGLAPI GLvoid WINAPI glPointSize(GLfloat size);
  321.  
  322. // Section 3.4
  323. // Line Segments
  324. OPENGLAPI GLvoid WINAPI glLineWidth(GLfloat width);
  325. OPENGLAPI GLvoid WINAPI glLineStipple(GLint factor, GLushort pattern);
  326.  
  327. // Section 3.5.1
  328. // Basic Polygon Rasterization
  329. OPENGLAPI GLvoid WINAPI glCullFace(GLenum mode);
  330.  
  331. // Section 3.5.2
  332. // Stippling
  333. OPENGLAPI GLvoid WINAPI glPolygonStipple(const GLubyte* pattern);
  334.  
  335. // Section 3.5.4
  336. // Options Controlling Polygon Rasterization
  337. OPENGLAPI GLvoid WINAPI glPolygonMode(GLenum face, GLenum mode);
  338.  
  339. // Section 3.5.5
  340. // Depth Offset
  341. OPENGLAPI GLvoid WINAPI glPolygonOffset(GLfloat factor, GLfloat units);
  342.  
  343. // Section 3.6.1
  344. // Pixel Storage Modes
  345. OPENGLAPI GLvoid WINAPI glPixelStorei(GLenum pname, GLint param);
  346. OPENGLAPI GLvoid WINAPI glPixelStoref(GLenum pname, GLfloat param);
  347.  
  348. // Section 3.6.3
  349. // Pixel Transfer Modes
  350. OPENGLAPI GLvoid WINAPI glPixelTransferi(GLenum param, GLint value);
  351. OPENGLAPI GLvoid WINAPI glPixelTransferf(GLenum param, GLfloat value);
  352. OPENGLAPI GLvoid WINAPI glPixelMapuiv(GLenum map, GLsizei size, const GLuint* values);
  353. OPENGLAPI GLvoid WINAPI glPixelMapusv(GLenum map, GLsizei size, const GLushort* values);
  354. OPENGLAPI GLvoid WINAPI glPixelMapfv(GLenum map, GLsizei size, const GLfloat* values);
  355. OPENGLAPI GLvoid WINAPI glColorTable(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid* data);
  356. OPENGLAPI GLvoid WINAPI glColorTableParameteriv(GLenum target, GLenum pname, const GLint* params);
  357. OPENGLAPI GLvoid WINAPI glColorTableParameterfv(GLenum target, GLenum pname, const GLfloat* params);
  358. OPENGLAPI GLvoid WINAPI glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
  359. OPENGLAPI GLvoid WINAPI glColorSubTable(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid* data);
  360. OPENGLAPI GLvoid WINAPI glCopyColorSubTable(GLenum target, GLsizei start, GLint x, GLint y, GLsizei count);
  361. OPENGLAPI GLvoid WINAPI glConvolutionFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* data);
  362. OPENGLAPI GLvoid WINAPI glConvolutionParameteriv(GLenum target, GLenum pname, const GLint* params);
  363. OPENGLAPI GLvoid WINAPI glConvolutionParameterfv(GLenum target, GLenum pname, const GLfloat* params);
  364. OPENGLAPI GLvoid WINAPI glConvolutionFilter1D(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid* data);
  365. OPENGLAPI GLvoid WINAPI glSeparableFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* row, const GLvoid* column);
  366. OPENGLAPI GLvoid WINAPI glCopyConvolutionFilter2D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
  367. OPENGLAPI GLvoid WINAPI glCopyConvolutionFilter1D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
  368. OPENGLAPI GLvoid WINAPI glHistogram(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
  369. OPENGLAPI GLvoid WINAPI glMinmax(GLenum target, GLenum internalformat, GLboolean sink);
  370.  
  371. // Section 3.6.4
  372. // Rasterization of Pixel Rectangles
  373. OPENGLAPI GLvoid WINAPI glDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* data);
  374. OPENGLAPI GLvoid WINAPI glPixelZoom(GLfloat zx, GLfloat zy);
  375.  
  376. // Section 3.6.5
  377. // Pixel Transfer Operations
  378. OPENGLAPI GLvoid WINAPI glConvolutionParameteri(GLenum target, GLenum pname, GLint param);
  379. OPENGLAPI GLvoid WINAPI glConvolutionParameterf(GLenum target, GLenum pname, GLfloat param);
  380.  
  381. // Section 3.7
  382. // Bitmaps
  383. OPENGLAPI GLvoid WINAPI glBitmap(GLsizei w, GLsizei h, GLfloat xbo, GLfloat ybo, GLfloat xbi, GLfloat ybi, const GLubyte* data);
  384.  
  385. // Section 3.8.1
  386. // Texture Image Specification
  387. OPENGLAPI GLvoid WINAPI glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* data);
  388. OPENGLAPI GLvoid WINAPI glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* data);
  389. OPENGLAPI GLvoid WINAPI glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid* data);
  390.  
  391. // Section 3.8.2
  392. // Alternate Texture Image Specification Commands
  393. OPENGLAPI GLvoid WINAPI glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
  394. OPENGLAPI GLvoid WINAPI glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
  395. OPENGLAPI GLvoid WINAPI glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLvoid* data);
  396. OPENGLAPI GLvoid WINAPI glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* data);
  397. OPENGLAPI GLvoid WINAPI glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid* data);
  398. OPENGLAPI GLvoid WINAPI glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  399. OPENGLAPI GLvoid WINAPI glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  400. OPENGLAPI GLvoid WINAPI glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
  401.  
  402. // Section 3.8.3
  403. // Texture Parameters
  404. OPENGLAPI GLvoid WINAPI glTexParameteri(GLenum target, GLenum pname, GLint param);
  405. OPENGLAPI GLvoid WINAPI glTexParameterf(GLenum target, GLenum pname, GLfloat param);
  406. OPENGLAPI GLvoid WINAPI glTexParameteriv(GLenum target, GLenum pname, const GLint* params);
  407. OPENGLAPI GLvoid WINAPI glTexParameterfv(GLenum target, GLenum pname, const GLfloat* params);
  408.  
  409. // Section 3.8.8
  410. // Texture Objects
  411. OPENGLAPI GLvoid WINAPI glBindTexture(GLenum target, GLuint texture);
  412. OPENGLAPI GLvoid WINAPI glDeleteTextures(GLsizei n, const GLuint* textures);
  413. OPENGLAPI GLvoid WINAPI glGenTextures(GLsizei n, GLuint* textures);
  414. OPENGLAPI GLboolean WINAPI glAreTexturesResident(GLsizei n, const GLuint* textures, GLboolean* residences);
  415. OPENGLAPI GLvoid WINAPI glPrioritizeTextures(GLsizei n, const GLuint* textures, const GLclampf* priorities);
  416.  
  417. // Section 3.8.9
  418. // Texture Environments and Texture Functions
  419. OPENGLAPI GLvoid WINAPI glTexEnvi(GLenum target, GLenum pname, GLint param);
  420. OPENGLAPI GLvoid WINAPI glTexEnvf(GLenum target, GLenum pname, GLfloat param);
  421. OPENGLAPI GLvoid WINAPI glTexEnviv(GLenum target, GLenum pname, const GLint* params);
  422. OPENGLAPI GLvoid WINAPI glTexEnvfv(GLenum target, GLenum pname, const GLfloat* params);
  423.  
  424. // Section 3.10
  425. // Fog
  426. OPENGLAPI GLvoid WINAPI glFogi(GLenum pname, GLint param);
  427. OPENGLAPI GLvoid WINAPI glFogf(GLenum pname, GLfloat param);
  428. OPENGLAPI GLvoid WINAPI glFogiv(GLenum pname, const GLint* params);
  429. OPENGLAPI GLvoid WINAPI glFogfv(GLenum pname, const GLfloat* params);
  430.  
  431. // Section 4.1.2
  432. // Scissor Test
  433. OPENGLAPI GLvoid WINAPI glScissor(GLint left, GLint bottom, GLsizei width, GLsizei height);
  434.  
  435. // Section 4.1.3
  436. // Alpha Test
  437. OPENGLAPI GLvoid WINAPI glAlphaFunc(GLenum func, GLclampf ref);
  438.  
  439. // Section 4.1.4
  440. // Stencil Test
  441. OPENGLAPI GLvoid WINAPI glStencilFunc(GLenum func, GLint ref, GLuint mask);
  442. OPENGLAPI GLvoid WINAPI glStencilOp(GLenum sfail, GLenum dpfail, GLenum dppass);
  443.  
  444. // Section 4.1.5
  445. // Depth Buffer Test
  446. OPENGLAPI GLvoid WINAPI glDepthFunc(GLenum func);
  447.  
  448. // Section 4.1.6
  449. // Blending
  450. OPENGLAPI GLvoid WINAPI glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
  451. OPENGLAPI GLvoid WINAPI glBlendEquation(GLenum mode);
  452. OPENGLAPI GLvoid WINAPI glBlendFunc(GLenum src, GLenum dst);
  453.  
  454. // Section 4.1.8
  455. // Logical Operation
  456. OPENGLAPI GLvoid WINAPI glLogicOp(GLenum op);
  457.  
  458. // Section 4.2.1
  459. // Selecting a Buffer for Writing
  460. OPENGLAPI GLvoid WINAPI glDrawBuffer(GLenum buf);
  461.  
  462. // Section 4.2.2
  463. // Fine Control of Buffer Updates
  464. OPENGLAPI GLvoid WINAPI glIndexMask(GLuint mask);
  465. OPENGLAPI GLvoid WINAPI glColorMask(GLboolean r, GLboolean g, GLboolean b, GLboolean a);
  466. OPENGLAPI GLvoid WINAPI glDepthMask(GLboolean mask);
  467. OPENGLAPI GLvoid WINAPI glStencilMask(GLuint mask);
  468.  
  469. // Section 4.2.3
  470. // Clearing the Buffers
  471. OPENGLAPI GLvoid WINAPI glClear(GLbitfield buf);
  472. OPENGLAPI GLvoid WINAPI glClearColor(GLclampf r, GLclampf g, GLclampf b, GLclampf a);
  473. OPENGLAPI GLvoid WINAPI glClearIndex(GLfloat index);
  474. OPENGLAPI GLvoid WINAPI glClearDepth(GLclampd d);
  475. OPENGLAPI GLvoid WINAPI glClearStencil(GLint s);
  476. OPENGLAPI GLvoid WINAPI glClearAccum(GLfloat r, GLfloat g, GLfloat b, GLfloat a);
  477.  
  478. // Section 4.2.4
  479. // The Accumulation Buffer
  480. OPENGLAPI GLvoid WINAPI glAccum(GLenum op, GLfloat value);
  481.  
  482. // Section 4.3.2
  483. // Reading Pixels
  484. OPENGLAPI GLvoid WINAPI glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* data);
  485. OPENGLAPI GLvoid WINAPI glReadBuffer(GLenum src);
  486.  
  487. // Section 4.3.3
  488. // Copying Pixels
  489. OPENGLAPI GLvoid WINAPI glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
  490.  
  491. // Section 5.1
  492. // Evaluators
  493. OPENGLAPI GLvoid WINAPI glMap1f(GLenum type, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points);
  494. OPENGLAPI GLvoid WINAPI glMap1d(GLenum type, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points);
  495. OPENGLAPI GLvoid WINAPI glMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points);
  496. OPENGLAPI GLvoid WINAPI glMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points);
  497. OPENGLAPI GLvoid WINAPI glEvalCoord1f(GLfloat u);
  498. OPENGLAPI GLvoid WINAPI glEvalCoord1d(GLdouble u);
  499. OPENGLAPI GLvoid WINAPI glEvalCoord2f(GLfloat u, GLfloat v);
  500. OPENGLAPI GLvoid WINAPI glEvalCoord2d(GLdouble u, GLdouble v);
  501. OPENGLAPI GLvoid WINAPI glEvalCoord1fv(const GLfloat* arg);
  502. OPENGLAPI GLvoid WINAPI glEvalCoord1dv(const GLdouble* arg);
  503. OPENGLAPI GLvoid WINAPI glEvalCoord2fv(const GLfloat* arg);
  504. OPENGLAPI GLvoid WINAPI glEvalCoord2dv(const GLdouble* arg);
  505. OPENGLAPI GLvoid WINAPI glMapGrid1f(GLint n, GLfloat u1, GLfloat u2);
  506. OPENGLAPI GLvoid WINAPI glMapGrid1d(GLint n, GLdouble u1, GLdouble u2);
  507. OPENGLAPI GLvoid WINAPI glMapGrid2f(GLint nu, GLfloat u1, GLfloat u2, GLint nv, GLfloat v1, GLfloat v2);
  508. OPENGLAPI GLvoid WINAPI glMapGrid2d(GLint nu, GLdouble u1, GLdouble u2, GLint nv, GLdouble v1, GLdouble v2);
  509. OPENGLAPI GLvoid WINAPI glEvalMesh1(GLenum mode, GLint p1, GLint p2);
  510. OPENGLAPI GLvoid WINAPI glEvalMesh2(GLenum mode, GLint p1, GLint p2, GLint q1, GLint q2);
  511. OPENGLAPI GLvoid WINAPI glEvalPoint1(GLint p);
  512. OPENGLAPI GLvoid WINAPI glEvalPoint2(GLint p, GLint q);
  513.  
  514. // Section 5.2
  515. // Selection
  516. OPENGLAPI GLvoid WINAPI glInitNames(GLvoid);
  517. OPENGLAPI GLvoid WINAPI glPopName(GLvoid);
  518. OPENGLAPI GLvoid WINAPI glPushName(GLuint name);
  519. OPENGLAPI GLvoid WINAPI glLoadName(GLuint name);
  520. OPENGLAPI GLint WINAPI glRenderMode(GLenum mode);
  521. OPENGLAPI GLvoid WINAPI glSelectBuffer(GLsizei n, GLuint* buffer);
  522.  
  523. // Section 5.3
  524. // Feedback
  525. OPENGLAPI GLvoid WINAPI glFeedbackBuffer(GLsizei n, GLenum type, GLfloat* buffer);
  526. OPENGLAPI GLvoid WINAPI glPassThrough(GLfloat token);
  527.  
  528. // Section 5.4
  529. // Display Lists
  530. OPENGLAPI GLvoid WINAPI glNewList(GLuint n, GLenum mode);
  531. OPENGLAPI GLvoid WINAPI glEndList(GLvoid);
  532. OPENGLAPI GLvoid WINAPI glCallList(GLuint n);
  533. OPENGLAPI GLvoid WINAPI glCallLists(GLsizei n, GLenum type, const GLvoid* lists);
  534. OPENGLAPI GLvoid WINAPI glListBase(GLuint base);
  535. OPENGLAPI GLuint WINAPI glGenLists(GLsizei s);
  536. OPENGLAPI GLboolean WINAPI glIsList(GLuint list);
  537. OPENGLAPI GLvoid WINAPI glDeleteLists(GLuint list, GLsizei range);
  538.  
  539. // Section 5.5
  540. // Flush and Finish
  541. OPENGLAPI GLvoid WINAPI glFlush(GLvoid);
  542. OPENGLAPI GLvoid WINAPI glFinish(GLvoid);
  543.  
  544. // Section 5.6
  545. // Hints
  546. OPENGLAPI GLvoid WINAPI glHint(GLenum target, GLenum hint);
  547.  
  548. // Section 6.1.1
  549. // Simple Queries
  550. OPENGLAPI GLvoid WINAPI glGetBooleanv(GLenum value, GLboolean* data);
  551. OPENGLAPI GLvoid WINAPI glGetIntegerv(GLenum value, GLint* data);
  552. OPENGLAPI GLvoid WINAPI glGetFloatv(GLenum value, GLfloat* data);
  553. OPENGLAPI GLvoid WINAPI glGetDoublev(GLenum value, GLdouble* data);
  554. OPENGLAPI GLboolean WINAPI glIsEnabled(GLenum value);
  555.  
  556. // Section 6.1.3
  557. // Enumerated Queries
  558. OPENGLAPI GLvoid WINAPI glGetClipPlane(GLenum plane, GLdouble eqn[4]);
  559. OPENGLAPI GLvoid WINAPI glGetLightiv(GLenum light, GLenum value, GLint* data);
  560. OPENGLAPI GLvoid WINAPI glGetLightfv(GLenum light, GLenum value, GLfloat* data);
  561. OPENGLAPI GLvoid WINAPI glGetMaterialiv(GLenum face, GLenum value, GLint* data);
  562. OPENGLAPI GLvoid WINAPI glGetMaterialfv(GLenum face, GLenum value, GLfloat* data);
  563. OPENGLAPI GLvoid WINAPI glGetTexEnviv(GLenum env, GLenum value, GLint* data);
  564. OPENGLAPI GLvoid WINAPI glGetTexEnvfv(GLenum env, GLenum value, GLfloat* data);
  565. OPENGLAPI GLvoid WINAPI glGetTexGeniv(GLenum coord, GLenum value, GLint* data);
  566. OPENGLAPI GLvoid WINAPI glGetTexGenfv(GLenum coord, GLenum value, GLfloat* data);
  567. OPENGLAPI GLvoid WINAPI glGetTexParameteriv(GLenum target, GLenum value, GLint* data);
  568. OPENGLAPI GLvoid WINAPI glGetTexParameterfv(GLenum target, GLenum value, GLfloat* data);
  569. OPENGLAPI GLvoid WINAPI glGetTexLevelParameteriv(GLenum target, GLint lod, GLenum value, GLint* data);
  570. OPENGLAPI GLvoid WINAPI glGetTexLevelParameterfv(GLenum target, GLint lod, GLenum value, GLfloat* data);
  571. OPENGLAPI GLvoid WINAPI glGetPixelMapuiv(GLenum map, GLuint* data);
  572. OPENGLAPI GLvoid WINAPI glGetPixelMapusv(GLenum map, GLushort* data);
  573. OPENGLAPI GLvoid WINAPI glGetPixelMapfv(GLenum map, GLfloat* data);
  574. OPENGLAPI GLvoid WINAPI glGetMapiv(GLenum map, GLenum value, GLint* data);
  575. OPENGLAPI GLvoid WINAPI glGetMapfv(GLenum map, GLenum value, GLfloat* data);
  576. OPENGLAPI GLvoid WINAPI glGetMapdv(GLenum map, GLenum value, GLdouble* data);
  577.  
  578. // Section 6.1.4
  579. // Texture Queries
  580. OPENGLAPI GLvoid WINAPI glGetTexImage(GLenum tex, GLint lod, GLenum format, GLenum type, GLvoid* img);
  581. OPENGLAPI GLboolean WINAPI glIsTexture(GLuint texture);
  582.  
  583. // Section 6.1.5
  584. // Stipple Query
  585. OPENGLAPI GLvoid WINAPI glGetPolygonStipple(GLvoid* pattern);
  586.  
  587. // Section 6.1.7
  588. // Color Table Query
  589. OPENGLAPI GLvoid WINAPI glGetColorTable(GLenum target, GLenum format, GLenum type, GLvoid* table);
  590. OPENGLAPI GLvoid WINAPI glGetColorTableParameteriv(GLenum target, GLenum pname, GLint* params);
  591. OPENGLAPI GLvoid WINAPI glGetColorTableParameterfv(GLenum target, GLenum pname, GLfloat* params);
  592.  
  593. // Section 6.1.8
  594. // Convolution Query
  595. OPENGLAPI GLvoid WINAPI glGetConvolutionFilter(GLenum target, GLenum format, GLenum type, GLvoid* image);
  596. OPENGLAPI GLvoid WINAPI glGetSeparableFilter(GLenum target, GLenum format, GLenum type, GLvoid* row, GLvoid* column, GLvoid* span);
  597. OPENGLAPI GLvoid WINAPI glGetConvolutionParameteriv(GLenum target, GLenum pname, GLint* params);
  598. OPENGLAPI GLvoid WINAPI glGetConvolutionParameterfv(GLenum target, GLenum pname, GLfloat* params);
  599.  
  600. // Section 6.1.9
  601. // Histogram Query
  602. OPENGLAPI GLvoid WINAPI glGetHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid* values);
  603. OPENGLAPI GLvoid WINAPI glResetHistogram(GLenum target);
  604. OPENGLAPI GLvoid WINAPI glGetHistogramParameteriv(GLenum target, GLenum pname, GLint* params);
  605. OPENGLAPI GLvoid WINAPI glGetHistogramParameterfv(GLenum target, GLenum pname, GLfloat* params);
  606.  
  607. // Section 6.1.10
  608. // Minmax Query
  609. OPENGLAPI GLvoid WINAPI glGetMinmax(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid* values);
  610. OPENGLAPI GLvoid WINAPI glResetMinmax(GLenum target);
  611. OPENGLAPI GLvoid WINAPI glGetMinmaxParameteriv(GLenum target, GLenum pname, GLint* params);
  612. OPENGLAPI GLvoid WINAPI glGetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat* params);
  613.  
  614. // Section 6.1.11
  615. // Pointer and String Queries
  616. OPENGLAPI GLvoid WINAPI glGetPointerv(GLenum pname, GLvoid** params);
  617. OPENGLAPI const GLubyte* WINAPI glGetString(GLenum name);
  618.  
  619. // Section 6.1.12
  620. // Saving and Restoring State
  621. OPENGLAPI GLvoid WINAPI glPushAttrib(GLbitfield mask);
  622. OPENGLAPI GLvoid WINAPI glPushClientAttrib(GLbitfield mask);
  623. OPENGLAPI GLvoid WINAPI glPopAttrib(GLvoid);
  624. OPENGLAPI GLvoid WINAPI glPopClientAttrib(GLvoid);
  625.  
  626. // Section WGL
  627. // Extra Extensions
  628. OPENGLAPI HGLRC WINAPI wglCreateContextEx(HDC device);
  629. OPENGLAPI BOOL WINAPI wglLoadExtensions(BOOL (*onfail)(LPCSTR));
  630.  
  631. // Appendix
  632. // Constants
  633. #define GL_2_BYTES 0x1407
  634. #define GL_3D 0x0601
  635. #define GL_3D_COLOR 0x0602
  636. #define GL_3D_COLOR_TEXTURE 0x0603
  637. #define GL_3_BYTES 0x1408
  638. #define GL_4D_COLOR_TEXTURE 0x0604
  639. #define GL_4_BYTES 0x1409
  640. #define GL_ACCUM 0x0100
  641. #define GL_ACCUM_BUFFER_BIT 0x00000200
  642. #define GL_ACTIVE_TEXTURE 0x84E0
  643. #define GL_ADD 0x0104
  644. #define GL_ALL_ATTRIB_BITS 0x000FFFFF
  645. #define GL_ALL_CLIENT_ATTRIB_BITS
  646. #define GL_ALPHA 0x1906
  647. #define GL_ALPHA12 0x803D
  648. #define GL_ALPHA16 0x803E
  649. #define GL_ALPHA4 0x803B
  650. #define GL_ALPHA8 0x803C
  651. #define GL_ALPHA_BIAS 0x0D1D
  652. #define GL_ALPHA_SCALE 0x0D1C
  653. #define GL_ALPHA_TEST 0x0BC0
  654. #define GL_ALWAYS 0x0207
  655. #define GL_AMBIENT 0x1200
  656. #define GL_AMBIENT_AND_DIFFUSE 0x1602
  657. #define GL_AND 0x1501
  658. #define GL_AND_INVERTED 0x1504
  659. #define GL_AND_REVERSE 0x1502
  660. #define GL_AUTO_NORMAL 0x0D80
  661. #define GL_AUX0 0x0409
  662. #define GL_BACK 0x0405
  663. #define GL_BACK_LEFT 0x0402
  664. #define GL_BACK_RIGHT 0x0403
  665. #define GL_BGR 0x80E0
  666. #define GL_BGRA 0x80E1
  667. #define GL_BITMAP 0x1A00
  668. #define GL_BITMAP_TOKEN 0x0704
  669. #define GL_BLEND 0x0BE2
  670. #define GL_BLUE 0x1905
  671. #define GL_BLUE_BIAS 0x0D1B
  672. #define GL_BLUE_SCALE 0x0D1A
  673. #define GL_BYTE 0x1400
  674. #define GL_C3F_V3F 0x2A24
  675. #define GL_C4F_N3F_V3F 0x2A26
  676. #define GL_C4UB_V2F 0x2A22
  677. #define GL_C4UB_V3F 0x2A23
  678. #define GL_CCW 0x0901
  679. #define GL_CLAMP 0x2900
  680. #define GL_CLAMP_TO_EDGE 0x812F
  681. #define GL_CLEAR 0x1500
  682. #define GL_CLIENT_ACTIVE_TEXTURE 0x84E1
  683. #define GL_CLIENT_PIXEL_STORE_BIT 0x00000001
  684. #define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002
  685. #define GL_CLIP_PLANE0 0x3000
  686. #define GL_COEFF 0x0A00
  687. #define GL_COLOR 0x1800
  688. #define GL_COLOR_ARRAY 0x8076
  689. #define GL_COLOR_ARRAY_POINTER 0x8090
  690. #define GL_COLOR_BUFFER_BIT 0x00004000
  691. #define GL_COLOR_INDEX 0x1900
  692. #define GL_COLOR_INDEXES 0x1603
  693. #define GL_COLOR_LOGIC_OP 0x0BF2
  694. #define GL_COLOR_MATERIAL 0x0B57
  695. #define GL_COLOR_MATRIX 0x80B1
  696. #define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2
  697. #define GL_COLOR_TABLE 0x80D0
  698. #define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD
  699. #define GL_COLOR_TABLE_BIAS 0x80D7
  700. #define GL_COLOR_TABLE_BLUE_SIZE 0x80DC
  701. #define GL_COLOR_TABLE_FORMAT 0x80D8
  702. #define GL_COLOR_TABLE_GREEN_SIZE 0x80DB
  703. #define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF
  704. #define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE
  705. #define GL_COLOR_TABLE_RED_SIZE 0x80DA
  706. #define GL_COLOR_TABLE_SCALE 0x80D6
  707. #define GL_COLOR_TABLE_WIDTH 0x80D9
  708. #define GL_COMPILE 0x1300
  709. #define GL_COMPILE_AND_EXECUTE 0x1301
  710. #define GL_CONSTANT_ALPHA 0x8003
  711. #define GL_CONSTANT_ATTENUATION 0x1207
  712. #define GL_CONSTANT_BORDER 0x8151
  713. #define GL_CONSTANT_COLOR 0x8001
  714. #define GL_CONVOLUTION_1D 0x8010
  715. #define GL_CONVOLUTION_2D 0x8011
  716. #define GL_CONVOLUTION_BORDER_COLOR 0x8154
  717. #define GL_CONVOLUTION_BORDER_MODE 0x8013
  718. #define GL_CONVOLUTION_FILTER_BIAS 0x8015
  719. #define GL_CONVOLUTION_FILTER_SCALE 0x8014
  720. #define GL_CONVOLUTION_FORMAT 0x8017
  721. #define GL_CONVOLUTION_HEIGHT 0x8019
  722. #define GL_CONVOLUTION_WIDTH 0x8018
  723. #define GL_COPY 0x1503
  724. #define GL_COPY_INVERTED 0x150C
  725. #define GL_COPY_PIXEL_TOKEN 0x0706
  726. #define GL_CULL_FACE 0x0B44
  727. #define GL_CURRENT_BIT 0x00000001
  728. #define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06
  729. #define GL_CURRENT_TEXTURE_COORDS 0x0B03
  730. #define GL_CW 0x0900
  731. #define GL_DECAL 0x2101
  732. #define GL_DECR 0x1E03
  733. #define GL_DEPTH 0x1801
  734. #define GL_DEPTH_BIAS 0x0D1F
  735. #define GL_DEPTH_BUFFER_BIT 0x00000100
  736. #define GL_DEPTH_COMPONENT 0x1902
  737. #define GL_DEPTH_SCALE 0x0D1E
  738. #define GL_DEPTH_TEST 0x0B71
  739. #define GL_DIFFUSE 0x1201
  740. #define GL_DITHER 0x0BD0
  741. #define GL_DOMAIN 0x0A02
  742. #define GL_DONT_CARE 0x1100
  743. #define GL_DOUBLE 0x140A
  744. #define GL_DRAW_PIXEL_TOKEN 0x0705
  745. #define GL_DST_ALPHA 0x0304
  746. #define GL_DST_COLOR 0x0306
  747. #define GL_EDGE_FLAG_ARRAY 0x8079
  748. #define GL_EDGE_FLAG_ARRAY_POINTER 0x8093
  749. #define GL_EMISSION 0x1600
  750. #define GL_ENABLE_BIT 0x00002000
  751. #define GL_EQUAL 0x0202
  752. #define GL_EQUIV 0x1509
  753. #define GL_EVAL_BIT 0x00010000
  754. #define GL_EXP 0x0800
  755. #define GL_EXP2 0x0801
  756. #define GL_EXTENSIONS 0x1F03
  757. #define GL_EYE_LINEAR 0x2400
  758. #define GL_EYE_PLANE 0x2502
  759. #define GL_FALSE 0
  760. #define GL_FASTEST 0x1101
  761. #define GL_FEEDBACK 0x1C01
  762. #define GL_FEEDBACK_BUFFER_POINTER 0x0DF0
  763. #define GL_FILL 0x1B02
  764. #define GL_FLAT 0x1D00
  765. #define GL_FLOAT 0x1406
  766. #define GL_FOG 0x0B60
  767. #define GL_FOG_BIT 0x00000080
  768. #define GL_FOG_COLOR 0x0B66
  769. #define GL_FOG_DENSITY 0x0B62
  770. #define GL_FOG_END 0x0B64
  771. #define GL_FOG_HINT 0x0C54
  772. #define GL_FOG_INDEX 0x0B61
  773. #define GL_FOG_MODE 0x0B65
  774. #define GL_FOG_START 0x0B63
  775. #define GL_FRONT 0x0404
  776. #define GL_FRONT_AND_BACK 0x0408
  777. #define GL_FRONT_LEFT 0x0400
  778. #define GL_FRONT_RIGHT 0x0401
  779. #define GL_FUNC_ADD 0x8006
  780. #define GL_FUNC_REVERSE_SUBTRACT 0x800B
  781. #define GL_FUNC_SUBTRACT 0x800A
  782. #define GL_GEQUAL 0x0206
  783. #define GL_GREATER 0x0204
  784. #define GL_GREEN 0x1904
  785. #define GL_GREEN_BIAS 0x0D19
  786. #define GL_GREEN_SCALE 0x0D18
  787. #define GL_HINT_BIT 0x00008000
  788. #define GL_HISTOGRAM 0x8024
  789. #define GL_HISTOGRAM_ALPHA_SIZE 0x802B
  790. #define GL_HISTOGRAM_BLUE_SIZE 0x802A
  791. #define GL_HISTOGRAM_FORMAT 0x8027
  792. #define GL_HISTOGRAM_GREEN_SIZE 0x8029
  793. #define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C
  794. #define GL_HISTOGRAM_RED_SIZE 0x8028
  795. #define GL_HISTOGRAM_SINK 0x802D
  796. #define GL_HISTOGRAM_WIDTH 0x8026
  797. #define GL_INCR 0x1E02
  798. #define GL_INDEX_ARRAY 0x8077
  799. #define GL_INDEX_ARRAY_POINTER 0x8091
  800. #define GL_INDEX_LOGIC_OP 0x0BF1
  801. #define GL_INDEX_OFFSET 0x0D13
  802. #define GL_INDEX_SHIFT 0x0D12
  803. #define GL_INT 0x1404
  804. #define GL_INTENSITY 0x8049
  805. #define GL_INTENSITY12 0x804C
  806. #define GL_INTENSITY16 0x804D
  807. #define GL_INTENSITY4 0x804A
  808. #define GL_INTENSITY8 0x804B
  809. #define GL_INVALID_ENUM 0x0500
  810. #define GL_INVALID_OPERATION 0x0502
  811. #define GL_INVALID_VALUE 0x0501
  812. #define GL_INVERT 0x150A
  813. #define GL_KEEP 0x1E00
  814. #define GL_LEFT 0x0406
  815. #define GL_LEQUAL 0x0203
  816. #define GL_LESS 0x0201
  817. #define GL_LIGHT0 0x4000
  818. #define GL_LIGHT_MODEL_AMBIENT 0x0B53
  819. #define GL_LIGHT_MODEL_COLOR_CONTROL
  820. #define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51
  821. #define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
  822. #define GL_LIGHTING 0x0B50
  823. #define GL_LIGHTING_BIT 0x00000040
  824. #define GL_LINE 0x1B01
  825. #define GL_LINE_BIT 0x00000004
  826. #define GL_LINE_LOOP 0x0002
  827. #define GL_LINE_RESET_TOKEN 0x0707
  828. #define GL_LINE_SMOOTH 0x0B20
  829. #define GL_LINE_SMOOTH_HINT 0x0C52
  830. #define GL_LINE_STIPPLE 0x0B24
  831. #define GL_LINE_STRIP 0x0003
  832. #define GL_LINE_TOKEN 0x0702
  833. #define GL_LINEAR 0x2601
  834. #define GL_LINEAR_ATTENUATION 0x1208
  835. #define GL_LINEAR_MIPMAP_LINEAR 0x2703
  836. #define GL_LINEAR_MIPMAP_NEAREST 0x2701
  837. #define GL_LINES 0x0001
  838. #define GL_LIST_BIT 0x00020000
  839. #define GL_LOAD 0x0101
  840. #define GL_LOGIC_OP 0x0BF1
  841. #define GL_LUMINANCE 0x1909
  842. #define GL_LUMINANCE12 0x8041
  843. #define GL_LUMINANCE12_ALPHA12 0x8047
  844. #define GL_LUMINANCE12_ALPHA4 0x8046
  845. #define GL_LUMINANCE16 0x8042
  846. #define GL_LUMINANCE16_ALPHA16 0x8048
  847. #define GL_LUMINANCE4 0x803F
  848. #define GL_LUMINANCE4_ALPHA4 0x8043
  849. #define GL_LUMINANCE6_ALPHA2 0x8044
  850. #define GL_LUMINANCE8 0x8040
  851. #define GL_LUMINANCE8_ALPHA8 0x8045
  852. #define GL_LUMINANCE_ALPHA 0x190A
  853. #define GL_MAP1_COLOR_4 0x0D90
  854. #define GL_MAP1_INDEX 0x0D91
  855. #define GL_MAP1_NORMAL 0x0D92
  856. #define GL_MAP1_TEXTURE_COORD_1 0x0D93
  857. #define GL_MAP1_TEXTURE_COORD_2 0x0D94
  858. #define GL_MAP1_TEXTURE_COORD_3 0x0D95
  859. #define GL_MAP1_TEXTURE_COORD_4 0x0D96
  860. #define GL_MAP1_VERTEX_3 0x0D97
  861. #define GL_MAP1_VERTEX_4 0x0D98
  862. #define GL_MAP2_VERTEX_3 0x0DB7
  863. #define GL_MAP2_VERTEX_4 0x0DB8
  864. #define GL_MAP_COLOR 0x0D10
  865. #define GL_MAP_STENCIL 0x0D11
  866. #define GL_MAX 0x8008
  867. #define GL_MAX_3D_TEXTURE_SIZE 0x8073
  868. #define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35
  869. #define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B
  870. #define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3
  871. #define GL_MAX_CONVOLUTION_HEIGHT 0x801B
  872. #define GL_MAX_CONVOLUTION_WIDTH 0x801A
  873. #define GL_MAX_ELEMENTS_INDICES 0x80E9
  874. #define GL_MAX_ELEMENTS_VERTICES 0x80E8
  875. #define GL_MAX_EVAL_ORDER 0x0D30
  876. #define GL_MAX_PIXEL_MAP_TABLE 0x0D34
  877. #define GL_MAX_TEXTURE_SIZE 0x0D33
  878. #define GL_MAX_TEXTURE_UNITS 0x84E2
  879. #define GL_MIN 0x8007
  880. #define GL_MINMAX 0x802E
  881. #define GL_MINMAX_FORMAT 0x802F
  882. #define GL_MINMAX_SINK 0x8030
  883. #define GL_MODELVIEW 0x1700
  884. #define GL_MODULATE 0x2100
  885. #define GL_MULT 0x0103
  886. #define GL_N3F_V3F 0x2A25
  887. #define GL_NAND 0x150E
  888. #define GL_NEAREST 0x2600
  889. #define GL_NEAREST_MIPMAP_LINEAR 0x2702
  890. #define GL_NEAREST_MIPMAP_NEAREST 0x2700
  891. #define GL_NEVER 0x0200
  892. #define GL_NICEST 0x1102
  893. #define GL_NO_ERROR 0x0000
  894. #define GL_NONE 0x0000
  895. #define GL_NOOP 0x1505
  896. #define GL_NOR 0x1508
  897. #define GL_NORMAL_ARRAY 0x8075
  898. #define GL_NORMAL_ARRAY_POINTER 0x808F
  899. #define GL_NORMALIZE 0x0BA1
  900. #define GL_NOTEQUAL 0x0205
  901. #define GL_OBJECT_LINEAR 0x2401
  902. #define GL_OBJECT_PLANE 0x2501
  903. #define GL_ONE 1
  904. #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
  905. #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
  906. #define GL_ONE_MINUS_DST_ALPHA 0x0305
  907. #define GL_ONE_MINUS_DST_COLOR 0x0307
  908. #define GL_ONE_MINUS_SRC_ALPHA 0x0303
  909. #define GL_ONE_MINUS_SRC_COLOR 0x0301
  910. #define GL_OR 0x1507
  911. #define GL_OR_INVERTED 0x150D
  912. #define GL_OR_REVERSE 0x150B
  913. #define GL_ORDER 0x0A01
  914. #define GL_OUT_OF_MEMORY 0x0505
  915. #define GL_PACK_ALIGNMENT 0x0D05
  916. #define GL_PACK_IMAGE_HEIGHT 0x806C
  917. #define GL_PACK_LSB_FIRST 0x0D01
  918. #define GL_PACK_ROW_LENGTH 0x0D02
  919. #define GL_PACK_SKIP_IMAGES 0x806B
  920. #define GL_PACK_SKIP_PIXELS 0x0D04
  921. #define GL_PACK_SKIP_ROWS 0x0D03
  922. #define GL_PACK_SWAP_BYTES 0x0D00
  923. #define GL_PASS_THROUGH_TOKEN 0x0700
  924. #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
  925. #define GL_PIXEL_MAP_A_TO_A 0x0C79
  926. #define GL_PIXEL_MAP_B_TO_B 0x0C78
  927. #define GL_PIXEL_MAP_G_TO_G 0x0C77
  928. #define GL_PIXEL_MAP_I_TO_A 0x0C75
  929. #define GL_PIXEL_MAP_I_TO_B 0x0C74
  930. #define GL_PIXEL_MAP_I_TO_G 0x0C73
  931. #define GL_PIXEL_MAP_I_TO_I 0x0C70
  932. #define GL_PIXEL_MAP_I_TO_R 0x0C72
  933. #define GL_PIXEL_MAP_R_TO_R 0x0C76
  934. #define GL_PIXEL_MAP_S_TO_S 0x0C71
  935. #define GL_PIXEL_MODE_BIT 0x00000020
  936. #define GL_POINT 0x1B00
  937. #define GL_POINT_BIT 0x00000002
  938. #define GL_POINT_SMOOTH 0x0B10
  939. #define GL_POINT_SMOOTH_HINT 0x0C51
  940. #define GL_POINT_TOKEN 0x0701
  941. #define GL_POINTS 0x0000
  942. #define GL_POLYGON 0x0009
  943. #define GL_POLYGON_BIT 0x00000008
  944. #define GL_POLYGON_OFFSET_FILL 0x8037
  945. #define GL_POLYGON_OFFSET_LINE 0x2A02
  946. #define GL_POLYGON_OFFSET_POINT 0x2A01
  947. #define GL_POLYGON_SMOOTH 0x0B41
  948. #define GL_POLYGON_SMOOTH_HINT 0x0C53
  949. #define GL_POLYGON_STIPPLE 0x0B42
  950. #define GL_POLYGON_STIPPLE_BIT 0x00000010
  951. #define GL_POLYGON_TOKEN 0x0703
  952. #define GL_POSITION 0x1203
  953. #define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB
  954. #define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7
  955. #define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA
  956. #define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6
  957. #define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2
  958. #define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9
  959. #define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5
  960. #define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8
  961. #define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4
  962. #define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023
  963. #define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F
  964. #define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022
  965. #define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E
  966. #define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1
  967. #define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021
  968. #define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D
  969. #define GL_POST_CONVOLUTION_RED_BIAS 0x8020
  970. #define GL_POST_CONVOLUTION_RED_SCALE 0x801C
  971. #define GL_PROJECTION 0x1701
  972. #define GL_PROXY_COLOR_TABLE 0x80D3
  973. #define GL_PROXY_HISTOGRAM 0x8025
  974. #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
  975. #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
  976. #define GL_PROXY_TEXTURE_1D 0x8063
  977. #define GL_PROXY_TEXTURE_2D 0x8064
  978. #define GL_PROXY_TEXTURE_3D 0x8070
  979. #define GL_Q 0x2003
  980. #define GL_QUAD_STRIP 0x0008
  981. #define GL_QUADRATIC_ATTENUATION 0x1209
  982. #define GL_QUADS 0x0007
  983. #define GL_R 0x2002
  984. #define GL_R3_G3_B2 0x2A10
  985. #define GL_RED 0x1903
  986. #define GL_RED_BIAS 0x0D15
  987. #define GL_RED_SCALE 0x0D14
  988. #define GL_REDUCE 0x8016
  989. #define GL_RENDER 0x1C00
  990. #define GL_RENDERER 0x1F01
  991. #define GL_REPEAT 0x2901
  992. #define GL_REPLACE 0x1E01
  993. #define GL_REPLICATE_BORDER 0x8153
  994. #define GL_RESCALE_NORMAL 0x803A
  995. #define GL_RETURN 0x0102
  996. #define GL_RGB 0x1907
  997. #define GL_RGB10 0x8052
  998. #define GL_RGB10_A2 0x8059
  999. #define GL_RGB12 0x8053
  1000. #define GL_RGB16 0x8054
  1001. #define GL_RGB4 0x804F
  1002. #define GL_RGB5 0x8050
  1003. #define GL_RGB5_A1 0x8057
  1004. #define GL_RGB8 0x8051
  1005. #define GL_RGBA 0x1908
  1006. #define GL_RGBA12 0x805A
  1007. #define GL_RGBA16 0x805B
  1008. #define GL_RGBA2 0x8055
  1009. #define GL_RGBA4 0x8056
  1010. #define GL_RGBA8 0x8058
  1011. #define GL_RIGHT 0x0407
  1012. #define GL_S 0x2000
  1013. #define GL_SCISSOR_BIT 0x00080000
  1014. #define GL_SCISSOR_TEST 0x0C11
  1015. #define GL_SELECT 0x1C02
  1016. #define GL_SELECTION_BUFFER_POINTER 0x0DF3
  1017. #define GL_SEPARABLE_2D 0x8012
  1018. #define GL_SEPARATE_SPECULAR_COLOR
  1019. #define GL_SET 0x150F
  1020. #define GL_SHININESS 0x1601
  1021. #define GL_SHORT 0x1402
  1022. #define GL_SINGLE_COLOR
  1023. #define GL_SMOOTH 0x1D01
  1024. #define GL_SPECULAR 0x1202
  1025. #define GL_SPHERE_MAP 0x2402
  1026. #define GL_SPOT_CUTOFF 0x1206
  1027. #define GL_SPOT_DIRECTION 0x1204
  1028. #define GL_SPOT_EXPONENT 0x1205
  1029. #define GL_SRC_ALPHA 0x0302
  1030. #define GL_SRC_ALPHA_SATURATE 0x0308
  1031. #define GL_SRC_COLOR 0x0300
  1032. #define GL_STACK_OVERFLOW 0x0503
  1033. #define GL_STACK_UNDERFLOW 0x0504
  1034. #define GL_STENCIL 0x1802
  1035. #define GL_STENCIL_BUFFER_BIT 0x00000400
  1036. #define GL_STENCIL_INDEX 0x1901
  1037. #define GL_STENCIL_TEST 0x0B90
  1038. #define GL_T 0x2001
  1039. #define GL_T2F_C3F_V3F 0x2A2A
  1040. #define GL_T2F_C4F_N3F_V3F 0x2A2C
  1041. #define GL_T2F_C4UB_V3F 0x2A29
  1042. #define GL_T2F_N3F_V3F 0x2A2B
  1043. #define GL_T2F_V3F 0x2A27
  1044. #define GL_T4F_C4F_N3F_V4F 0x2A2D
  1045. #define GL_T4F_V4F 0x2A28
  1046. #define GL_TABLE_TOO_LARGE 0x8031
  1047. #define GL_TEXTURE 0x1702
  1048. #define GL_TEXTURE0 0x84C0
  1049. #define GL_TEXTURE1 0x84C1
  1050. #define GL_TEXTURE2 0x84C2
  1051. #define GL_TEXTURE3 0x84C3
  1052. #define GL_TEXTURE4 0x84C4
  1053. #define GL_TEXTURE5 0x84C5
  1054. #define GL_TEXTURE6 0x84C6
  1055. #define GL_TEXTURE7 0x84C7
  1056. #define GL_TEXTURE8 0x84C8
  1057. #define GL_TEXTURE9 0x84C9
  1058. #define GL_TEXTURE10 0x84CA
  1059. #define GL_TEXTURE11 0x84CB
  1060. #define GL_TEXTURE12 0x84CC
  1061. #define GL_TEXTURE13 0x84CD
  1062. #define GL_TEXTURE14 0x84CE
  1063. #define GL_TEXTURE15 0x84CF
  1064. #define GL_TEXTURE16 0x84D0
  1065. #define GL_TEXTURE17 0x84D1
  1066. #define GL_TEXTURE18 0x84D2
  1067. #define GL_TEXTURE19 0x84D3
  1068. #define GL_TEXTURE20 0x84D4
  1069. #define GL_TEXTURE21 0x84D5
  1070. #define GL_TEXTURE22 0x84D6
  1071. #define GL_TEXTURE23 0x84D7
  1072. #define GL_TEXTURE24 0x84D8
  1073. #define GL_TEXTURE25 0x84D9
  1074. #define GL_TEXTURE26 0x84DA
  1075. #define GL_TEXTURE27 0x84DB
  1076. #define GL_TEXTURE28 0x84DC
  1077. #define GL_TEXTURE29 0x84DD
  1078. #define GL_TEXTURE30 0x84DE
  1079. #define GL_TEXTURE31 0x84DF
  1080. #define GL_TEXTURE_1D 0x0DE0
  1081. #define GL_TEXTURE_2D 0x0DE1
  1082. #define GL_TEXTURE_3D 0x806F
  1083. #define GL_TEXTURE_ALPHA_SIZE 0x805F
  1084. #define GL_TEXTURE_BASE_LEVEL 0x813C
  1085. #define GL_TEXTURE_BIT 0x00040000
  1086. #define GL_TEXTURE_BLUE_SIZE 0x805E
  1087. #define GL_TEXTURE_BORDER 0x1005
  1088. #define GL_TEXTURE_BORDER_COLOR 0x1004
  1089. #define GL_TEXTURE_COMPONENTS 0x1003
  1090. #define GL_TEXTURE_COORD_ARRAY 0x8078
  1091. #define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092
  1092. #define GL_TEXTURE_DEPTH 0x8071
  1093. #define GL_TEXTURE_ENV 0x2300
  1094. #define GL_TEXTURE_ENV_COLOR 0x2201
  1095. #define GL_TEXTURE_ENV_MODE 0x2200
  1096. #define GL_TEXTURE_GEN_MODE 0x2500
  1097. #define GL_TEXTURE_GEN_Q 0x0C63
  1098. #define GL_TEXTURE_GEN_R 0x0C62
  1099. #define GL_TEXTURE_GEN_S 0x0C60
  1100. #define GL_TEXTURE_GEN_T 0x0C61
  1101. #define GL_TEXTURE_GREEN_SIZE 0x805D
  1102. #define GL_TEXTURE_HEIGHT 0x1001
  1103. #define GL_TEXTURE_INTENSITY_SIZE 0x8061
  1104. #define GL_TEXTURE_INTERNAL_FORMAT 0x1003
  1105. #define GL_TEXTURE_LUMINANCE_SIZE 0x8060
  1106. #define GL_TEXTURE_MAG_FILTER 0x2800
  1107. #define GL_TEXTURE_MAX_LEVEL 0x813D
  1108. #define GL_TEXTURE_MAX_LOD 0x813B
  1109. #define GL_TEXTURE_MIN_FILTER 0x2801
  1110. #define GL_TEXTURE_MIN_LOD 0x813A
  1111. #define GL_TEXTURE_PRIORITY 0x8066
  1112. #define GL_TEXTURE_RED_SIZE 0x805C
  1113. #define GL_TEXTURE_RESIDENT 0x8067
  1114. #define GL_TEXTURE_WIDTH 0x1000
  1115. #define GL_TEXTURE_WRAP_R 0x8072
  1116. #define GL_TEXTURE_WRAP_S 0x2802
  1117. #define GL_TEXTURE_WRAP_T 0x2803
  1118. #define GL_TRANSFORM_BIT 0x00001000
  1119. #define GL_TRIANGLE_FAN 0x0006
  1120. #define GL_TRIANGLE_STRIP 0x0005
  1121. #define GL_TRIANGLES 0x0004
  1122. #define GL_TRUE 1
  1123. #define GL_UNPACK_ALIGNMENT 0x0CF5
  1124. #define GL_UNPACK_IMAGE_HEIGHT 0x806E
  1125. #define GL_UNPACK_LSB_FIRST 0x0CF1
  1126. #define GL_UNPACK_ROW_LENGTH 0x0CF2
  1127. #define GL_UNPACK_SKIP_IMAGES 0x806D
  1128. #define GL_UNPACK_SKIP_PIXELS 0x0CF4
  1129. #define GL_UNPACK_SKIP_ROWS 0x0CF3
  1130. #define GL_UNPACK_SWAP_BYTES 0x0CF0
  1131. #define GL_UNSIGNED_BYTE 0x1401
  1132. #define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
  1133. #define GL_UNSIGNED_BYTE_3_3_2 0x8032
  1134. #define GL_UNSIGNED_INT 0x1405
  1135. #define GL_UNSIGNED_INT_10_10_10_2 0x8036
  1136. #define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
  1137. #define GL_UNSIGNED_INT_8_8_8_8 0x8035
  1138. #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
  1139. #define GL_UNSIGNED_SHORT 0x1403
  1140. #define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
  1141. #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
  1142. #define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
  1143. #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
  1144. #define GL_UNSIGNED_SHORT_5_6_5 0x8363
  1145. #define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
  1146. #define GL_VENDOR 0x1F00
  1147. #define GL_VERSION 0x1F02
  1148. #define GL_VERTEX_ARRAY 0x8074
  1149. #define GL_VERTEX_ARRAY_POINTER 0x808E
  1150. #define GL_VIEWPORT_BIT 0x00000800
  1151. #define GL_XOR 0x1506
  1152. #define GL_ZERO 0
  1153.  
  1154. #ifdef __cplusplus
  1155. }
  1156. #endif
  1157.  
  1158. #endif
  1159.