| 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 17 matching lines...) Expand all Loading... |
| 28 typedef unsigned long GLbitfield; | 28 typedef unsigned long GLbitfield; |
| 29 typedef byte GLbyte; // 'byte' should be a signed 8 bit type. | 29 typedef byte GLbyte; // 'byte' should be a signed 8 bit type. |
| 30 typedef short GLshort; | 30 typedef short GLshort; |
| 31 typedef long GLint; | 31 typedef long GLint; |
| 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 type. | 35 typedef octet GLubyte; // 'octet' should be an unsigned 8 bit type. |
| 36 typedef unsigned short GLushort; | 36 typedef unsigned short GLushort; |
| 37 typedef unsigned long GLuint; | 37 typedef unsigned long GLuint; |
| 38 // FIXME: Should be unrestricted: http://crbug.com/354298 | 38 typedef unrestricted float GLfloat; |
| 39 typedef /*unrestricted*/ float GLfloat; | 39 typedef unrestricted float GLclampf; |
| 40 typedef /*unrestricted*/ float GLclampf; | |
| 41 | 40 |
| 42 [ | 41 [ |
| 43 // FIXME: [DoNotCheckConstants] and [TypeChecking=Interface|Nullable] should
be applied | 42 // FIXME: [DoNotCheckConstants] and [TypeChecking=Interface|Nullable] should
be applied |
| 44 // to members and not need to be put on implementing interface | 43 // to members and not need to be put on implementing interface |
| 45 // DoNotCheckConstants, // need to put on implementing interface | 44 // DoNotCheckConstants, // need to put on implementing interface |
| 46 NoInterfaceObject, // Always used on target of 'implements' | 45 NoInterfaceObject, // Always used on target of 'implements' |
| 47 // TypeChecking=Interface|Nullable, // need to put on implementing interface | 46 // TypeChecking=Interface|Nullable|Unrestricted, // need to put on implement
ing interface |
| 48 ] interface WebGLRenderingContextBase { | 47 ] interface WebGLRenderingContextBase { |
| 49 | 48 |
| 50 readonly attribute HTMLCanvasElement canvas; | 49 readonly attribute HTMLCanvasElement canvas; |
| 51 | 50 |
| 52 /* ClearBufferMask */ | 51 /* ClearBufferMask */ |
| 53 const GLenum DEPTH_BUFFER_BIT = 0x00000100; | 52 const GLenum DEPTH_BUFFER_BIT = 0x00000100; |
| 54 const GLenum STENCIL_BUFFER_BIT = 0x00000400; | 53 const GLenum STENCIL_BUFFER_BIT = 0x00000400; |
| 55 const GLenum COLOR_BUFFER_BIT = 0x00004000; | 54 const GLenum COLOR_BUFFER_BIT = 0x00004000; |
| 56 | 55 |
| 57 /* BeginMode */ | 56 /* BeginMode */ |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 [Custom] void vertexAttrib2fv(GLuint indx, Float32Array values); | 674 [Custom] void vertexAttrib2fv(GLuint indx, Float32Array values); |
| 676 void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z); | 675 void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z); |
| 677 [Custom] void vertexAttrib3fv(GLuint indx, Float32Array values); | 676 [Custom] void vertexAttrib3fv(GLuint indx, Float32Array values); |
| 678 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
; | 677 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
; |
| 679 [Custom] void vertexAttrib4fv(GLuint indx, Float32Array values); | 678 [Custom] void vertexAttrib4fv(GLuint indx, Float32Array values); |
| 680 void vertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean nor
malized, | 679 void vertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean nor
malized, |
| 681 GLsizei stride, GLintptr offset); | 680 GLsizei stride, GLintptr offset); |
| 682 | 681 |
| 683 void viewport(GLint x, GLint y, GLsizei width, GLsizei height); | 682 void viewport(GLint x, GLint y, GLsizei width, GLsizei height); |
| 684 }; | 683 }; |
| OLD | NEW |