| 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 28 matching lines...) Expand all Loading... |
| 39 typedef unsigned long GLuint; | 39 typedef unsigned long GLuint; |
| 40 typedef unrestricted float GLfloat; | 40 typedef unrestricted float GLfloat; |
| 41 typedef unrestricted float GLclampf; | 41 typedef unrestricted float GLclampf; |
| 42 | 42 |
| 43 [ | 43 [ |
| 44 // FIXME: [DoNotCheckConstants] and [TypeChecking=Interface|Unrestricted] sh
ould be applied | 44 // FIXME: [DoNotCheckConstants] and [TypeChecking=Interface|Unrestricted] sh
ould be applied |
| 45 // to members and not need to be put on implementing interface | 45 // to members and not need to be put on implementing interface |
| 46 // DoNotCheckConstants, // need to put on implementing interface | 46 // DoNotCheckConstants, // need to put on implementing interface |
| 47 NoInterfaceObject, // Always used on target of 'implements' | 47 NoInterfaceObject, // Always used on target of 'implements' |
| 48 // TypeChecking=Interface|Unrestricted, // need to put on implementing inter
face | 48 // TypeChecking=Interface|Unrestricted, // need to put on implementing inter
face |
| 49 WillBeGarbageCollected, |
| 49 ] interface WebGLRenderingContextBase { | 50 ] interface WebGLRenderingContextBase { |
| 50 | 51 |
| 51 readonly attribute HTMLCanvasElement canvas; | 52 readonly attribute HTMLCanvasElement canvas; |
| 52 | 53 |
| 53 /* ClearBufferMask */ | 54 /* ClearBufferMask */ |
| 54 const GLenum DEPTH_BUFFER_BIT = 0x00000100; | 55 const GLenum DEPTH_BUFFER_BIT = 0x00000100; |
| 55 const GLenum STENCIL_BUFFER_BIT = 0x00000400; | 56 const GLenum STENCIL_BUFFER_BIT = 0x00000400; |
| 56 const GLenum COLOR_BUFFER_BIT = 0x00004000; | 57 const GLenum COLOR_BUFFER_BIT = 0x00004000; |
| 57 | 58 |
| 58 /* BeginMode */ | 59 /* BeginMode */ |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 [Custom] void vertexAttrib2fv(GLuint indx, Float32Array values); | 681 [Custom] void vertexAttrib2fv(GLuint indx, Float32Array values); |
| 681 void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z); | 682 void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z); |
| 682 [Custom] void vertexAttrib3fv(GLuint indx, Float32Array values); | 683 [Custom] void vertexAttrib3fv(GLuint indx, Float32Array values); |
| 683 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
; | 684 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
; |
| 684 [Custom] void vertexAttrib4fv(GLuint indx, Float32Array values); | 685 [Custom] void vertexAttrib4fv(GLuint indx, Float32Array values); |
| 685 void vertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean nor
malized, | 686 void vertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean nor
malized, |
| 686 GLsizei stride, GLintptr offset); | 687 GLsizei stride, GLintptr offset); |
| 687 | 688 |
| 688 void viewport(GLint x, GLint y, GLsizei width, GLsizei height); | 689 void viewport(GLint x, GLint y, GLsizei width, GLsizei height); |
| 689 }; | 690 }; |
| OLD | NEW |