dom/webidl/WebGL2RenderingContext.webidl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 4 * You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 5 *
michael@0 6 * This IDL depends on WebGLRenderingContext.webidl
michael@0 7 */
michael@0 8
michael@0 9 [Pref="webgl.enable-prototype-webgl2"]
michael@0 10 interface WebGLQuery {
michael@0 11 };
michael@0 12
michael@0 13 [Pref="webgl.enable-prototype-webgl2"]
michael@0 14 interface WebGL2RenderingContext : WebGLRenderingContext {
michael@0 15
michael@0 16 /* depth textures */
michael@0 17 const GLenum UNSIGNED_INT_24_8 = 0x84FA;
michael@0 18
michael@0 19
michael@0 20 /* draw buffers */
michael@0 21 const GLenum COLOR_ATTACHMENT1 = 0x8CE1;
michael@0 22 const GLenum COLOR_ATTACHMENT2 = 0x8CE2;
michael@0 23 const GLenum COLOR_ATTACHMENT3 = 0x8CE3;
michael@0 24 const GLenum COLOR_ATTACHMENT4 = 0x8CE4;
michael@0 25 const GLenum COLOR_ATTACHMENT5 = 0x8CE5;
michael@0 26 const GLenum COLOR_ATTACHMENT6 = 0x8CE6;
michael@0 27 const GLenum COLOR_ATTACHMENT7 = 0x8CE7;
michael@0 28 const GLenum COLOR_ATTACHMENT8 = 0x8CE8;
michael@0 29 const GLenum COLOR_ATTACHMENT9 = 0x8CE9;
michael@0 30 const GLenum COLOR_ATTACHMENT10 = 0x8CEA;
michael@0 31 const GLenum COLOR_ATTACHMENT11 = 0x8CEB;
michael@0 32 const GLenum COLOR_ATTACHMENT12 = 0x8CEC;
michael@0 33 const GLenum COLOR_ATTACHMENT13 = 0x8CED;
michael@0 34 const GLenum COLOR_ATTACHMENT14 = 0x8CEE;
michael@0 35 const GLenum COLOR_ATTACHMENT15 = 0x8CEF;
michael@0 36
michael@0 37 const GLenum DRAW_BUFFER0 = 0x8825;
michael@0 38 const GLenum DRAW_BUFFER1 = 0x8826;
michael@0 39 const GLenum DRAW_BUFFER2 = 0x8827;
michael@0 40 const GLenum DRAW_BUFFER3 = 0x8828;
michael@0 41 const GLenum DRAW_BUFFER4 = 0x8829;
michael@0 42 const GLenum DRAW_BUFFER5 = 0x882A;
michael@0 43 const GLenum DRAW_BUFFER6 = 0x882B;
michael@0 44 const GLenum DRAW_BUFFER7 = 0x882C;
michael@0 45 const GLenum DRAW_BUFFER8 = 0x882D;
michael@0 46 const GLenum DRAW_BUFFER9 = 0x882E;
michael@0 47 const GLenum DRAW_BUFFER10 = 0x882F;
michael@0 48 const GLenum DRAW_BUFFER11 = 0x8830;
michael@0 49 const GLenum DRAW_BUFFER12 = 0x8831;
michael@0 50 const GLenum DRAW_BUFFER13 = 0x8832;
michael@0 51 const GLenum DRAW_BUFFER14 = 0x8833;
michael@0 52 const GLenum DRAW_BUFFER15 = 0x8834;
michael@0 53
michael@0 54 const GLenum MAX_COLOR_ATTACHMENTS = 0x8CDF;
michael@0 55 const GLenum MAX_DRAW_BUFFERS = 0x8824;
michael@0 56
michael@0 57 void drawBuffers(sequence<GLenum> buffers);
michael@0 58
michael@0 59
michael@0 60 /* draw instanced */
michael@0 61 void drawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei primcount);
michael@0 62 void drawElementsInstanced(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei primcount);
michael@0 63
michael@0 64
michael@0 65 /* instanced array */
michael@0 66 const GLenum VERTEX_ATTRIB_ARRAY_DIVISOR = 0x88FE;
michael@0 67
michael@0 68 void vertexAttribDivisor(GLuint index, GLuint divisor);
michael@0 69
michael@0 70
michael@0 71 /* blend equations */
michael@0 72 const GLenum MIN = 0x8007;
michael@0 73 const GLenum MAX = 0x8008;
michael@0 74
michael@0 75
michael@0 76 /* transform feedback */
michael@0 77 const GLenum RASTERIZER_DISCARD = 0x8C89;
michael@0 78 const GLenum TRANSFORM_FEEDBACK_BUFFER = 0x8C8E;
michael@0 79 const GLenum TRANSFORM_FEEDBACK_BUFFER_BINDING = 0x8C8F;
michael@0 80 const GLenum TRANSFORM_FEEDBACK_BUFFER_START = 0x8C84;
michael@0 81 const GLenum TRANSFORM_FEEDBACK_BUFFER_SIZE = 0x8C85;
michael@0 82 const GLenum MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 0x8C8B;
michael@0 83
michael@0 84
michael@0 85 /* query objects */
michael@0 86 const GLenum CURRENT_QUERY = 0x8865;
michael@0 87 const GLenum QUERY_RESULT = 0x8866;
michael@0 88 const GLenum QUERY_RESULT_AVAILABLE = 0x8867;
michael@0 89
michael@0 90 void beginQuery(GLenum target, WebGLQuery? queryObject);
michael@0 91 WebGLQuery? createQuery();
michael@0 92 void deleteQuery(WebGLQuery? queryObject);
michael@0 93 void endQuery(GLenum target);
michael@0 94 WebGLQuery? getQuery(GLenum target, GLenum pname);
michael@0 95 any getQueryObject(WebGLQuery? queryObject, GLenum pname);
michael@0 96 [WebGLHandlesContextLoss] GLboolean isQuery(WebGLQuery? queryObject);
michael@0 97
michael@0 98
michael@0 99 /* occlusion queries */
michael@0 100 const GLenum ANY_SAMPLES_PASSED = 0x8C2F;
michael@0 101 const GLenum ANY_SAMPLES_PASSED_CONSERVATIVE = 0x8D6A;
michael@0 102
michael@0 103
michael@0 104 /* transform feedback queries */
michael@0 105 const GLenum TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 0x8C88;
michael@0 106
michael@0 107
michael@0 108 /* buffer objects */
michael@0 109 void bindBufferBase(GLenum target, GLuint index, WebGLBuffer? buffer);
michael@0 110 void bindBufferRange(GLenum target, GLuint index, WebGLBuffer? buffer,
michael@0 111 GLintptr offset, GLsizeiptr size);
michael@0 112
michael@0 113
michael@0 114 /* standart derivatives */
michael@0 115 const GLenum FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B;
michael@0 116
michael@0 117
michael@0 118 /* state requests */
michael@0 119 any getParameterIndexed(GLenum pname, GLuint index);
michael@0 120
michael@0 121
michael@0 122 /* vertex array objects */
michael@0 123 const GLenum VERTEX_ARRAY_BINDING = 0x85B5;
michael@0 124
michael@0 125 void bindVertexArray(WebGLVertexArray? arrayObject);
michael@0 126 WebGLVertexArray? createVertexArray();
michael@0 127 void deleteVertexArray(WebGLVertexArray? arrayObject);
michael@0 128 [WebGLHandlesContextLoss] GLboolean isVertexArray(WebGLVertexArray? arrayObject);
michael@0 129
michael@0 130 };
michael@0 131

mercurial