OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 21 matching lines...) Expand all Loading... |
32 typedef long GLsizei; | 32 typedef long GLsizei; |
33 typedef long long GLintptr; | 33 typedef long long GLintptr; |
34 typedef long long GLsizeiptr; | 34 typedef long long GLsizeiptr; |
35 typedef octet GLubyte; /* 'octet' should be an unsigned 8 bit ty
pe. */ | 35 typedef octet GLubyte; /* 'octet' should be an unsigned 8 bit ty
pe. */ |
36 typedef unsigned short GLushort; | 36 typedef unsigned short GLushort; |
37 typedef unsigned long GLuint; | 37 typedef unsigned long GLuint; |
38 typedef /*unrestricted*/ float GLfloat; | 38 typedef /*unrestricted*/ float GLfloat; |
39 typedef /*unrestricted*/ float GLclampf; | 39 typedef /*unrestricted*/ float GLclampf; |
40 | 40 |
41 [ | 41 [ |
42 DoNotCheckConstants | 42 DoNotCheckConstants, |
| 43 StrictTypeChecking, |
43 ] interface WebGLRenderingContext : CanvasRenderingContext { | 44 ] interface WebGLRenderingContext : CanvasRenderingContext { |
44 | 45 |
45 /* ClearBufferMask */ | 46 /* ClearBufferMask */ |
46 const GLenum DEPTH_BUFFER_BIT = 0x00000100; | 47 const GLenum DEPTH_BUFFER_BIT = 0x00000100; |
47 const GLenum STENCIL_BUFFER_BIT = 0x00000400; | 48 const GLenum STENCIL_BUFFER_BIT = 0x00000400; |
48 const GLenum COLOR_BUFFER_BIT = 0x00004000; | 49 const GLenum COLOR_BUFFER_BIT = 0x00004000; |
49 | 50 |
50 /* BeginMode */ | 51 /* BeginMode */ |
51 const GLenum POINTS = 0x0000; | 52 const GLenum POINTS = 0x0000; |
52 const GLenum LINES = 0x0001; | 53 const GLenum LINES = 0x0001; |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 /* WebGL-specific enums */ | 454 /* WebGL-specific enums */ |
454 const GLenum UNPACK_FLIP_Y_WEBGL = 0x9240; | 455 const GLenum UNPACK_FLIP_Y_WEBGL = 0x9240; |
455 const GLenum UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; | 456 const GLenum UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; |
456 const GLenum CONTEXT_LOST_WEBGL = 0x9242; | 457 const GLenum CONTEXT_LOST_WEBGL = 0x9242; |
457 const GLenum UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; | 458 const GLenum UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; |
458 const GLenum BROWSER_DEFAULT_WEBGL = 0x9244; | 459 const GLenum BROWSER_DEFAULT_WEBGL = 0x9244; |
459 | 460 |
460 readonly attribute GLsizei drawingBufferWidth; | 461 readonly attribute GLsizei drawingBufferWidth; |
461 readonly attribute GLsizei drawingBufferHeight; | 462 readonly attribute GLsizei drawingBufferHeight; |
462 | 463 |
463 [StrictTypeChecking] void activeTexture(GLenum texture); | 464 void activeTexture(GLenum texture); |
464 [StrictTypeChecking] void attachShader(WebGLProgram? program, WebGLS
hader? shader); | 465 void attachShader(WebGLProgram? program, WebGLShader? shader); |
465 [StrictTypeChecking] void bindAttribLocation(WebGLProgram? program,
GLuint index, DOMString name); | 466 void bindAttribLocation(WebGLProgram? program, GLuint index, DOMString name)
; |
466 [StrictTypeChecking] void bindBuffer(GLenum target, WebGLBuffer? buf
fer); | 467 void bindBuffer(GLenum target, WebGLBuffer? buffer); |
467 [StrictTypeChecking] void bindFramebuffer(GLenum target, WebGLFrameb
uffer? framebuffer); | 468 void bindFramebuffer(GLenum target, WebGLFramebuffer? framebuffer); |
468 [StrictTypeChecking] void bindRenderbuffer(GLenum target, WebGLRende
rbuffer? renderbuffer); | 469 void bindRenderbuffer(GLenum target, WebGLRenderbuffer? renderbuffer); |
469 [StrictTypeChecking] void bindTexture(GLenum target, WebGLTexture? t
exture); | 470 void bindTexture(GLenum target, WebGLTexture? texture); |
470 [StrictTypeChecking] void blendColor(GLclampf red, GLclampf green, G
Lclampf blue, GLclampf alpha); | 471 void blendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
; |
471 [StrictTypeChecking] void blendEquation(GLenum mode); | 472 void blendEquation(GLenum mode); |
472 [StrictTypeChecking] void blendEquationSeparate(GLenum modeRGB, GLen
um modeAlpha); | 473 void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha); |
473 [StrictTypeChecking] void blendFunc(GLenum sfactor, GLenum dfactor); | 474 void blendFunc(GLenum sfactor, GLenum dfactor); |
474 [StrictTypeChecking] void blendFuncSeparate(GLenum srcRGB, GLenum ds
tRGB, GLenum srcAlpha, GLenum dstAlpha); | 475 void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum
dstAlpha); |
475 [StrictTypeChecking] void bufferData(GLenum target, ArrayBuffer? dat
a, GLenum usage); | 476 void bufferData(GLenum target, ArrayBuffer? data, GLenum usage); |
476 [StrictTypeChecking] void bufferData(GLenum target, ArrayBufferView?
data, GLenum usage); | 477 void bufferData(GLenum target, ArrayBufferView? data, GLenum usage); |
477 [StrictTypeChecking] void bufferData(GLenum target, GLsizeiptr size,
GLenum usage); | 478 void bufferData(GLenum target, GLsizeiptr size, GLenum usage); |
478 [StrictTypeChecking] void bufferSubData(GLenum target, GLintptr offs
et, ArrayBuffer? data); | 479 void bufferSubData(GLenum target, GLintptr offset, ArrayBuffer? data); |
479 [StrictTypeChecking] void bufferSubData(GLenum target, GLintptr offs
et, ArrayBufferView? data); | 480 void bufferSubData(GLenum target, GLintptr offset, ArrayBufferView? data); |
480 | 481 |
481 [StrictTypeChecking] GLenum checkFramebufferStatus(GLenum target); | 482 GLenum checkFramebufferStatus(GLenum target); |
482 [StrictTypeChecking] void clear(GLbitfield mask); | 483 void clear(GLbitfield mask); |
483 [StrictTypeChecking] void clearColor(GLclampf red, GLclampf green, G
Lclampf blue, GLclampf alpha); | 484 void clearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
; |
484 [StrictTypeChecking] void clearDepth(GLclampf depth); | 485 void clearDepth(GLclampf depth); |
485 [StrictTypeChecking] void clearStencil(GLint s); | 486 void clearStencil(GLint s); |
486 [StrictTypeChecking] void colorMask(GLboolean red, GLboolean green,
GLboolean blue, GLboolean alpha); | 487 void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alp
ha); |
487 [StrictTypeChecking] void compileShader(WebGLShader? shader); | 488 void compileShader(WebGLShader? shader); |
488 | 489 |
489 [StrictTypeChecking] void compressedTexImage2D(GLenum target, GLint
level, GLenum internalformat, | 490 void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat, |
490 GLsizei width, GLsize
i height, GLint border, ArrayBufferView? data); | 491 GLsizei width, GLsizei height, GLint border, Array
BufferView? data); |
491 [StrictTypeChecking] void compressedTexSubImage2D(GLenum target, GLi
nt level, GLint xoffset, GLint yoffset, | 492 void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLin
t yoffset, |
492 GLsizei width, GLs
izei height, GLenum format, ArrayBufferView? data); | 493 GLsizei width, GLsizei height, GLenum format, A
rrayBufferView? data); |
493 | 494 |
494 [StrictTypeChecking] void copyTexImage2D(GLenum target, GLint level,
GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint b
order); | 495 void copyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint
x, GLint y, GLsizei width, GLsizei height, GLint border); |
495 [StrictTypeChecking] void copyTexSubImage2D(GLenum target, GLint lev
el, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei heigh
t); | 496 void copyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoff
set, GLint x, GLint y, GLsizei width, GLsizei height); |
496 | 497 |
497 [StrictTypeChecking] WebGLBuffer createBuffer(); | 498 WebGLBuffer createBuffer(); |
498 [StrictTypeChecking] WebGLFramebuffer createFramebuffer(); | 499 WebGLFramebuffer createFramebuffer(); |
499 [StrictTypeChecking] WebGLProgram createProgram(); | 500 WebGLProgram createProgram(); |
500 [StrictTypeChecking] WebGLRenderbuffer createRenderbuffer(); | 501 WebGLRenderbuffer createRenderbuffer(); |
501 [StrictTypeChecking] WebGLShader createShader(GLenum type); | 502 WebGLShader createShader(GLenum type); |
502 [StrictTypeChecking] WebGLTexture createTexture(); | 503 WebGLTexture createTexture(); |
503 | 504 |
504 [StrictTypeChecking] void cullFace(GLenum mode); | 505 void cullFace(GLenum mode); |
505 | 506 |
506 [StrictTypeChecking] void deleteBuffer(WebGLBuffer? buffer); | 507 void deleteBuffer(WebGLBuffer? buffer); |
507 [StrictTypeChecking] void deleteFramebuffer(WebGLFramebuffer? frameb
uffer); | 508 void deleteFramebuffer(WebGLFramebuffer? framebuffer); |
508 [StrictTypeChecking] void deleteProgram(WebGLProgram? program); | 509 void deleteProgram(WebGLProgram? program); |
509 [StrictTypeChecking] void deleteRenderbuffer(WebGLRenderbuffer? rend
erbuffer); | 510 void deleteRenderbuffer(WebGLRenderbuffer? renderbuffer); |
510 [StrictTypeChecking] void deleteShader(WebGLShader? shader); | 511 void deleteShader(WebGLShader? shader); |
511 [StrictTypeChecking] void deleteTexture(WebGLTexture? texture); | 512 void deleteTexture(WebGLTexture? texture); |
512 | 513 |
513 [StrictTypeChecking] void depthFunc(GLenum func); | 514 void depthFunc(GLenum func); |
514 [StrictTypeChecking] void depthMask(GLboolean flag); | 515 void depthMask(GLboolean flag); |
515 [StrictTypeChecking] void depthRange(GLclampf zNear, GLclampf zFar); | 516 void depthRange(GLclampf zNear, GLclampf zFar); |
516 [StrictTypeChecking] void detachShader(WebGLProgram? program, WebGLS
hader? shader); | 517 void detachShader(WebGLProgram? program, WebGLShader? shader); |
517 [StrictTypeChecking] void disable(GLenum cap); | 518 void disable(GLenum cap); |
518 [StrictTypeChecking] void disableVertexAttribArray(GLuint index); | 519 void disableVertexAttribArray(GLuint index); |
519 [StrictTypeChecking] void drawArrays(GLenum mode, GLint first, GLsiz
ei count); | 520 void drawArrays(GLenum mode, GLint first, GLsizei count); |
520 [StrictTypeChecking] void drawElements(GLenum mode, GLsizei count, G
Lenum type, GLintptr offset); | 521 void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset); |
521 | 522 |
522 [StrictTypeChecking] void enable(GLenum cap); | 523 void enable(GLenum cap); |
523 [StrictTypeChecking] void enableVertexAttribArray(GLuint index); | 524 void enableVertexAttribArray(GLuint index); |
524 [StrictTypeChecking] void finish(); | 525 void finish(); |
525 [StrictTypeChecking] void flush(); | 526 void flush(); |
526 [StrictTypeChecking] void framebufferRenderbuffer(GLenum target, GLe
num attachment, GLenum renderbuffertarget, WebGLRenderbuffer? renderbuffer); | 527 void framebufferRenderbuffer(GLenum target, GLenum attachment, GLenum render
buffertarget, WebGLRenderbuffer? renderbuffer); |
527 [StrictTypeChecking] void framebufferTexture2D(GLenum target, GLenum
attachment, GLenum textarget, WebGLTexture? texture, GLint level); | 528 void framebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget
, WebGLTexture? texture, GLint level); |
528 [StrictTypeChecking] void frontFace(GLenum mode); | 529 void frontFace(GLenum mode); |
529 [StrictTypeChecking] void generateMipmap(GLenum target); | 530 void generateMipmap(GLenum target); |
530 | 531 |
531 [StrictTypeChecking] WebGLActiveInfo getActiveAttrib(WebGLProgram? program,
GLuint index); | 532 WebGLActiveInfo getActiveAttrib(WebGLProgram? program, GLuint index); |
532 [StrictTypeChecking] WebGLActiveInfo getActiveUniform(WebGLProgram? program,
GLuint index); | 533 WebGLActiveInfo getActiveUniform(WebGLProgram? program, GLuint index); |
533 | 534 |
534 [StrictTypeChecking, Custom] void getAttachedShaders(WebGLProgram? program); | 535 [Custom] void getAttachedShaders(WebGLProgram? program); |
535 | 536 |
536 [StrictTypeChecking] GLint getAttribLocation(WebGLProgram? program, D
OMString name); | 537 GLint getAttribLocation(WebGLProgram? program, DOMString name); |
537 | 538 |
538 [StrictTypeChecking, Custom] any getBufferParameter(GLenum target, GLenum pn
ame); | 539 [Custom] any getBufferParameter(GLenum target, GLenum pname); |
539 | 540 |
540 [StrictTypeChecking] WebGLContextAttributes getContextAttributes(); | 541 WebGLContextAttributes getContextAttributes(); |
541 | 542 |
542 [StrictTypeChecking] GLenum getError(); | 543 GLenum getError(); |
543 | 544 |
544 // object getExtension(DOMString name); | 545 // object getExtension(DOMString name); |
545 [StrictTypeChecking, Custom] any getExtension(DOMString name); | 546 [Custom] any getExtension(DOMString name); |
546 | 547 |
547 [StrictTypeChecking, Custom] any getFramebufferAttachmentParameter(GLenum ta
rget, GLenum attachment, GLenum pname); | 548 [Custom] any getFramebufferAttachmentParameter(GLenum target, GLenum attachm
ent, GLenum pname); |
548 [StrictTypeChecking, Custom] any getParameter(GLenum pname); | 549 [Custom] any getParameter(GLenum pname); |
549 [StrictTypeChecking, Custom] any getProgramParameter(WebGLProgram? program,
GLenum pname); | 550 [Custom] any getProgramParameter(WebGLProgram? program, GLenum pname); |
550 [StrictTypeChecking, TreatReturnedNullStringAs=Null] DOMString getProgramInf
oLog(WebGLProgram? program); | 551 [TreatReturnedNullStringAs=Null] DOMString getProgramInfoLog(WebGLProgram? p
rogram); |
551 [StrictTypeChecking, Custom] any getRenderbufferParameter(GLenum target, GLe
num pname); | 552 [Custom] any getRenderbufferParameter(GLenum target, GLenum pname); |
552 [StrictTypeChecking, Custom] any getShaderParameter(WebGLShader? shader, GLe
num pname); | 553 [Custom] any getShaderParameter(WebGLShader? shader, GLenum pname); |
553 | 554 |
554 [StrictTypeChecking, TreatReturnedNullStringAs=Null] DOMString getShaderI
nfoLog(WebGLShader? shader); | 555 [TreatReturnedNullStringAs=Null] DOMString getShaderInfoLog(WebGLShader?
shader); |
555 | 556 |
556 [StrictTypeChecking] WebGLShaderPrecisionFormat getShaderPrecisionFormat(GLe
num shadertype, GLenum precisiontype); | 557 WebGLShaderPrecisionFormat getShaderPrecisionFormat(GLenum shadertype, GLenu
m precisiontype); |
557 | 558 |
558 [StrictTypeChecking, TreatReturnedNullStringAs=Null] DOMString getShaderS
ource(WebGLShader? shader); | 559 [TreatReturnedNullStringAs=Null] DOMString getShaderSource(WebGLShader? s
hader); |
559 | 560 |
560 [StrictTypeChecking, Custom] sequence<DOMString> getSupportedExtensions(); | 561 [Custom] sequence<DOMString> getSupportedExtensions(); |
561 | 562 |
562 [StrictTypeChecking, Custom] any getTexParameter(GLenum target, GLenum pname
); | 563 [Custom] any getTexParameter(GLenum target, GLenum pname); |
563 | 564 |
564 [StrictTypeChecking, Custom] any getUniform(WebGLProgram? program, WebGLUnif
ormLocation location); | 565 [Custom] any getUniform(WebGLProgram? program, WebGLUniformLocation location
); |
565 | 566 |
566 [StrictTypeChecking] WebGLUniformLocation getUniformLocation(WebGLProgram? p
rogram, DOMString name); | 567 WebGLUniformLocation getUniformLocation(WebGLProgram? program, DOMString nam
e); |
567 | 568 |
568 [StrictTypeChecking, Custom] any getVertexAttrib(GLuint index, GLenum pname)
; | 569 [Custom] any getVertexAttrib(GLuint index, GLenum pname); |
569 | 570 |
570 [StrictTypeChecking] GLsizeiptr getVertexAttribOffset(GLuint index, GLenum p
name); | 571 GLsizeiptr getVertexAttribOffset(GLuint index, GLenum pname); |
571 | 572 |
572 [StrictTypeChecking] void hint(GLenum target, GLenum mode); | 573 void hint(GLenum target, GLenum mode); |
573 [StrictTypeChecking] GLboolean isBuffer(WebGLBuffer? buffer); | 574 GLboolean isBuffer(WebGLBuffer? buffer); |
574 [StrictTypeChecking] GLboolean isContextLost(); | 575 GLboolean isContextLost(); |
575 [StrictTypeChecking] GLboolean isEnabled(GLenum cap); | 576 GLboolean isEnabled(GLenum cap); |
576 [StrictTypeChecking] GLboolean isFramebuffer(WebGLFramebuffer? framebuffe
r); | 577 GLboolean isFramebuffer(WebGLFramebuffer? framebuffer); |
577 [StrictTypeChecking] GLboolean isProgram(WebGLProgram? program); | 578 GLboolean isProgram(WebGLProgram? program); |
578 [StrictTypeChecking] GLboolean isRenderbuffer(WebGLRenderbuffer? renderbu
ffer); | 579 GLboolean isRenderbuffer(WebGLRenderbuffer? renderbuffer); |
579 [StrictTypeChecking] GLboolean isShader(WebGLShader? shader); | 580 GLboolean isShader(WebGLShader? shader); |
580 [StrictTypeChecking] GLboolean isTexture(WebGLTexture? texture); | 581 GLboolean isTexture(WebGLTexture? texture); |
581 [StrictTypeChecking] void lineWidth(GLfloat width); | 582 void lineWidth(GLfloat width); |
582 [StrictTypeChecking] void linkProgram(WebGLProgram? program); | 583 void linkProgram(WebGLProgram? program); |
583 [StrictTypeChecking] void pixelStorei(GLenum pname, GLint param); | 584 void pixelStorei(GLenum pname, GLint param); |
584 [StrictTypeChecking] void polygonOffset(GLfloat factor, GLfloat unit
s); | 585 void polygonOffset(GLfloat factor, GLfloat units); |
585 | 586 |
586 [StrictTypeChecking] void readPixels(GLint x, GLint y, GLsizei width
, GLsizei height, GLenum format, GLenum type, ArrayBufferView? pixels); | 587 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, ArrayBufferView? pixels); |
587 | 588 |
588 [StrictTypeChecking] void renderbufferStorage(GLenum target, GLenum
internalformat, GLsizei width, GLsizei height); | 589 void renderbufferStorage(GLenum target, GLenum internalformat, GLsizei width
, GLsizei height); |
589 [StrictTypeChecking] void sampleCoverage(GLclampf value, GLboolean i
nvert); | 590 void sampleCoverage(GLclampf value, GLboolean invert); |
590 [StrictTypeChecking] void scissor(GLint x, GLint y, GLsizei width, G
Lsizei height); | 591 void scissor(GLint x, GLint y, GLsizei width, GLsizei height); |
591 [StrictTypeChecking] void shaderSource(WebGLShader? shader, DOMStrin
g string); | 592 void shaderSource(WebGLShader? shader, DOMString string); |
592 [StrictTypeChecking] void stencilFunc(GLenum func, GLint ref, GLuint
mask); | 593 void stencilFunc(GLenum func, GLint ref, GLuint mask); |
593 [StrictTypeChecking] void stencilFuncSeparate(GLenum face, GLenum fu
nc, GLint ref, GLuint mask); | 594 void stencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask); |
594 [StrictTypeChecking] void stencilMask(GLuint mask); | 595 void stencilMask(GLuint mask); |
595 [StrictTypeChecking] void stencilMaskSeparate(GLenum face, GLuint ma
sk); | 596 void stencilMaskSeparate(GLenum face, GLuint mask); |
596 [StrictTypeChecking] void stencilOp(GLenum fail, GLenum zfail, GLenu
m zpass); | 597 void stencilOp(GLenum fail, GLenum zfail, GLenum zpass); |
597 [StrictTypeChecking] void stencilOpSeparate(GLenum face, GLenum fail
, GLenum zfail, GLenum zpass); | 598 void stencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
; |
598 | 599 |
599 [StrictTypeChecking] void texParameterf(GLenum target, GLenum pname,
GLfloat param); | 600 void texParameterf(GLenum target, GLenum pname, GLfloat param); |
600 [StrictTypeChecking] void texParameteri(GLenum target, GLenum pname,
GLint param); | 601 void texParameteri(GLenum target, GLenum pname, GLint param); |
601 | 602 |
602 // Supported forms: | 603 // Supported forms: |
603 [StrictTypeChecking, RaisesException] void texImage2D(GLenum target,
GLint level, GLenum internalformat, GLsizei width, GLsizei height, | 604 [RaisesException] void texImage2D( |
604 GLint border, GLenum format, GL
enum type, ArrayBufferView? pixels); | 605 GLenum target, GLint level, GLenum internalformat, |
605 [StrictTypeChecking, RaisesException] void texImage2D(GLenum target,
GLint level, GLenum internalformat, | 606 GLsizei width, GLsizei height, GLint border, |
606 GLenum format, GLenum type, Ima
geData? pixels); | 607 GLenum format, GLenum type, ArrayBufferView? pixels); |
607 [StrictTypeChecking, RaisesException] void texImage2D(GLenum target,
GLint level, GLenum internalformat, | 608 [RaisesException] void texImage2D( |
608 GLenum format, GLenum type, HTM
LImageElement? image); | 609 GLenum target, GLint level, GLenum internalformat, |
609 [StrictTypeChecking, RaisesException] void texImage2D(GLenum target,
GLint level, GLenum internalformat, | 610 GLenum format, GLenum type, ImageData? pixels); |
610 GLenum format, GLenum type, HTM
LCanvasElement? canvas); | 611 [RaisesException] void texImage2D( |
611 [StrictTypeChecking, RaisesException] void texImage2D(GLenum target,
GLint level, GLenum internalformat, | 612 GLenum target, GLint level, GLenum internalformat, |
612 GLenum format, GLenum type, HTM
LVideoElement? video); | 613 GLenum format, GLenum type, HTMLImageElement? image); |
613 | 614 [RaisesException] void texImage2D( |
614 [StrictTypeChecking, RaisesException] void texSubImage2D(GLenum targ
et, GLint level, GLint xoffset, GLint yoffset, | 615 GLenum target, GLint level, GLenum internalformat, |
615 GLsizei width, GLsizei heigh
t, | 616 GLenum format, GLenum type, HTMLCanvasElement? canvas); |
616 GLenum format, GLenum type,
ArrayBufferView? pixels); | 617 [RaisesException] void texImage2D( |
617 [StrictTypeChecking, RaisesException] void texSubImage2D(GLenum targ
et, GLint level, GLint xoffset, GLint yoffset, | 618 GLenum target, GLint level, GLenum internalformat, |
618 GLenum format, GLenum type,
ImageData? pixels); | 619 GLenum format, GLenum type, HTMLVideoElement? video); |
619 [StrictTypeChecking, RaisesException] void texSubImage2D(GLenum targ
et, GLint level, GLint xoffset, GLint yoffset, | 620 |
620 GLenum format, GLenum type,
HTMLImageElement? image); | 621 [RaisesException] void texSubImage2D( |
621 [StrictTypeChecking, RaisesException] void texSubImage2D(GLenum targ
et, GLint level, GLint xoffset, GLint yoffset, | 622 GLenum target, GLint level, GLint xoffset, GLint yoffset, |
622 GLenum format, GLenum type,
HTMLCanvasElement? canvas); | 623 GLsizei width, GLsizei height, |
623 [StrictTypeChecking, RaisesException] void texSubImage2D(GLenum targ
et, GLint level, GLint xoffset, GLint yoffset, | 624 GLenum format, GLenum type, ArrayBufferView? pixels); |
624 GLenum format, GLenum type,
HTMLVideoElement? video); | 625 [RaisesException] void texSubImage2D( |
625 | 626 GLenum target, GLint level, GLint xoffset, GLint yoffset, |
626 [StrictTypeChecking] void uniform1f(WebGLUniformLocation? location, GLfloat
x); | 627 GLenum format, GLenum type, ImageData? pixels); |
627 [StrictTypeChecking, Custom] void uniform1fv(WebGLUniformLocation? location,
Float32Array v); | 628 [RaisesException] void texSubImage2D( |
628 [StrictTypeChecking] void uniform1i(WebGLUniformLocation? location, GLint x)
; | 629 GLenum target, GLint level, GLint xoffset, GLint yoffset, |
629 [StrictTypeChecking, Custom] void uniform1iv(WebGLUniformLocation? location,
Int32Array v); | 630 GLenum format, GLenum type, HTMLImageElement? image); |
630 [StrictTypeChecking] void uniform2f(WebGLUniformLocation? location, GLfloat
x, GLfloat y); | 631 [RaisesException] void texSubImage2D( |
631 [StrictTypeChecking, Custom] void uniform2fv(WebGLUniformLocation? location,
Float32Array v); | 632 GLenum target, GLint level, GLint xoffset, GLint yoffset, |
632 [StrictTypeChecking] void uniform2i(WebGLUniformLocation? location, GLint x,
GLint y); | 633 GLenum format, GLenum type, HTMLCanvasElement? canvas); |
633 [StrictTypeChecking, Custom] void uniform2iv(WebGLUniformLocation? location,
Int32Array v); | 634 [RaisesException] void texSubImage2D( |
634 [StrictTypeChecking] void uniform3f(WebGLUniformLocation? location, GLfloat
x, GLfloat y, GLfloat z); | 635 GLenum target, GLint level, GLint xoffset, GLint yoffset, |
635 [StrictTypeChecking, Custom] void uniform3fv(WebGLUniformLocation? location,
Float32Array v); | 636 GLenum format, GLenum type, HTMLVideoElement? video); |
636 [StrictTypeChecking] void uniform3i(WebGLUniformLocation? location, GLint x,
GLint y, GLint z); | 637 |
637 [StrictTypeChecking, Custom] void uniform3iv(WebGLUniformLocation? location,
Int32Array v); | 638 void uniform1f(WebGLUniformLocation? location, GLfloat x); |
638 [StrictTypeChecking] void uniform4f(WebGLUniformLocation? location, GLfloat
x, GLfloat y, GLfloat z, GLfloat w); | 639 [Custom] void uniform1fv(WebGLUniformLocation? location, Float32Array v); |
639 [StrictTypeChecking, Custom] void uniform4fv(WebGLUniformLocation? location,
Float32Array v); | 640 void uniform1i(WebGLUniformLocation? location, GLint x); |
640 [StrictTypeChecking] void uniform4i(WebGLUniformLocation? location, GLint x,
GLint y, GLint z, GLint w); | 641 [Custom] void uniform1iv(WebGLUniformLocation? location, Int32Array v); |
641 [StrictTypeChecking, Custom] void uniform4iv(WebGLUniformLocation? location,
Int32Array v); | 642 void uniform2f(WebGLUniformLocation? location, GLfloat x, GLfloat y); |
642 | 643 [Custom] void uniform2fv(WebGLUniformLocation? location, Float32Array v); |
643 [StrictTypeChecking, Custom] void uniformMatrix2fv(WebGLUniformLocation? loc
ation, GLboolean transpose, Float32Array array); | 644 void uniform2i(WebGLUniformLocation? location, GLint x, GLint y); |
644 [StrictTypeChecking, Custom] void uniformMatrix3fv(WebGLUniformLocation? loc
ation, GLboolean transpose, Float32Array array); | 645 [Custom] void uniform2iv(WebGLUniformLocation? location, Int32Array v); |
645 [StrictTypeChecking, Custom] void uniformMatrix4fv(WebGLUniformLocation? loc
ation, GLboolean transpose, Float32Array array); | 646 void uniform3f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat
z); |
646 | 647 [Custom] void uniform3fv(WebGLUniformLocation? location, Float32Array v); |
647 [StrictTypeChecking] void useProgram(WebGLProgram? program); | 648 void uniform3i(WebGLUniformLocation? location, GLint x, GLint y, GLint z); |
648 [StrictTypeChecking] void validateProgram(WebGLProgram? program); | 649 [Custom] void uniform3iv(WebGLUniformLocation? location, Int32Array v); |
649 | 650 void uniform4f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat
z, GLfloat w); |
650 [StrictTypeChecking] void vertexAttrib1f(GLuint indx, GLfloat x); | 651 [Custom] void uniform4fv(WebGLUniformLocation? location, Float32Array v); |
651 [StrictTypeChecking, Custom] void vertexAttrib1fv(GLuint indx, Float32Array
values); | 652 void uniform4i(WebGLUniformLocation? location, GLint x, GLint y, GLint z, GL
int w); |
652 [StrictTypeChecking] void vertexAttrib2f(GLuint indx, GLfloat x, GLf
loat y); | 653 [Custom] void uniform4iv(WebGLUniformLocation? location, Int32Array v); |
653 [StrictTypeChecking, Custom] void vertexAttrib2fv(GLuint indx, Float32Array
values); | 654 |
654 [StrictTypeChecking] void vertexAttrib3f(GLuint indx, GLfloat x, GLf
loat y, GLfloat z); | 655 [Custom] void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean tra
nspose, Float32Array array); |
655 [StrictTypeChecking, Custom] void vertexAttrib3fv(GLuint indx, Float32Array
values); | 656 [Custom] void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean tra
nspose, Float32Array array); |
656 [StrictTypeChecking] void vertexAttrib4f(GLuint indx, GLfloat x, GLf
loat y, GLfloat z, GLfloat w); | 657 [Custom] void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean tra
nspose, Float32Array array); |
657 [StrictTypeChecking, Custom] void vertexAttrib4fv(GLuint indx, Float32Array
values); | 658 |
658 [StrictTypeChecking] void vertexAttribPointer(GLuint indx, GLint siz
e, GLenum type, GLboolean normalized, | 659 void useProgram(WebGLProgram? program); |
659 GLsizei stride, GLintp
tr offset); | 660 void validateProgram(WebGLProgram? program); |
660 | 661 |
661 [StrictTypeChecking] void viewport(GLint x, GLint y, GLsizei width,
GLsizei height); | 662 void vertexAttrib1f(GLuint indx, GLfloat x); |
| 663 [Custom] void vertexAttrib1fv(GLuint indx, Float32Array values); |
| 664 void vertexAttrib2f(GLuint indx, GLfloat x, GLfloat y); |
| 665 [Custom] void vertexAttrib2fv(GLuint indx, Float32Array values); |
| 666 void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z); |
| 667 [Custom] void vertexAttrib3fv(GLuint indx, Float32Array values); |
| 668 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
; |
| 669 [Custom] void vertexAttrib4fv(GLuint indx, Float32Array values); |
| 670 void vertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean nor
malized, |
| 671 GLsizei stride, GLintptr offset); |
| 672 |
| 673 void viewport(GLint x, GLint y, GLsizei width, GLsizei height); |
662 }; | 674 }; |
OLD | NEW |