Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 * | 3 // found in the LICENSE file. |
|
Ken Russell (switch to Gerrit)
2014/02/21 23:40:20
I wonder what the copyright policy is in this case
bajones
2014/02/22 00:47:09
I wondered about the same thing. Do you have any i
| |
| 4 * Redistribution and use in source and binary forms, with or without | |
| 5 * modification, are permitted provided that the following conditions | |
| 6 * are met: | |
| 7 * 1. Redistributions of source code must retain the above copyright | |
| 8 * notice, this list of conditions and the following disclaimer. | |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | |
| 10 * notice, this list of conditions and the following disclaimer in the | |
| 11 * documentation and/or other materials provided with the distribution. | |
| 12 * | |
| 13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY | |
| 14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
| 15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | |
| 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR | |
| 17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | |
| 18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |
| 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | |
| 20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | |
| 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
| 24 */ | |
| 25 | 4 |
| 26 typedef unsigned long GLenum; | 5 typedef unsigned long GLenum; |
| 27 typedef boolean GLboolean; | 6 typedef boolean GLboolean; |
| 28 typedef unsigned long GLbitfield; | 7 typedef unsigned long GLbitfield; |
| 29 typedef byte GLbyte; /* 'byte' should be a signed 8 bit type. */ | 8 typedef byte GLbyte; /* 'byte' should be a signed 8 bit type. */ |
| 30 typedef short GLshort; | 9 typedef short GLshort; |
| 31 typedef long GLint; | 10 typedef long GLint; |
| 32 typedef long GLsizei; | 11 typedef long GLsizei; |
| 33 typedef long long GLintptr; | 12 typedef long long GLintptr; |
| 34 typedef long long GLsizeiptr; | 13 typedef long long GLsizeiptr; |
| 35 typedef octet GLubyte; /* 'octet' should be an unsigned 8 bit ty pe. */ | 14 typedef octet GLubyte; /* 'octet' should be an unsigned 8 bit ty pe. */ |
| 36 typedef unsigned short GLushort; | 15 typedef unsigned short GLushort; |
| 37 typedef unsigned long GLuint; | 16 typedef unsigned long GLuint; |
| 38 typedef /*unrestricted*/ float GLfloat; | 17 typedef /*unrestricted*/ float GLfloat; |
| 39 typedef /*unrestricted*/ float GLclampf; | 18 typedef /*unrestricted*/ float GLclampf; |
| 40 | 19 |
| 41 [ | 20 [ |
| 42 DoNotCheckConstants, | 21 DoNotCheckConstants, |
| 43 StrictTypeChecking, | 22 StrictTypeChecking, |
| 44 ] interface WebGLRenderingContext : CanvasRenderingContext { | 23 NoInterfaceObject |
| 24 ] interface WebGLRenderingContextBase : CanvasRenderingContext { | |
| 45 | 25 |
| 46 /* ClearBufferMask */ | 26 /* ClearBufferMask */ |
| 47 const GLenum DEPTH_BUFFER_BIT = 0x00000100; | 27 const GLenum DEPTH_BUFFER_BIT = 0x00000100; |
| 48 const GLenum STENCIL_BUFFER_BIT = 0x00000400; | 28 const GLenum STENCIL_BUFFER_BIT = 0x00000400; |
| 49 const GLenum COLOR_BUFFER_BIT = 0x00004000; | 29 const GLenum COLOR_BUFFER_BIT = 0x00004000; |
| 50 | 30 |
| 51 /* BeginMode */ | 31 /* BeginMode */ |
| 52 const GLenum POINTS = 0x0000; | 32 const GLenum POINTS = 0x0000; |
| 53 const GLenum LINES = 0x0001; | 33 const GLenum LINES = 0x0001; |
| 54 const GLenum LINE_LOOP = 0x0002; | 34 const GLenum LINE_LOOP = 0x0002; |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 665 [Custom] void vertexAttrib2fv(GLuint indx, Float32Array values); | 645 [Custom] void vertexAttrib2fv(GLuint indx, Float32Array values); |
| 666 void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z); | 646 void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z); |
| 667 [Custom] void vertexAttrib3fv(GLuint indx, Float32Array values); | 647 [Custom] void vertexAttrib3fv(GLuint indx, Float32Array values); |
| 668 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) ; | 648 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) ; |
| 669 [Custom] void vertexAttrib4fv(GLuint indx, Float32Array values); | 649 [Custom] void vertexAttrib4fv(GLuint indx, Float32Array values); |
| 670 void vertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean nor malized, | 650 void vertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean nor malized, |
| 671 GLsizei stride, GLintptr offset); | 651 GLsizei stride, GLintptr offset); |
| 672 | 652 |
| 673 void viewport(GLint x, GLint y, GLsizei width, GLsizei height); | 653 void viewport(GLint x, GLint y, GLsizei width, GLsizei height); |
| 674 }; | 654 }; |
| OLD | NEW |