42 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__)
43 #define WIN32_LEAN_AND_MEAN 1
54 typedef unsigned int GLenum;
55 typedef unsigned char GLboolean;
56 typedef unsigned int GLbitfield;
57 typedef signed char GLbyte;
58 typedef short GLshort;
61 typedef unsigned char GLubyte;
62 typedef unsigned short GLushort;
63 typedef unsigned int GLuint;
64 typedef float GLfloat;
65 typedef float GLclampf;
67 typedef int GLintptrARB;
68 typedef int GLsizeiptrARB;
72 typedef void (*_GLfuncptr)();
77 #define GL_OES_VERSION_1_0 1
78 #define GL_OES_read_format 1
79 #define GL_OES_compressed_paletted_texture 1
82 #define GL_DEPTH_BUFFER_BIT 0x00000100
83 #define GL_STENCIL_BUFFER_BIT 0x00000400
84 #define GL_COLOR_BUFFER_BIT 0x00004000
91 #define GL_POINTS 0x0000
92 #define GL_LINES 0x0001
93 #define GL_LINE_LOOP 0x0002
94 #define GL_LINE_STRIP 0x0003
95 #define GL_TRIANGLES 0x0004
96 #define GL_TRIANGLE_STRIP 0x0005
97 #define GL_TRIANGLE_FAN 0x0006
100 #define GL_NEVER 0x0200
101 #define GL_LESS 0x0201
102 #define GL_EQUAL 0x0202
103 #define GL_LEQUAL 0x0203
104 #define GL_GREATER 0x0204
105 #define GL_NOTEQUAL 0x0205
106 #define GL_GEQUAL 0x0206
107 #define GL_ALWAYS 0x0207
112 #define GL_SRC_COLOR 0x0300
113 #define GL_ONE_MINUS_SRC_COLOR 0x0301
114 #define GL_SRC_ALPHA 0x0302
115 #define GL_ONE_MINUS_SRC_ALPHA 0x0303
116 #define GL_DST_ALPHA 0x0304
117 #define GL_ONE_MINUS_DST_ALPHA 0x0305
122 #define GL_DST_COLOR 0x0306
123 #define GL_ONE_MINUS_DST_COLOR 0x0307
124 #define GL_SRC_ALPHA_SATURATE 0x0308
142 #define GL_FRONT 0x0404
143 #define GL_BACK 0x0405
144 #define GL_FRONT_AND_BACK 0x0408
157 #define GL_FOG 0x0B60
158 #define GL_LIGHTING 0x0B50
159 #define GL_TEXTURE_2D 0x0DE1
160 #define GL_CULL_FACE 0x0B44
161 #define GL_ALPHA_TEST 0x0BC0
162 #define GL_BLEND 0x0BE2
163 #define GL_COLOR_LOGIC_OP 0x0BF2
164 #define GL_DITHER 0x0BD0
165 #define GL_STENCIL_TEST 0x0B90
166 #define GL_DEPTH_TEST 0x0B71
175 #define GL_POINT_SMOOTH 0x0B10
176 #define GL_LINE_SMOOTH 0x0B20
177 #define GL_SCISSOR_TEST 0x0C11
178 #define GL_COLOR_MATERIAL 0x0B57
179 #define GL_NORMALIZE 0x0BA1
180 #define GL_RESCALE_NORMAL 0x803A
181 #define GL_POLYGON_OFFSET_FILL 0x8037
182 #define GL_VERTEX_ARRAY 0x8074
183 #define GL_NORMAL_ARRAY 0x8075
184 #define GL_COLOR_ARRAY 0x8076
185 #define GL_TEXTURE_COORD_ARRAY 0x8078
186 #define GL_MULTISAMPLE 0x809D
187 #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
188 #define GL_SAMPLE_ALPHA_TO_ONE 0x809F
189 #define GL_SAMPLE_COVERAGE 0x80A0
192 #define GL_NO_ERROR 0
193 #define GL_INVALID_ENUM 0x0500
194 #define GL_INVALID_VALUE 0x0501
195 #define GL_INVALID_OPERATION 0x0502
196 #define GL_STACK_OVERFLOW 0x0503
197 #define GL_STACK_UNDERFLOW 0x0504
198 #define GL_OUT_OF_MEMORY 0x0505
202 #define GL_EXP 0x0800
203 #define GL_EXP2 0x0801
206 #define GL_FOG_DENSITY 0x0B62
207 #define GL_FOG_START 0x0B63
208 #define GL_FOG_END 0x0B64
209 #define GL_FOG_MODE 0x0B65
210 #define GL_FOG_COLOR 0x0B66
214 #define GL_CCW 0x0901
217 #define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
218 #define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
219 #define GL_ALIASED_POINT_SIZE_RANGE 0x846D
220 #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
221 #define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A
222 #define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B
223 #define GL_MAX_LIGHTS 0x0D31
224 #define GL_MAX_TEXTURE_SIZE 0x0D33
225 #define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36
226 #define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38
227 #define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39
228 #define GL_MAX_VIEWPORT_DIMS 0x0D3A
229 #define GL_MAX_ELEMENTS_VERTICES 0x80E8
230 #define GL_MAX_ELEMENTS_INDICES 0x80E9
231 #define GL_MAX_TEXTURE_UNITS 0x84E2
232 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
233 #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
234 #define GL_SUBPIXEL_BITS 0x0D50
235 #define GL_RED_BITS 0x0D52
236 #define GL_GREEN_BITS 0x0D53
237 #define GL_BLUE_BITS 0x0D54
238 #define GL_ALPHA_BITS 0x0D55
239 #define GL_DEPTH_BITS 0x0D56
240 #define GL_STENCIL_BITS 0x0D57
243 #define GL_DONT_CARE 0x1100
244 #define GL_FASTEST 0x1101
245 #define GL_NICEST 0x1102
248 #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
249 #define GL_POINT_SMOOTH_HINT 0x0C51
250 #define GL_LINE_SMOOTH_HINT 0x0C52
251 #define GL_POLYGON_SMOOTH_HINT 0x0C53
252 #define GL_FOG_HINT 0x0C54
255 #define GL_LIGHT_MODEL_AMBIENT 0x0B53
256 #define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
259 #define GL_AMBIENT 0x1200
260 #define GL_DIFFUSE 0x1201
261 #define GL_SPECULAR 0x1202
262 #define GL_POSITION 0x1203
263 #define GL_SPOT_DIRECTION 0x1204
264 #define GL_SPOT_EXPONENT 0x1205
265 #define GL_SPOT_CUTOFF 0x1206
266 #define GL_CONSTANT_ATTENUATION 0x1207
267 #define GL_LINEAR_ATTENUATION 0x1208
268 #define GL_QUADRATIC_ATTENUATION 0x1209
271 #define GL_BYTE 0x1400
272 #define GL_UNSIGNED_BYTE 0x1401
273 #define GL_SHORT 0x1402
274 #define GL_UNSIGNED_SHORT 0x1403
275 #define GL_FLOAT 0x1406
276 #define GL_FIXED 0x140C
279 #define GL_CLEAR 0x1500
280 #define GL_AND 0x1501
281 #define GL_AND_REVERSE 0x1502
282 #define GL_COPY 0x1503
283 #define GL_AND_INVERTED 0x1504
284 #define GL_NOOP 0x1505
285 #define GL_XOR 0x1506
287 #define GL_NOR 0x1508
288 #define GL_EQUIV 0x1509
289 #define GL_INVERT 0x150A
290 #define GL_OR_REVERSE 0x150B
291 #define GL_COPY_INVERTED 0x150C
292 #define GL_OR_INVERTED 0x150D
293 #define GL_NAND 0x150E
294 #define GL_SET 0x150F
300 #define GL_EMISSION 0x1600
301 #define GL_SHININESS 0x1601
302 #define GL_AMBIENT_AND_DIFFUSE 0x1602
308 #define GL_MODELVIEW 0x1700
309 #define GL_PROJECTION 0x1701
310 #define GL_TEXTURE 0x1702
319 #define GL_ALPHA 0x1906
320 #define GL_RGB 0x1907
321 #define GL_RGBA 0x1908
322 #define GL_LUMINANCE 0x1909
323 #define GL_LUMINANCE_ALPHA 0x190A
326 #define GL_UNPACK_ALIGNMENT 0x0CF5
327 #define GL_PACK_ALIGNMENT 0x0D05
331 #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
332 #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
333 #define GL_UNSIGNED_SHORT_5_6_5 0x8363
336 #define GL_FLAT 0x1D00
337 #define GL_SMOOTH 0x1D01
351 #define GL_KEEP 0x1E00
352 #define GL_REPLACE 0x1E01
353 #define GL_INCR 0x1E02
354 #define GL_DECR 0x1E03
358 #define GL_VENDOR 0x1F00
359 #define GL_RENDERER 0x1F01
360 #define GL_VERSION 0x1F02
361 #define GL_EXTENSIONS 0x1F03
370 #define GL_MODULATE 0x2100
371 #define GL_DECAL 0x2101
373 #define GL_ADD 0x0104
377 #define GL_TEXTURE_ENV_MODE 0x2200
378 #define GL_TEXTURE_ENV_COLOR 0x2201
381 #define GL_TEXTURE_ENV 0x2300
384 #define GL_NEAREST 0x2600
385 #define GL_LINEAR 0x2601
390 #define GL_NEAREST_MIPMAP_NEAREST 0x2700
391 #define GL_LINEAR_MIPMAP_NEAREST 0x2701
392 #define GL_NEAREST_MIPMAP_LINEAR 0x2702
393 #define GL_LINEAR_MIPMAP_LINEAR 0x2703
396 #define GL_TEXTURE_MAG_FILTER 0x2800
397 #define GL_TEXTURE_MIN_FILTER 0x2801
398 #define GL_TEXTURE_WRAP_S 0x2802
399 #define GL_TEXTURE_WRAP_T 0x2803
405 #define GL_TEXTURE0 0x84C0
406 #define GL_TEXTURE1 0x84C1
407 #define GL_TEXTURE2 0x84C2
408 #define GL_TEXTURE3 0x84C3
409 #define GL_TEXTURE4 0x84C4
410 #define GL_TEXTURE5 0x84C5
411 #define GL_TEXTURE6 0x84C6
412 #define GL_TEXTURE7 0x84C7
413 #define GL_TEXTURE8 0x84C8
414 #define GL_TEXTURE9 0x84C9
415 #define GL_TEXTURE10 0x84CA
416 #define GL_TEXTURE11 0x84CB
417 #define GL_TEXTURE12 0x84CC
418 #define GL_TEXTURE13 0x84CD
419 #define GL_TEXTURE14 0x84CE
420 #define GL_TEXTURE15 0x84CF
421 #define GL_TEXTURE16 0x84D0
422 #define GL_TEXTURE17 0x84D1
423 #define GL_TEXTURE18 0x84D2
424 #define GL_TEXTURE19 0x84D3
425 #define GL_TEXTURE20 0x84D4
426 #define GL_TEXTURE21 0x84D5
427 #define GL_TEXTURE22 0x84D6
428 #define GL_TEXTURE23 0x84D7
429 #define GL_TEXTURE24 0x84D8
430 #define GL_TEXTURE25 0x84D9
431 #define GL_TEXTURE26 0x84DA
432 #define GL_TEXTURE27 0x84DB
433 #define GL_TEXTURE28 0x84DC
434 #define GL_TEXTURE29 0x84DD
435 #define GL_TEXTURE30 0x84DE
436 #define GL_TEXTURE31 0x84DF
439 #define GL_REPEAT 0x2901
440 #define GL_CLAMP_TO_EDGE 0x812F
443 #define GL_PALETTE4_RGB8_OES 0x8B90
444 #define GL_PALETTE4_RGBA8_OES 0x8B91
445 #define GL_PALETTE4_R5_G6_B5_OES 0x8B92
446 #define GL_PALETTE4_RGBA4_OES 0x8B93
447 #define GL_PALETTE4_RGB5_A1_OES 0x8B94
448 #define GL_PALETTE8_RGB8_OES 0x8B95
449 #define GL_PALETTE8_RGBA8_OES 0x8B96
450 #define GL_PALETTE8_R5_G6_B5_OES 0x8B97
451 #define GL_PALETTE8_RGBA4_OES 0x8B98
452 #define GL_PALETTE8_RGB5_A1_OES 0x8B99
461 #define GL_LIGHT0 0x4000
462 #define GL_LIGHT1 0x4001
463 #define GL_LIGHT2 0x4002
464 #define GL_LIGHT3 0x4003
465 #define GL_LIGHT4 0x4004
466 #define GL_LIGHT5 0x4005
467 #define GL_LIGHT6 0x4006
468 #define GL_LIGHT7 0x4007
473 GLAPI
void APIENTRY glActiveTexture (GLenum texture);
474 GLAPI
void APIENTRY glAlphaFunc (GLenum func, GLclampf ref);
475 GLAPI
void APIENTRY glAlphaFuncx (GLenum func, GLclampx ref);
476 GLAPI
void APIENTRY glBindTexture (GLenum target, GLuint texture);
477 GLAPI
void APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
478 GLAPI
void APIENTRY glClear (GLbitfield mask);
479 GLAPI
void APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
480 GLAPI
void APIENTRY glClearColorx (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
481 GLAPI
void APIENTRY glClearDepthf (GLclampf depth);
482 GLAPI
void APIENTRY glClearDepthx (GLclampx depth);
483 GLAPI
void APIENTRY glClearStencil (GLint s);
484 GLAPI
void APIENTRY glClientActiveTexture (GLenum texture);
485 GLAPI
void APIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
486 GLAPI
void APIENTRY glColor4x (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
487 GLAPI
void APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
488 GLAPI
void APIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride,
const GLvoid *pointer);
489 GLAPI
void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize,
const GLvoid *data);
490 GLAPI
void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize,
const GLvoid *data);
491 GLAPI
void APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
492 GLAPI
void APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
493 GLAPI
void APIENTRY glCullFace (GLenum mode);
494 GLAPI
void APIENTRY glDeleteTextures (GLsizei n,
const GLuint *textures);
495 GLAPI
void APIENTRY glDepthFunc (GLenum func);
496 GLAPI
void APIENTRY glDepthMask (GLboolean flag);
497 GLAPI
void APIENTRY glDepthRangef (GLclampf zNear, GLclampf zFar);
498 GLAPI
void APIENTRY glDepthRangex (GLclampx zNear, GLclampx zFar);
499 GLAPI
void APIENTRY glDisable (GLenum cap);
500 GLAPI
void APIENTRY glDisableClientState (GLenum array);
501 GLAPI
void APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
502 GLAPI
void APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type,
const GLvoid *indices);
503 GLAPI
void APIENTRY glEnable (GLenum cap);
504 GLAPI
void APIENTRY glEnableClientState (GLenum array);
505 GLAPI
void APIENTRY glFinish (
void);
506 GLAPI
void APIENTRY glFlush (
void);
507 GLAPI
void APIENTRY glFogf (GLenum pname, GLfloat param);
508 GLAPI
void APIENTRY glFogfv (GLenum pname,
const GLfloat *params);
509 GLAPI
void APIENTRY glFogx (GLenum pname, GLfixed param);
510 GLAPI
void APIENTRY glFogxv (GLenum pname,
const GLfixed *params);
511 GLAPI
void APIENTRY glFrontFace (GLenum mode);
512 GLAPI
void APIENTRY glFrustumf (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
513 GLAPI
void APIENTRY glFrustumx (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
514 GLAPI
void APIENTRY glGenTextures (GLsizei n, GLuint *textures);
515 GLAPI GLenum APIENTRY glGetError (
void);
516 GLAPI
void APIENTRY glGetIntegerv (GLenum pname, GLint *params);
517 GLAPI
const GLubyte * APIENTRY glGetString (GLenum name);
518 GLAPI
void APIENTRY glHint (GLenum target, GLenum mode);
519 GLAPI
void APIENTRY glLightModelf (GLenum pname, GLfloat param);
520 GLAPI
void APIENTRY glLightModelfv (GLenum pname,
const GLfloat *params);
521 GLAPI
void APIENTRY glLightModelx (GLenum pname, GLfixed param);
522 GLAPI
void APIENTRY glLightModelxv (GLenum pname,
const GLfixed *params);
523 GLAPI
void APIENTRY glLightf (GLenum light, GLenum pname, GLfloat param);
524 GLAPI
void APIENTRY glLightfv (GLenum light, GLenum pname,
const GLfloat *params);
525 GLAPI
void APIENTRY glLightx (GLenum light, GLenum pname, GLfixed param);
526 GLAPI
void APIENTRY glLightxv (GLenum light, GLenum pname,
const GLfixed *params);
527 GLAPI
void APIENTRY glLineWidth (GLfloat width);
528 GLAPI
void APIENTRY glLineWidthx (GLfixed width);
529 GLAPI
void APIENTRY glLoadIdentity (
void);
530 GLAPI
void APIENTRY glLoadMatrixf (
const GLfloat *m);
531 GLAPI
void APIENTRY glLoadMatrixx (
const GLfixed *m);
532 GLAPI
void APIENTRY glLogicOp (GLenum opcode);
533 GLAPI
void APIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param);
534 GLAPI
void APIENTRY glMaterialfv (GLenum face, GLenum pname,
const GLfloat *params);
535 GLAPI
void APIENTRY glMaterialx (GLenum face, GLenum pname, GLfixed param);
536 GLAPI
void APIENTRY glMaterialxv (GLenum face, GLenum pname,
const GLfixed *params);
537 GLAPI
void APIENTRY glMatrixMode (GLenum mode);
538 GLAPI
void APIENTRY glMultMatrixf (
const GLfloat *m);
539 GLAPI
void APIENTRY glMultMatrixx (
const GLfixed *m);
540 GLAPI
void APIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
541 GLAPI
void APIENTRY glMultiTexCoord4x (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
542 GLAPI
void APIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);
543 GLAPI
void APIENTRY glNormal3x (GLfixed nx, GLfixed ny, GLfixed nz);
544 GLAPI
void APIENTRY glNormalPointer (GLenum type, GLsizei stride,
const GLvoid *pointer);
545 GLAPI
void APIENTRY glOrthof (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
546 GLAPI
void APIENTRY glOrthox (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
547 GLAPI
void APIENTRY glPixelStorei (GLenum pname, GLint param);
548 GLAPI
void APIENTRY glPointSize (GLfloat size);
549 GLAPI
void APIENTRY glPointSizex (GLfixed size);
550 GLAPI
void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
551 GLAPI
void APIENTRY glPolygonOffsetx (GLfixed factor, GLfixed units);
552 GLAPI
void APIENTRY glPopMatrix (
void);
553 GLAPI
void APIENTRY glPushMatrix (
void);
554 GLAPI
void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
555 GLAPI
void APIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
556 GLAPI
void APIENTRY glRotatex (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
557 GLAPI
void APIENTRY glSampleCoverage (GLclampf value, GLboolean invert);
558 GLAPI
void APIENTRY glSampleCoveragex (GLclampx value, GLboolean invert);
559 GLAPI
void APIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z);
560 GLAPI
void APIENTRY glScalex (GLfixed x, GLfixed y, GLfixed z);
561 GLAPI
void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
562 GLAPI
void APIENTRY glShadeModel (GLenum mode);
563 GLAPI
void APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
564 GLAPI
void APIENTRY glStencilMask (GLuint mask);
565 GLAPI
void APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
566 GLAPI
void APIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride,
const GLvoid *pointer);
567 GLAPI
void APIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param);
568 GLAPI
void APIENTRY glTexEnvfv (GLenum target, GLenum pname,
const GLfloat *params);
569 GLAPI
void APIENTRY glTexEnvx (GLenum target, GLenum pname, GLfixed param);
570 GLAPI
void APIENTRY glTexEnvxv (GLenum target, GLenum pname,
const GLfixed *params);
571 GLAPI
void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type,
const GLvoid *pixels);
572 GLAPI
void APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
573 GLAPI
void APIENTRY glTexParameterx (GLenum target, GLenum pname, GLfixed param);
574 GLAPI
void APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type,
const GLvoid *pixels);
575 GLAPI
void APIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z);
576 GLAPI
void APIENTRY glTranslatex (GLfixed x, GLfixed y, GLfixed z);
577 GLAPI
void APIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride,
const GLvoid *pointer);
578 GLAPI
void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);