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 22 matching lines...) Expand all Loading... |
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 Conditional=WEBGL, | 42 Conditional=WEBGL, |
43 JSCustomMarkFunction, | |
44 DoNotCheckConstants | 43 DoNotCheckConstants |
45 ] interface WebGLRenderingContext : CanvasRenderingContext { | 44 ] interface WebGLRenderingContext : CanvasRenderingContext { |
46 | 45 |
47 /* ClearBufferMask */ | 46 /* ClearBufferMask */ |
48 const GLenum DEPTH_BUFFER_BIT = 0x00000100; | 47 const GLenum DEPTH_BUFFER_BIT = 0x00000100; |
49 const GLenum STENCIL_BUFFER_BIT = 0x00000400; | 48 const GLenum STENCIL_BUFFER_BIT = 0x00000400; |
50 const GLenum COLOR_BUFFER_BIT = 0x00004000; | 49 const GLenum COLOR_BUFFER_BIT = 0x00004000; |
51 | 50 |
52 /* BeginMode */ | 51 /* BeginMode */ |
53 const GLenum POINTS = 0x0000; | 52 const GLenum POINTS = 0x0000; |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 [StrictTypeChecking, Custom] void vertexAttrib2fv(in GLuint indx, in Float32
Array values); | 660 [StrictTypeChecking, Custom] void vertexAttrib2fv(in GLuint indx, in Float32
Array values); |
662 [StrictTypeChecking] void vertexAttrib3f(in GLuint indx, in GLfloat
x, in GLfloat y, in GLfloat z); | 661 [StrictTypeChecking] void vertexAttrib3f(in GLuint indx, in GLfloat
x, in GLfloat y, in GLfloat z); |
663 [StrictTypeChecking, Custom] void vertexAttrib3fv(in GLuint indx, in Float32
Array values); | 662 [StrictTypeChecking, Custom] void vertexAttrib3fv(in GLuint indx, in Float32
Array values); |
664 [StrictTypeChecking] void vertexAttrib4f(in GLuint indx, in GLfloat
x, in GLfloat y, in GLfloat z, in GLfloat w); | 663 [StrictTypeChecking] void vertexAttrib4f(in GLuint indx, in GLfloat
x, in GLfloat y, in GLfloat z, in GLfloat w); |
665 [StrictTypeChecking, Custom] void vertexAttrib4fv(in GLuint indx, in Float32
Array values); | 664 [StrictTypeChecking, Custom] void vertexAttrib4fv(in GLuint indx, in Float32
Array values); |
666 [StrictTypeChecking] void vertexAttribPointer(in GLuint indx, in GLi
nt size, in GLenum type, in GLboolean normalized, | 665 [StrictTypeChecking] void vertexAttribPointer(in GLuint indx, in GLi
nt size, in GLenum type, in GLboolean normalized, |
667 in GLsizei stride, in
GLintptr offset) raises(DOMException); | 666 in GLsizei stride, in
GLintptr offset) raises(DOMException); |
668 | 667 |
669 [StrictTypeChecking] void viewport(in GLint x, in GLint y, in GLsize
i width, in GLsizei height); | 668 [StrictTypeChecking] void viewport(in GLint x, in GLint y, in GLsize
i width, in GLsizei height); |
670 }; | 669 }; |
OLD | NEW |