| 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 const GLenum GENERATE_MIPMAP_HINT = 0x8192; | 229 const GLenum GENERATE_MIPMAP_HINT = 0x8192; |
| 230 | 230 |
| 231 /* DataType */ | 231 /* DataType */ |
| 232 const GLenum BYTE = 0x1400; | 232 const GLenum BYTE = 0x1400; |
| 233 const GLenum UNSIGNED_BYTE = 0x1401; | 233 const GLenum UNSIGNED_BYTE = 0x1401; |
| 234 const GLenum SHORT = 0x1402; | 234 const GLenum SHORT = 0x1402; |
| 235 const GLenum UNSIGNED_SHORT = 0x1403; | 235 const GLenum UNSIGNED_SHORT = 0x1403; |
| 236 const GLenum INT = 0x1404; | 236 const GLenum INT = 0x1404; |
| 237 const GLenum UNSIGNED_INT = 0x1405; | 237 const GLenum UNSIGNED_INT = 0x1405; |
| 238 const GLenum FLOAT = 0x1406; | 238 const GLenum FLOAT = 0x1406; |
| 239 const GLenum HALF_FLOAT_OES = 0x8D61; | |
| 240 | 239 |
| 241 /* PixelFormat */ | 240 /* PixelFormat */ |
| 242 const GLenum DEPTH_COMPONENT = 0x1902; | 241 const GLenum DEPTH_COMPONENT = 0x1902; |
| 243 const GLenum ALPHA = 0x1906; | 242 const GLenum ALPHA = 0x1906; |
| 244 const GLenum RGB = 0x1907; | 243 const GLenum RGB = 0x1907; |
| 245 const GLenum RGBA = 0x1908; | 244 const GLenum RGBA = 0x1908; |
| 246 const GLenum LUMINANCE = 0x1909; | 245 const GLenum LUMINANCE = 0x1909; |
| 247 const GLenum LUMINANCE_ALPHA = 0x190A; | 246 const GLenum LUMINANCE_ALPHA = 0x190A; |
| 248 | 247 |
| 249 /* PixelType */ | 248 /* PixelType */ |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 [StrictTypeChecking] GLboolean isRenderbuffer(WebGLRenderbuffer renderbuf
fer); | 579 [StrictTypeChecking] GLboolean isRenderbuffer(WebGLRenderbuffer renderbuf
fer); |
| 581 [StrictTypeChecking] GLboolean isShader(WebGLShader shader); | 580 [StrictTypeChecking] GLboolean isShader(WebGLShader shader); |
| 582 [StrictTypeChecking] GLboolean isTexture(WebGLTexture texture); | 581 [StrictTypeChecking] GLboolean isTexture(WebGLTexture texture); |
| 583 [StrictTypeChecking] void lineWidth(GLfloat width); | 582 [StrictTypeChecking] void lineWidth(GLfloat width); |
| 584 [StrictTypeChecking, RaisesException] void linkProgram(WebGLProgram
program); | 583 [StrictTypeChecking, RaisesException] void linkProgram(WebGLProgram
program); |
| 585 [StrictTypeChecking] void pixelStorei(GLenum pname, GLint param); | 584 [StrictTypeChecking] void pixelStorei(GLenum pname, GLint param); |
| 586 [StrictTypeChecking] void polygonOffset(GLfloat factor, GLfloat unit
s); | 585 [StrictTypeChecking] void polygonOffset(GLfloat factor, GLfloat unit
s); |
| 587 | 586 |
| 588 [StrictTypeChecking, RaisesException] void readPixels(GLint x, GLint
y, GLsizei width, GLsizei height, GLenum format, GLenum type, ArrayBufferView p
ixels); | 587 [StrictTypeChecking, RaisesException] void readPixels(GLint x, GLint
y, GLsizei width, GLsizei height, GLenum format, GLenum type, ArrayBufferView p
ixels); |
| 589 | 588 |
| 590 [StrictTypeChecking] void releaseShaderCompiler(); | |
| 591 [StrictTypeChecking] void renderbufferStorage(GLenum target, GLenum
internalformat, GLsizei width, GLsizei height); | 589 [StrictTypeChecking] void renderbufferStorage(GLenum target, GLenum
internalformat, GLsizei width, GLsizei height); |
| 592 [StrictTypeChecking] void sampleCoverage(GLclampf value, GLboolean i
nvert); | 590 [StrictTypeChecking] void sampleCoverage(GLclampf value, GLboolean i
nvert); |
| 593 [StrictTypeChecking] void scissor(GLint x, GLint y, GLsizei width, G
Lsizei height); | 591 [StrictTypeChecking] void scissor(GLint x, GLint y, GLsizei width, G
Lsizei height); |
| 594 [StrictTypeChecking, RaisesException] void shaderSource(WebGLShader
shader, DOMString string); | 592 [StrictTypeChecking, RaisesException] void shaderSource(WebGLShader
shader, DOMString string); |
| 595 [StrictTypeChecking] void stencilFunc(GLenum func, GLint ref, GLuint
mask); | 593 [StrictTypeChecking] void stencilFunc(GLenum func, GLint ref, GLuint
mask); |
| 596 [StrictTypeChecking] void stencilFuncSeparate(GLenum face, GLenum fu
nc, GLint ref, GLuint mask); | 594 [StrictTypeChecking] void stencilFuncSeparate(GLenum face, GLenum fu
nc, GLint ref, GLuint mask); |
| 597 [StrictTypeChecking] void stencilMask(GLuint mask); | 595 [StrictTypeChecking] void stencilMask(GLuint mask); |
| 598 [StrictTypeChecking] void stencilMaskSeparate(GLenum face, GLuint ma
sk); | 596 [StrictTypeChecking] void stencilMaskSeparate(GLenum face, GLuint ma
sk); |
| 599 [StrictTypeChecking] void stencilOp(GLenum fail, GLenum zfail, GLenu
m zpass); | 597 [StrictTypeChecking] void stencilOp(GLenum fail, GLenum zfail, GLenu
m zpass); |
| 600 [StrictTypeChecking] void stencilOpSeparate(GLenum face, GLenum fail
, GLenum zfail, GLenum zpass); | 598 [StrictTypeChecking] void stencilOpSeparate(GLenum face, GLenum fail
, GLenum zfail, GLenum zpass); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 [StrictTypeChecking, Custom] void vertexAttrib2fv(GLuint indx, Float32Array
values); | 654 [StrictTypeChecking, Custom] void vertexAttrib2fv(GLuint indx, Float32Array
values); |
| 657 [StrictTypeChecking] void vertexAttrib3f(GLuint indx, GLfloat x, GLf
loat y, GLfloat z); | 655 [StrictTypeChecking] void vertexAttrib3f(GLuint indx, GLfloat x, GLf
loat y, GLfloat z); |
| 658 [StrictTypeChecking, Custom] void vertexAttrib3fv(GLuint indx, Float32Array
values); | 656 [StrictTypeChecking, Custom] void vertexAttrib3fv(GLuint indx, Float32Array
values); |
| 659 [StrictTypeChecking] void vertexAttrib4f(GLuint indx, GLfloat x, GLf
loat y, GLfloat z, GLfloat w); | 657 [StrictTypeChecking] void vertexAttrib4f(GLuint indx, GLfloat x, GLf
loat y, GLfloat z, GLfloat w); |
| 660 [StrictTypeChecking, Custom] void vertexAttrib4fv(GLuint indx, Float32Array
values); | 658 [StrictTypeChecking, Custom] void vertexAttrib4fv(GLuint indx, Float32Array
values); |
| 661 [StrictTypeChecking, RaisesException] void vertexAttribPointer(GLuin
t indx, GLint size, GLenum type, GLboolean normalized, | 659 [StrictTypeChecking, RaisesException] void vertexAttribPointer(GLuin
t indx, GLint size, GLenum type, GLboolean normalized, |
| 662 GLsizei stride, GLintp
tr offset); | 660 GLsizei stride, GLintp
tr offset); |
| 663 | 661 |
| 664 [StrictTypeChecking] void viewport(GLint x, GLint y, GLsizei width,
GLsizei height); | 662 [StrictTypeChecking] void viewport(GLint x, GLint y, GLsizei width,
GLsizei height); |
| 665 }; | 663 }; |
| OLD | NEW |