| 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 |
| 11 * documentation and/or other materials provided with the distribution. | 11 * documentation and/or other materials provided with the distribution. |
| 12 * | 12 * |
| 13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY | 13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY |
| 14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR | 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR |
| 17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | 17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 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. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 typedef unsigned long GLenum; |
| 27 typedef boolean GLboolean; |
| 28 typedef unsigned long GLbitfield; |
| 29 typedef byte GLbyte; /* 'byte' should be a signed 8 bit type.
*/ |
| 30 typedef short GLshort; |
| 31 typedef long GLint; |
| 32 typedef long GLsizei; |
| 33 typedef long long GLintptr; |
| 34 typedef long long GLsizeiptr; |
| 35 typedef octet GLubyte; /* 'octet' should be an unsigned 8 bit ty
pe. */ |
| 36 typedef unsigned short GLushort; |
| 37 typedef unsigned long GLuint; |
| 38 typedef /*unrestricted*/ float GLfloat; |
| 39 typedef /*unrestricted*/ float GLclampf; |
| 40 |
| 26 [ | 41 [ |
| 27 Conditional=WEBGL, | 42 Conditional=WEBGL, |
| 28 JSCustomMarkFunction, | 43 JSCustomMarkFunction, |
| 29 DoNotCheckConstants | 44 DoNotCheckConstants |
| 30 ] interface WebGLRenderingContext : CanvasRenderingContext { | 45 ] interface WebGLRenderingContext : CanvasRenderingContext { |
| 31 | 46 |
| 32 /* ClearBufferMask */ | 47 /* ClearBufferMask */ |
| 33 const unsigned int DEPTH_BUFFER_BIT = 0x00000100; | 48 const GLenum DEPTH_BUFFER_BIT = 0x00000100; |
| 34 const unsigned int STENCIL_BUFFER_BIT = 0x00000400; | 49 const GLenum STENCIL_BUFFER_BIT = 0x00000400; |
| 35 const unsigned int COLOR_BUFFER_BIT = 0x00004000; | 50 const GLenum COLOR_BUFFER_BIT = 0x00004000; |
| 36 | 51 |
| 37 /* BeginMode */ | 52 /* BeginMode */ |
| 38 const unsigned int POINTS = 0x0000; | 53 const GLenum POINTS = 0x0000; |
| 39 const unsigned int LINES = 0x0001; | 54 const GLenum LINES = 0x0001; |
| 40 const unsigned int LINE_LOOP = 0x0002; | 55 const GLenum LINE_LOOP = 0x0002; |
| 41 const unsigned int LINE_STRIP = 0x0003; | 56 const GLenum LINE_STRIP = 0x0003; |
| 42 const unsigned int TRIANGLES = 0x0004; | 57 const GLenum TRIANGLES = 0x0004; |
| 43 const unsigned int TRIANGLE_STRIP = 0x0005; | 58 const GLenum TRIANGLE_STRIP = 0x0005; |
| 44 const unsigned int TRIANGLE_FAN = 0x0006; | 59 const GLenum TRIANGLE_FAN = 0x0006; |
| 45 | 60 |
| 46 /* AlphaFunction (not supported in ES20) */ | 61 /* AlphaFunction (not supported in ES20) */ |
| 47 /* NEVER */ | 62 /* NEVER */ |
| 48 /* LESS */ | 63 /* LESS */ |
| 49 /* EQUAL */ | 64 /* EQUAL */ |
| 50 /* LEQUAL */ | 65 /* LEQUAL */ |
| 51 /* GREATER */ | 66 /* GREATER */ |
| 52 /* NOTEQUAL */ | 67 /* NOTEQUAL */ |
| 53 /* GEQUAL */ | 68 /* GEQUAL */ |
| 54 /* ALWAYS */ | 69 /* ALWAYS */ |
| 55 | 70 |
| 56 /* BlendingFactorDest */ | 71 /* BlendingFactorDest */ |
| 57 const unsigned int ZERO = 0; | 72 const GLenum ZERO = 0; |
| 58 const unsigned int ONE = 1; | 73 const GLenum ONE = 1; |
| 59 const unsigned int SRC_COLOR = 0x0300; | 74 const GLenum SRC_COLOR = 0x0300; |
| 60 const unsigned int ONE_MINUS_SRC_COLOR = 0x0301; | 75 const GLenum ONE_MINUS_SRC_COLOR = 0x0301; |
| 61 const unsigned int SRC_ALPHA = 0x0302; | 76 const GLenum SRC_ALPHA = 0x0302; |
| 62 const unsigned int ONE_MINUS_SRC_ALPHA = 0x0303; | 77 const GLenum ONE_MINUS_SRC_ALPHA = 0x0303; |
| 63 const unsigned int DST_ALPHA = 0x0304; | 78 const GLenum DST_ALPHA = 0x0304; |
| 64 const unsigned int ONE_MINUS_DST_ALPHA = 0x0305; | 79 const GLenum ONE_MINUS_DST_ALPHA = 0x0305; |
| 65 | 80 |
| 66 /* BlendingFactorSrc */ | 81 /* BlendingFactorSrc */ |
| 67 /* ZERO */ | 82 /* ZERO */ |
| 68 /* ONE */ | 83 /* ONE */ |
| 69 const unsigned int DST_COLOR = 0x0306; | 84 const GLenum DST_COLOR = 0x0306; |
| 70 const unsigned int ONE_MINUS_DST_COLOR = 0x0307; | 85 const GLenum ONE_MINUS_DST_COLOR = 0x0307; |
| 71 const unsigned int SRC_ALPHA_SATURATE = 0x0308; | 86 const GLenum SRC_ALPHA_SATURATE = 0x0308; |
| 72 /* SRC_ALPHA */ | 87 /* SRC_ALPHA */ |
| 73 /* ONE_MINUS_SRC_ALPHA */ | 88 /* ONE_MINUS_SRC_ALPHA */ |
| 74 /* DST_ALPHA */ | 89 /* DST_ALPHA */ |
| 75 /* ONE_MINUS_DST_ALPHA */ | 90 /* ONE_MINUS_DST_ALPHA */ |
| 76 | 91 |
| 77 /* BlendEquationSeparate */ | 92 /* BlendEquationSeparate */ |
| 78 const unsigned int FUNC_ADD = 0x8006; | 93 const GLenum FUNC_ADD = 0x8006; |
| 79 const unsigned int BLEND_EQUATION = 0x8009; | 94 const GLenum BLEND_EQUATION = 0x8009; |
| 80 const unsigned int BLEND_EQUATION_RGB = 0x8009; /* same as BLE
ND_EQUATION */ | 95 const GLenum BLEND_EQUATION_RGB = 0x8009; /* same as BLEND_EQU
ATION */ |
| 81 const unsigned int BLEND_EQUATION_ALPHA = 0x883D; | 96 const GLenum BLEND_EQUATION_ALPHA = 0x883D; |
| 82 | 97 |
| 83 /* BlendSubtract */ | 98 /* BlendSubtract */ |
| 84 const unsigned int FUNC_SUBTRACT = 0x800A; | 99 const GLenum FUNC_SUBTRACT = 0x800A; |
| 85 const unsigned int FUNC_REVERSE_SUBTRACT = 0x800B; | 100 const GLenum FUNC_REVERSE_SUBTRACT = 0x800B; |
| 86 | 101 |
| 87 /* Separate Blend Functions */ | 102 /* Separate Blend Functions */ |
| 88 const unsigned int BLEND_DST_RGB = 0x80C8; | 103 const GLenum BLEND_DST_RGB = 0x80C8; |
| 89 const unsigned int BLEND_SRC_RGB = 0x80C9; | 104 const GLenum BLEND_SRC_RGB = 0x80C9; |
| 90 const unsigned int BLEND_DST_ALPHA = 0x80CA; | 105 const GLenum BLEND_DST_ALPHA = 0x80CA; |
| 91 const unsigned int BLEND_SRC_ALPHA = 0x80CB; | 106 const GLenum BLEND_SRC_ALPHA = 0x80CB; |
| 92 const unsigned int CONSTANT_COLOR = 0x8001; | 107 const GLenum CONSTANT_COLOR = 0x8001; |
| 93 const unsigned int ONE_MINUS_CONSTANT_COLOR = 0x8002; | 108 const GLenum ONE_MINUS_CONSTANT_COLOR = 0x8002; |
| 94 const unsigned int CONSTANT_ALPHA = 0x8003; | 109 const GLenum CONSTANT_ALPHA = 0x8003; |
| 95 const unsigned int ONE_MINUS_CONSTANT_ALPHA = 0x8004; | 110 const GLenum ONE_MINUS_CONSTANT_ALPHA = 0x8004; |
| 96 const unsigned int BLEND_COLOR = 0x8005; | 111 const GLenum BLEND_COLOR = 0x8005; |
| 97 | 112 |
| 98 /* Buffer Objects */ | 113 /* Buffer Objects */ |
| 99 const unsigned int ARRAY_BUFFER = 0x8892; | 114 const GLenum ARRAY_BUFFER = 0x8892; |
| 100 const unsigned int ELEMENT_ARRAY_BUFFER = 0x8893; | 115 const GLenum ELEMENT_ARRAY_BUFFER = 0x8893; |
| 101 const unsigned int ARRAY_BUFFER_BINDING = 0x8894; | 116 const GLenum ARRAY_BUFFER_BINDING = 0x8894; |
| 102 const unsigned int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; | 117 const GLenum ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; |
| 103 | 118 |
| 104 const unsigned int STREAM_DRAW = 0x88E0; | 119 const GLenum STREAM_DRAW = 0x88E0; |
| 105 const unsigned int STATIC_DRAW = 0x88E4; | 120 const GLenum STATIC_DRAW = 0x88E4; |
| 106 const unsigned int DYNAMIC_DRAW = 0x88E8; | 121 const GLenum DYNAMIC_DRAW = 0x88E8; |
| 107 | 122 |
| 108 const unsigned int BUFFER_SIZE = 0x8764; | 123 const GLenum BUFFER_SIZE = 0x8764; |
| 109 const unsigned int BUFFER_USAGE = 0x8765; | 124 const GLenum BUFFER_USAGE = 0x8765; |
| 110 | 125 |
| 111 const unsigned int CURRENT_VERTEX_ATTRIB = 0x8626; | 126 const GLenum CURRENT_VERTEX_ATTRIB = 0x8626; |
| 112 | 127 |
| 113 /* CullFaceMode */ | 128 /* CullFaceMode */ |
| 114 const unsigned int FRONT = 0x0404; | 129 const GLenum FRONT = 0x0404; |
| 115 const unsigned int BACK = 0x0405; | 130 const GLenum BACK = 0x0405; |
| 116 const unsigned int FRONT_AND_BACK = 0x0408; | 131 const GLenum FRONT_AND_BACK = 0x0408; |
| 117 | 132 |
| 118 /* DepthFunction */ | 133 /* DepthFunction */ |
| 119 /* NEVER */ | 134 /* NEVER */ |
| 120 /* LESS */ | 135 /* LESS */ |
| 121 /* EQUAL */ | 136 /* EQUAL */ |
| 122 /* LEQUAL */ | 137 /* LEQUAL */ |
| 123 /* GREATER */ | 138 /* GREATER */ |
| 124 /* NOTEQUAL */ | 139 /* NOTEQUAL */ |
| 125 /* GEQUAL */ | 140 /* GEQUAL */ |
| 126 /* ALWAYS */ | 141 /* ALWAYS */ |
| 127 | 142 |
| 128 /* EnableCap */ | 143 /* EnableCap */ |
| 129 const unsigned int TEXTURE_2D = 0x0DE1; | 144 const GLenum TEXTURE_2D = 0x0DE1; |
| 130 const unsigned int CULL_FACE = 0x0B44; | 145 const GLenum CULL_FACE = 0x0B44; |
| 131 const unsigned int BLEND = 0x0BE2; | 146 const GLenum BLEND = 0x0BE2; |
| 132 const unsigned int DITHER = 0x0BD0; | 147 const GLenum DITHER = 0x0BD0; |
| 133 const unsigned int STENCIL_TEST = 0x0B90; | 148 const GLenum STENCIL_TEST = 0x0B90; |
| 134 const unsigned int DEPTH_TEST = 0x0B71; | 149 const GLenum DEPTH_TEST = 0x0B71; |
| 135 const unsigned int SCISSOR_TEST = 0x0C11; | 150 const GLenum SCISSOR_TEST = 0x0C11; |
| 136 const unsigned int POLYGON_OFFSET_FILL = 0x8037; | 151 const GLenum POLYGON_OFFSET_FILL = 0x8037; |
| 137 const unsigned int SAMPLE_ALPHA_TO_COVERAGE = 0x809E; | 152 const GLenum SAMPLE_ALPHA_TO_COVERAGE = 0x809E; |
| 138 const unsigned int SAMPLE_COVERAGE = 0x80A0; | 153 const GLenum SAMPLE_COVERAGE = 0x80A0; |
| 139 | 154 |
| 140 /* ErrorCode */ | 155 /* ErrorCode */ |
| 141 const unsigned int NO_ERROR = 0; | 156 const GLenum NO_ERROR = 0; |
| 142 const unsigned int INVALID_ENUM = 0x0500; | 157 const GLenum INVALID_ENUM = 0x0500; |
| 143 const unsigned int INVALID_VALUE = 0x0501; | 158 const GLenum INVALID_VALUE = 0x0501; |
| 144 const unsigned int INVALID_OPERATION = 0x0502; | 159 const GLenum INVALID_OPERATION = 0x0502; |
| 145 const unsigned int OUT_OF_MEMORY = 0x0505; | 160 const GLenum OUT_OF_MEMORY = 0x0505; |
| 146 | 161 |
| 147 /* FrontFaceDirection */ | 162 /* FrontFaceDirection */ |
| 148 const unsigned int CW = 0x0900; | 163 const GLenum CW = 0x0900; |
| 149 const unsigned int CCW = 0x0901; | 164 const GLenum CCW = 0x0901; |
| 150 | 165 |
| 151 /* GetPName */ | 166 /* GetPName */ |
| 152 const unsigned int LINE_WIDTH = 0x0B21; | 167 const GLenum LINE_WIDTH = 0x0B21; |
| 153 const unsigned int ALIASED_POINT_SIZE_RANGE = 0x846D; | 168 const GLenum ALIASED_POINT_SIZE_RANGE = 0x846D; |
| 154 const unsigned int ALIASED_LINE_WIDTH_RANGE = 0x846E; | 169 const GLenum ALIASED_LINE_WIDTH_RANGE = 0x846E; |
| 155 const unsigned int CULL_FACE_MODE = 0x0B45; | 170 const GLenum CULL_FACE_MODE = 0x0B45; |
| 156 const unsigned int FRONT_FACE = 0x0B46; | 171 const GLenum FRONT_FACE = 0x0B46; |
| 157 const unsigned int DEPTH_RANGE = 0x0B70; | 172 const GLenum DEPTH_RANGE = 0x0B70; |
| 158 const unsigned int DEPTH_WRITEMASK = 0x0B72; | 173 const GLenum DEPTH_WRITEMASK = 0x0B72; |
| 159 const unsigned int DEPTH_CLEAR_VALUE = 0x0B73; | 174 const GLenum DEPTH_CLEAR_VALUE = 0x0B73; |
| 160 const unsigned int DEPTH_FUNC = 0x0B74; | 175 const GLenum DEPTH_FUNC = 0x0B74; |
| 161 const unsigned int STENCIL_CLEAR_VALUE = 0x0B91; | 176 const GLenum STENCIL_CLEAR_VALUE = 0x0B91; |
| 162 const unsigned int STENCIL_FUNC = 0x0B92; | 177 const GLenum STENCIL_FUNC = 0x0B92; |
| 163 const unsigned int STENCIL_FAIL = 0x0B94; | 178 const GLenum STENCIL_FAIL = 0x0B94; |
| 164 const unsigned int STENCIL_PASS_DEPTH_FAIL = 0x0B95; | 179 const GLenum STENCIL_PASS_DEPTH_FAIL = 0x0B95; |
| 165 const unsigned int STENCIL_PASS_DEPTH_PASS = 0x0B96; | 180 const GLenum STENCIL_PASS_DEPTH_PASS = 0x0B96; |
| 166 const unsigned int STENCIL_REF = 0x0B97; | 181 const GLenum STENCIL_REF = 0x0B97; |
| 167 const unsigned int STENCIL_VALUE_MASK = 0x0B93; | 182 const GLenum STENCIL_VALUE_MASK = 0x0B93; |
| 168 const unsigned int STENCIL_WRITEMASK = 0x0B98; | 183 const GLenum STENCIL_WRITEMASK = 0x0B98; |
| 169 const unsigned int STENCIL_BACK_FUNC = 0x8800; | 184 const GLenum STENCIL_BACK_FUNC = 0x8800; |
| 170 const unsigned int STENCIL_BACK_FAIL = 0x8801; | 185 const GLenum STENCIL_BACK_FAIL = 0x8801; |
| 171 const unsigned int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802; | 186 const GLenum STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802; |
| 172 const unsigned int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803; | 187 const GLenum STENCIL_BACK_PASS_DEPTH_PASS = 0x8803; |
| 173 const unsigned int STENCIL_BACK_REF = 0x8CA3; | 188 const GLenum STENCIL_BACK_REF = 0x8CA3; |
| 174 const unsigned int STENCIL_BACK_VALUE_MASK = 0x8CA4; | 189 const GLenum STENCIL_BACK_VALUE_MASK = 0x8CA4; |
| 175 const unsigned int STENCIL_BACK_WRITEMASK = 0x8CA5; | 190 const GLenum STENCIL_BACK_WRITEMASK = 0x8CA5; |
| 176 const unsigned int VIEWPORT = 0x0BA2; | 191 const GLenum VIEWPORT = 0x0BA2; |
| 177 const unsigned int SCISSOR_BOX = 0x0C10; | 192 const GLenum SCISSOR_BOX = 0x0C10; |
| 178 /* SCISSOR_TEST */ | 193 /* SCISSOR_TEST */ |
| 179 const unsigned int COLOR_CLEAR_VALUE = 0x0C22; | 194 const GLenum COLOR_CLEAR_VALUE = 0x0C22; |
| 180 const unsigned int COLOR_WRITEMASK = 0x0C23; | 195 const GLenum COLOR_WRITEMASK = 0x0C23; |
| 181 const unsigned int UNPACK_ALIGNMENT = 0x0CF5; | 196 const GLenum UNPACK_ALIGNMENT = 0x0CF5; |
| 182 const unsigned int PACK_ALIGNMENT = 0x0D05; | 197 const GLenum PACK_ALIGNMENT = 0x0D05; |
| 183 const unsigned int MAX_TEXTURE_SIZE = 0x0D33; | 198 const GLenum MAX_TEXTURE_SIZE = 0x0D33; |
| 184 const unsigned int MAX_VIEWPORT_DIMS = 0x0D3A; | 199 const GLenum MAX_VIEWPORT_DIMS = 0x0D3A; |
| 185 const unsigned int SUBPIXEL_BITS = 0x0D50; | 200 const GLenum SUBPIXEL_BITS = 0x0D50; |
| 186 const unsigned int RED_BITS = 0x0D52; | 201 const GLenum RED_BITS = 0x0D52; |
| 187 const unsigned int GREEN_BITS = 0x0D53; | 202 const GLenum GREEN_BITS = 0x0D53; |
| 188 const unsigned int BLUE_BITS = 0x0D54; | 203 const GLenum BLUE_BITS = 0x0D54; |
| 189 const unsigned int ALPHA_BITS = 0x0D55; | 204 const GLenum ALPHA_BITS = 0x0D55; |
| 190 const unsigned int DEPTH_BITS = 0x0D56; | 205 const GLenum DEPTH_BITS = 0x0D56; |
| 191 const unsigned int STENCIL_BITS = 0x0D57; | 206 const GLenum STENCIL_BITS = 0x0D57; |
| 192 const unsigned int POLYGON_OFFSET_UNITS = 0x2A00; | 207 const GLenum POLYGON_OFFSET_UNITS = 0x2A00; |
| 193 /* POLYGON_OFFSET_FILL */ | 208 /* POLYGON_OFFSET_FILL */ |
| 194 const unsigned int POLYGON_OFFSET_FACTOR = 0x8038; | 209 const GLenum POLYGON_OFFSET_FACTOR = 0x8038; |
| 195 const unsigned int TEXTURE_BINDING_2D = 0x8069; | 210 const GLenum TEXTURE_BINDING_2D = 0x8069; |
| 196 const unsigned int SAMPLE_BUFFERS = 0x80A8; | 211 const GLenum SAMPLE_BUFFERS = 0x80A8; |
| 197 const unsigned int SAMPLES = 0x80A9; | 212 const GLenum SAMPLES = 0x80A9; |
| 198 const unsigned int SAMPLE_COVERAGE_VALUE = 0x80AA; | 213 const GLenum SAMPLE_COVERAGE_VALUE = 0x80AA; |
| 199 const unsigned int SAMPLE_COVERAGE_INVERT = 0x80AB; | 214 const GLenum SAMPLE_COVERAGE_INVERT = 0x80AB; |
| 200 | 215 |
| 201 /* GetTextureParameter */ | 216 /* GetTextureParameter */ |
| 202 /* TEXTURE_MAG_FILTER */ | 217 /* TEXTURE_MAG_FILTER */ |
| 203 /* TEXTURE_MIN_FILTER */ | 218 /* TEXTURE_MIN_FILTER */ |
| 204 /* TEXTURE_WRAP_S */ | 219 /* TEXTURE_WRAP_S */ |
| 205 /* TEXTURE_WRAP_T */ | 220 /* TEXTURE_WRAP_T */ |
| 206 | 221 |
| 207 const unsigned int COMPRESSED_TEXTURE_FORMATS = 0x86A3; | 222 const GLenum COMPRESSED_TEXTURE_FORMATS = 0x86A3; |
| 208 | 223 |
| 209 /* HintMode */ | 224 /* HintMode */ |
| 210 const unsigned int DONT_CARE = 0x1100; | 225 const GLenum DONT_CARE = 0x1100; |
| 211 const unsigned int FASTEST = 0x1101; | 226 const GLenum FASTEST = 0x1101; |
| 212 const unsigned int NICEST = 0x1102; | 227 const GLenum NICEST = 0x1102; |
| 213 | 228 |
| 214 /* HintTarget */ | 229 /* HintTarget */ |
| 215 const unsigned int GENERATE_MIPMAP_HINT = 0x8192; | 230 const GLenum GENERATE_MIPMAP_HINT = 0x8192; |
| 216 | 231 |
| 217 /* DataType */ | 232 /* DataType */ |
| 218 const unsigned int BYTE = 0x1400; | 233 const GLenum BYTE = 0x1400; |
| 219 const unsigned int UNSIGNED_BYTE = 0x1401; | 234 const GLenum UNSIGNED_BYTE = 0x1401; |
| 220 const unsigned int SHORT = 0x1402; | 235 const GLenum SHORT = 0x1402; |
| 221 const unsigned int UNSIGNED_SHORT = 0x1403; | 236 const GLenum UNSIGNED_SHORT = 0x1403; |
| 222 const unsigned int INT = 0x1404; | 237 const GLenum INT = 0x1404; |
| 223 const unsigned int UNSIGNED_INT = 0x1405; | 238 const GLenum UNSIGNED_INT = 0x1405; |
| 224 const unsigned int FLOAT = 0x1406; | 239 const GLenum FLOAT = 0x1406; |
| 225 | 240 |
| 226 /* PixelFormat */ | 241 /* PixelFormat */ |
| 227 const unsigned int DEPTH_COMPONENT = 0x1902; | 242 const GLenum DEPTH_COMPONENT = 0x1902; |
| 228 const unsigned int ALPHA = 0x1906; | 243 const GLenum ALPHA = 0x1906; |
| 229 const unsigned int RGB = 0x1907; | 244 const GLenum RGB = 0x1907; |
| 230 const unsigned int RGBA = 0x1908; | 245 const GLenum RGBA = 0x1908; |
| 231 const unsigned int LUMINANCE = 0x1909; | 246 const GLenum LUMINANCE = 0x1909; |
| 232 const unsigned int LUMINANCE_ALPHA = 0x190A; | 247 const GLenum LUMINANCE_ALPHA = 0x190A; |
| 233 | 248 |
| 234 /* PixelType */ | 249 /* PixelType */ |
| 235 /* UNSIGNED_BYTE */ | 250 /* UNSIGNED_BYTE */ |
| 236 const unsigned int UNSIGNED_SHORT_4_4_4_4 = 0x8033; | 251 const GLenum UNSIGNED_SHORT_4_4_4_4 = 0x8033; |
| 237 const unsigned int UNSIGNED_SHORT_5_5_5_1 = 0x8034; | 252 const GLenum UNSIGNED_SHORT_5_5_5_1 = 0x8034; |
| 238 const unsigned int UNSIGNED_SHORT_5_6_5 = 0x8363; | 253 const GLenum UNSIGNED_SHORT_5_6_5 = 0x8363; |
| 239 | 254 |
| 240 /* Shaders */ | 255 /* Shaders */ |
| 241 const unsigned int FRAGMENT_SHADER = 0x8B30; | 256 const GLenum FRAGMENT_SHADER = 0x8B30; |
| 242 const unsigned int VERTEX_SHADER = 0x8B31; | 257 const GLenum VERTEX_SHADER = 0x8B31; |
| 243 const unsigned int MAX_VERTEX_ATTRIBS = 0x8869; | 258 const GLenum MAX_VERTEX_ATTRIBS = 0x8869; |
| 244 const unsigned int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; | 259 const GLenum MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; |
| 245 const unsigned int MAX_VARYING_VECTORS = 0x8DFC; | 260 const GLenum MAX_VARYING_VECTORS = 0x8DFC; |
| 246 const unsigned int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D; | 261 const GLenum MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D; |
| 247 const unsigned int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C; | 262 const GLenum MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C; |
| 248 const unsigned int MAX_TEXTURE_IMAGE_UNITS = 0x8872; | 263 const GLenum MAX_TEXTURE_IMAGE_UNITS = 0x8872; |
| 249 const unsigned int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; | 264 const GLenum MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; |
| 250 const unsigned int SHADER_TYPE = 0x8B4F; | 265 const GLenum SHADER_TYPE = 0x8B4F; |
| 251 const unsigned int DELETE_STATUS = 0x8B80; | 266 const GLenum DELETE_STATUS = 0x8B80; |
| 252 const unsigned int LINK_STATUS = 0x8B82; | 267 const GLenum LINK_STATUS = 0x8B82; |
| 253 const unsigned int VALIDATE_STATUS = 0x8B83; | 268 const GLenum VALIDATE_STATUS = 0x8B83; |
| 254 const unsigned int ATTACHED_SHADERS = 0x8B85; | 269 const GLenum ATTACHED_SHADERS = 0x8B85; |
| 255 const unsigned int ACTIVE_UNIFORMS = 0x8B86; | 270 const GLenum ACTIVE_UNIFORMS = 0x8B86; |
| 256 const unsigned int ACTIVE_ATTRIBUTES = 0x8B89; | 271 const GLenum ACTIVE_ATTRIBUTES = 0x8B89; |
| 257 const unsigned int SHADING_LANGUAGE_VERSION = 0x8B8C; | 272 const GLenum SHADING_LANGUAGE_VERSION = 0x8B8C; |
| 258 const unsigned int CURRENT_PROGRAM = 0x8B8D; | 273 const GLenum CURRENT_PROGRAM = 0x8B8D; |
| 259 | 274 |
| 260 /* StencilFunction */ | 275 /* StencilFunction */ |
| 261 const unsigned int NEVER = 0x0200; | 276 const GLenum NEVER = 0x0200; |
| 262 const unsigned int LESS = 0x0201; | 277 const GLenum LESS = 0x0201; |
| 263 const unsigned int EQUAL = 0x0202; | 278 const GLenum EQUAL = 0x0202; |
| 264 const unsigned int LEQUAL = 0x0203; | 279 const GLenum LEQUAL = 0x0203; |
| 265 const unsigned int GREATER = 0x0204; | 280 const GLenum GREATER = 0x0204; |
| 266 const unsigned int NOTEQUAL = 0x0205; | 281 const GLenum NOTEQUAL = 0x0205; |
| 267 const unsigned int GEQUAL = 0x0206; | 282 const GLenum GEQUAL = 0x0206; |
| 268 const unsigned int ALWAYS = 0x0207; | 283 const GLenum ALWAYS = 0x0207; |
| 269 | 284 |
| 270 /* StencilOp */ | 285 /* StencilOp */ |
| 271 /* ZERO */ | 286 /* ZERO */ |
| 272 const unsigned int KEEP = 0x1E00; | 287 const GLenum KEEP = 0x1E00; |
| 273 const unsigned int REPLACE = 0x1E01; | 288 const GLenum REPLACE = 0x1E01; |
| 274 const unsigned int INCR = 0x1E02; | 289 const GLenum INCR = 0x1E02; |
| 275 const unsigned int DECR = 0x1E03; | 290 const GLenum DECR = 0x1E03; |
| 276 const unsigned int INVERT = 0x150A; | 291 const GLenum INVERT = 0x150A; |
| 277 const unsigned int INCR_WRAP = 0x8507; | 292 const GLenum INCR_WRAP = 0x8507; |
| 278 const unsigned int DECR_WRAP = 0x8508; | 293 const GLenum DECR_WRAP = 0x8508; |
| 279 | 294 |
| 280 /* StringName */ | 295 /* StringName */ |
| 281 const unsigned int VENDOR = 0x1F00; | 296 const GLenum VENDOR = 0x1F00; |
| 282 const unsigned int RENDERER = 0x1F01; | 297 const GLenum RENDERER = 0x1F01; |
| 283 const unsigned int VERSION = 0x1F02; | 298 const GLenum VERSION = 0x1F02; |
| 284 | 299 |
| 285 /* TextureMagFilter */ | 300 /* TextureMagFilter */ |
| 286 const unsigned int NEAREST = 0x2600; | 301 const GLenum NEAREST = 0x2600; |
| 287 const unsigned int LINEAR = 0x2601; | 302 const GLenum LINEAR = 0x2601; |
| 288 | 303 |
| 289 /* TextureMinFilter */ | 304 /* TextureMinFilter */ |
| 290 /* NEAREST */ | 305 /* NEAREST */ |
| 291 /* LINEAR */ | 306 /* LINEAR */ |
| 292 const unsigned int NEAREST_MIPMAP_NEAREST = 0x2700; | 307 const GLenum NEAREST_MIPMAP_NEAREST = 0x2700; |
| 293 const unsigned int LINEAR_MIPMAP_NEAREST = 0x2701; | 308 const GLenum LINEAR_MIPMAP_NEAREST = 0x2701; |
| 294 const unsigned int NEAREST_MIPMAP_LINEAR = 0x2702; | 309 const GLenum NEAREST_MIPMAP_LINEAR = 0x2702; |
| 295 const unsigned int LINEAR_MIPMAP_LINEAR = 0x2703; | 310 const GLenum LINEAR_MIPMAP_LINEAR = 0x2703; |
| 296 | 311 |
| 297 /* TextureParameterName */ | 312 /* TextureParameterName */ |
| 298 const unsigned int TEXTURE_MAG_FILTER = 0x2800; | 313 const GLenum TEXTURE_MAG_FILTER = 0x2800; |
| 299 const unsigned int TEXTURE_MIN_FILTER = 0x2801; | 314 const GLenum TEXTURE_MIN_FILTER = 0x2801; |
| 300 const unsigned int TEXTURE_WRAP_S = 0x2802; | 315 const GLenum TEXTURE_WRAP_S = 0x2802; |
| 301 const unsigned int TEXTURE_WRAP_T = 0x2803; | 316 const GLenum TEXTURE_WRAP_T = 0x2803; |
| 302 | 317 |
| 303 /* TextureTarget */ | 318 /* TextureTarget */ |
| 304 /* TEXTURE_2D */ | 319 /* TEXTURE_2D */ |
| 305 const unsigned int TEXTURE = 0x1702; | 320 const GLenum TEXTURE = 0x1702; |
| 306 | 321 |
| 307 const unsigned int TEXTURE_CUBE_MAP = 0x8513; | 322 const GLenum TEXTURE_CUBE_MAP = 0x8513; |
| 308 const unsigned int TEXTURE_BINDING_CUBE_MAP = 0x8514; | 323 const GLenum TEXTURE_BINDING_CUBE_MAP = 0x8514; |
| 309 const unsigned int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; | 324 const GLenum TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; |
| 310 const unsigned int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; | 325 const GLenum TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; |
| 311 const unsigned int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; | 326 const GLenum TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; |
| 312 const unsigned int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; | 327 const GLenum TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; |
| 313 const unsigned int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; | 328 const GLenum TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; |
| 314 const unsigned int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; | 329 const GLenum TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; |
| 315 const unsigned int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; | 330 const GLenum MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; |
| 316 | 331 |
| 317 /* TextureUnit */ | 332 /* TextureUnit */ |
| 318 const unsigned int TEXTURE0 = 0x84C0; | 333 const GLenum TEXTURE0 = 0x84C0; |
| 319 const unsigned int TEXTURE1 = 0x84C1; | 334 const GLenum TEXTURE1 = 0x84C1; |
| 320 const unsigned int TEXTURE2 = 0x84C2; | 335 const GLenum TEXTURE2 = 0x84C2; |
| 321 const unsigned int TEXTURE3 = 0x84C3; | 336 const GLenum TEXTURE3 = 0x84C3; |
| 322 const unsigned int TEXTURE4 = 0x84C4; | 337 const GLenum TEXTURE4 = 0x84C4; |
| 323 const unsigned int TEXTURE5 = 0x84C5; | 338 const GLenum TEXTURE5 = 0x84C5; |
| 324 const unsigned int TEXTURE6 = 0x84C6; | 339 const GLenum TEXTURE6 = 0x84C6; |
| 325 const unsigned int TEXTURE7 = 0x84C7; | 340 const GLenum TEXTURE7 = 0x84C7; |
| 326 const unsigned int TEXTURE8 = 0x84C8; | 341 const GLenum TEXTURE8 = 0x84C8; |
| 327 const unsigned int TEXTURE9 = 0x84C9; | 342 const GLenum TEXTURE9 = 0x84C9; |
| 328 const unsigned int TEXTURE10 = 0x84CA; | 343 const GLenum TEXTURE10 = 0x84CA; |
| 329 const unsigned int TEXTURE11 = 0x84CB; | 344 const GLenum TEXTURE11 = 0x84CB; |
| 330 const unsigned int TEXTURE12 = 0x84CC; | 345 const GLenum TEXTURE12 = 0x84CC; |
| 331 const unsigned int TEXTURE13 = 0x84CD; | 346 const GLenum TEXTURE13 = 0x84CD; |
| 332 const unsigned int TEXTURE14 = 0x84CE; | 347 const GLenum TEXTURE14 = 0x84CE; |
| 333 const unsigned int TEXTURE15 = 0x84CF; | 348 const GLenum TEXTURE15 = 0x84CF; |
| 334 const unsigned int TEXTURE16 = 0x84D0; | 349 const GLenum TEXTURE16 = 0x84D0; |
| 335 const unsigned int TEXTURE17 = 0x84D1; | 350 const GLenum TEXTURE17 = 0x84D1; |
| 336 const unsigned int TEXTURE18 = 0x84D2; | 351 const GLenum TEXTURE18 = 0x84D2; |
| 337 const unsigned int TEXTURE19 = 0x84D3; | 352 const GLenum TEXTURE19 = 0x84D3; |
| 338 const unsigned int TEXTURE20 = 0x84D4; | 353 const GLenum TEXTURE20 = 0x84D4; |
| 339 const unsigned int TEXTURE21 = 0x84D5; | 354 const GLenum TEXTURE21 = 0x84D5; |
| 340 const unsigned int TEXTURE22 = 0x84D6; | 355 const GLenum TEXTURE22 = 0x84D6; |
| 341 const unsigned int TEXTURE23 = 0x84D7; | 356 const GLenum TEXTURE23 = 0x84D7; |
| 342 const unsigned int TEXTURE24 = 0x84D8; | 357 const GLenum TEXTURE24 = 0x84D8; |
| 343 const unsigned int TEXTURE25 = 0x84D9; | 358 const GLenum TEXTURE25 = 0x84D9; |
| 344 const unsigned int TEXTURE26 = 0x84DA; | 359 const GLenum TEXTURE26 = 0x84DA; |
| 345 const unsigned int TEXTURE27 = 0x84DB; | 360 const GLenum TEXTURE27 = 0x84DB; |
| 346 const unsigned int TEXTURE28 = 0x84DC; | 361 const GLenum TEXTURE28 = 0x84DC; |
| 347 const unsigned int TEXTURE29 = 0x84DD; | 362 const GLenum TEXTURE29 = 0x84DD; |
| 348 const unsigned int TEXTURE30 = 0x84DE; | 363 const GLenum TEXTURE30 = 0x84DE; |
| 349 const unsigned int TEXTURE31 = 0x84DF; | 364 const GLenum TEXTURE31 = 0x84DF; |
| 350 const unsigned int ACTIVE_TEXTURE = 0x84E0; | 365 const GLenum ACTIVE_TEXTURE = 0x84E0; |
| 351 | 366 |
| 352 /* TextureWrapMode */ | 367 /* TextureWrapMode */ |
| 353 const unsigned int REPEAT = 0x2901; | 368 const GLenum REPEAT = 0x2901; |
| 354 const unsigned int CLAMP_TO_EDGE = 0x812F; | 369 const GLenum CLAMP_TO_EDGE = 0x812F; |
| 355 const unsigned int MIRRORED_REPEAT = 0x8370; | 370 const GLenum MIRRORED_REPEAT = 0x8370; |
| 356 | 371 |
| 357 /* Uniform Types */ | 372 /* Uniform Types */ |
| 358 const unsigned int FLOAT_VEC2 = 0x8B50; | 373 const GLenum FLOAT_VEC2 = 0x8B50; |
| 359 const unsigned int FLOAT_VEC3 = 0x8B51; | 374 const GLenum FLOAT_VEC3 = 0x8B51; |
| 360 const unsigned int FLOAT_VEC4 = 0x8B52; | 375 const GLenum FLOAT_VEC4 = 0x8B52; |
| 361 const unsigned int INT_VEC2 = 0x8B53; | 376 const GLenum INT_VEC2 = 0x8B53; |
| 362 const unsigned int INT_VEC3 = 0x8B54; | 377 const GLenum INT_VEC3 = 0x8B54; |
| 363 const unsigned int INT_VEC4 = 0x8B55; | 378 const GLenum INT_VEC4 = 0x8B55; |
| 364 const unsigned int BOOL = 0x8B56; | 379 const GLenum BOOL = 0x8B56; |
| 365 const unsigned int BOOL_VEC2 = 0x8B57; | 380 const GLenum BOOL_VEC2 = 0x8B57; |
| 366 const unsigned int BOOL_VEC3 = 0x8B58; | 381 const GLenum BOOL_VEC3 = 0x8B58; |
| 367 const unsigned int BOOL_VEC4 = 0x8B59; | 382 const GLenum BOOL_VEC4 = 0x8B59; |
| 368 const unsigned int FLOAT_MAT2 = 0x8B5A; | 383 const GLenum FLOAT_MAT2 = 0x8B5A; |
| 369 const unsigned int FLOAT_MAT3 = 0x8B5B; | 384 const GLenum FLOAT_MAT3 = 0x8B5B; |
| 370 const unsigned int FLOAT_MAT4 = 0x8B5C; | 385 const GLenum FLOAT_MAT4 = 0x8B5C; |
| 371 const unsigned int SAMPLER_2D = 0x8B5E; | 386 const GLenum SAMPLER_2D = 0x8B5E; |
| 372 const unsigned int SAMPLER_CUBE = 0x8B60; | 387 const GLenum SAMPLER_CUBE = 0x8B60; |
| 373 | 388 |
| 374 /* Vertex Arrays */ | 389 /* Vertex Arrays */ |
| 375 const unsigned int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; | 390 const GLenum VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; |
| 376 const unsigned int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; | 391 const GLenum VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; |
| 377 const unsigned int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; | 392 const GLenum VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; |
| 378 const unsigned int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; | 393 const GLenum VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; |
| 379 const unsigned int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A; | 394 const GLenum VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A; |
| 380 const unsigned int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; | 395 const GLenum VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; |
| 381 const unsigned int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; | 396 const GLenum VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; |
| 382 | 397 |
| 383 /* Shader Source */ | 398 /* Shader Source */ |
| 384 const unsigned int COMPILE_STATUS = 0x8B81; | 399 const GLenum COMPILE_STATUS = 0x8B81; |
| 385 | 400 |
| 386 /* Shader Precision-Specified Types */ | 401 /* Shader Precision-Specified Types */ |
| 387 const unsigned int LOW_FLOAT = 0x8DF0; | 402 const GLenum LOW_FLOAT = 0x8DF0; |
| 388 const unsigned int MEDIUM_FLOAT = 0x8DF1; | 403 const GLenum MEDIUM_FLOAT = 0x8DF1; |
| 389 const unsigned int HIGH_FLOAT = 0x8DF2; | 404 const GLenum HIGH_FLOAT = 0x8DF2; |
| 390 const unsigned int LOW_INT = 0x8DF3; | 405 const GLenum LOW_INT = 0x8DF3; |
| 391 const unsigned int MEDIUM_INT = 0x8DF4; | 406 const GLenum MEDIUM_INT = 0x8DF4; |
| 392 const unsigned int HIGH_INT = 0x8DF5; | 407 const GLenum HIGH_INT = 0x8DF5; |
| 393 | 408 |
| 394 /* Framebuffer Object. */ | 409 /* Framebuffer Object. */ |
| 395 const unsigned int FRAMEBUFFER = 0x8D40; | 410 const GLenum FRAMEBUFFER = 0x8D40; |
| 396 const unsigned int RENDERBUFFER = 0x8D41; | 411 const GLenum RENDERBUFFER = 0x8D41; |
| 397 | 412 |
| 398 const unsigned int RGBA4 = 0x8056; | 413 const GLenum RGBA4 = 0x8056; |
| 399 const unsigned int RGB5_A1 = 0x8057; | 414 const GLenum RGB5_A1 = 0x8057; |
| 400 const unsigned int RGB565 = 0x8D62; | 415 const GLenum RGB565 = 0x8D62; |
| 401 const unsigned int DEPTH_COMPONENT16 = 0x81A5; | 416 const GLenum DEPTH_COMPONENT16 = 0x81A5; |
| 402 const unsigned int STENCIL_INDEX = 0x1901; | 417 const GLenum STENCIL_INDEX = 0x1901; |
| 403 const unsigned int STENCIL_INDEX8 = 0x8D48; | 418 const GLenum STENCIL_INDEX8 = 0x8D48; |
| 404 const unsigned int DEPTH_STENCIL = 0x84F9; | 419 const GLenum DEPTH_STENCIL = 0x84F9; |
| 405 | 420 |
| 406 const unsigned int RENDERBUFFER_WIDTH = 0x8D42; | 421 const GLenum RENDERBUFFER_WIDTH = 0x8D42; |
| 407 const unsigned int RENDERBUFFER_HEIGHT = 0x8D43; | 422 const GLenum RENDERBUFFER_HEIGHT = 0x8D43; |
| 408 const unsigned int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44; | 423 const GLenum RENDERBUFFER_INTERNAL_FORMAT = 0x8D44; |
| 409 const unsigned int RENDERBUFFER_RED_SIZE = 0x8D50; | 424 const GLenum RENDERBUFFER_RED_SIZE = 0x8D50; |
| 410 const unsigned int RENDERBUFFER_GREEN_SIZE = 0x8D51; | 425 const GLenum RENDERBUFFER_GREEN_SIZE = 0x8D51; |
| 411 const unsigned int RENDERBUFFER_BLUE_SIZE = 0x8D52; | 426 const GLenum RENDERBUFFER_BLUE_SIZE = 0x8D52; |
| 412 const unsigned int RENDERBUFFER_ALPHA_SIZE = 0x8D53; | 427 const GLenum RENDERBUFFER_ALPHA_SIZE = 0x8D53; |
| 413 const unsigned int RENDERBUFFER_DEPTH_SIZE = 0x8D54; | 428 const GLenum RENDERBUFFER_DEPTH_SIZE = 0x8D54; |
| 414 const unsigned int RENDERBUFFER_STENCIL_SIZE = 0x8D55; | 429 const GLenum RENDERBUFFER_STENCIL_SIZE = 0x8D55; |
| 415 | 430 |
| 416 const unsigned int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0; | 431 const GLenum FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0; |
| 417 const unsigned int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1; | 432 const GLenum FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1; |
| 418 const unsigned int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2; | 433 const GLenum FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2; |
| 419 const unsigned int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3; | 434 const GLenum FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3; |
| 420 | 435 |
| 421 const unsigned int COLOR_ATTACHMENT0 = 0x8CE0; | 436 const GLenum COLOR_ATTACHMENT0 = 0x8CE0; |
| 422 const unsigned int DEPTH_ATTACHMENT = 0x8D00; | 437 const GLenum DEPTH_ATTACHMENT = 0x8D00; |
| 423 const unsigned int STENCIL_ATTACHMENT = 0x8D20; | 438 const GLenum STENCIL_ATTACHMENT = 0x8D20; |
| 424 const unsigned int DEPTH_STENCIL_ATTACHMENT = 0x821A; | 439 const GLenum DEPTH_STENCIL_ATTACHMENT = 0x821A; |
| 425 | 440 |
| 426 const unsigned int NONE = 0; | 441 const GLenum NONE = 0; |
| 427 | 442 |
| 428 const unsigned int FRAMEBUFFER_COMPLETE = 0x8CD5; | 443 const GLenum FRAMEBUFFER_COMPLETE = 0x8CD5; |
| 429 const unsigned int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6; | 444 const GLenum FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6; |
| 430 const unsigned int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7; | 445 const GLenum FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7; |
| 431 const unsigned int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9; | 446 const GLenum FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9; |
| 432 const unsigned int FRAMEBUFFER_UNSUPPORTED = 0x8CDD; | 447 const GLenum FRAMEBUFFER_UNSUPPORTED = 0x8CDD; |
| 433 | 448 |
| 434 const unsigned int FRAMEBUFFER_BINDING = 0x8CA6; | 449 const GLenum FRAMEBUFFER_BINDING = 0x8CA6; |
| 435 const unsigned int RENDERBUFFER_BINDING = 0x8CA7; | 450 const GLenum RENDERBUFFER_BINDING = 0x8CA7; |
| 436 const unsigned int MAX_RENDERBUFFER_SIZE = 0x84E8; | 451 const GLenum MAX_RENDERBUFFER_SIZE = 0x84E8; |
| 437 | 452 |
| 438 const unsigned int INVALID_FRAMEBUFFER_OPERATION = 0x0506; | 453 const GLenum INVALID_FRAMEBUFFER_OPERATION = 0x0506; |
| 439 | 454 |
| 440 /* WebGL-specific enums */ | 455 /* WebGL-specific enums */ |
| 441 const unsigned int UNPACK_FLIP_Y_WEBGL = 0x9240; | 456 const GLenum UNPACK_FLIP_Y_WEBGL = 0x9240; |
| 442 const unsigned int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; | 457 const GLenum UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; |
| 443 const unsigned int CONTEXT_LOST_WEBGL = 0x9242; | 458 const GLenum CONTEXT_LOST_WEBGL = 0x9242; |
| 444 const unsigned int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; | 459 const GLenum UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; |
| 445 const unsigned int BROWSER_DEFAULT_WEBGL = 0x9244; | 460 const GLenum BROWSER_DEFAULT_WEBGL = 0x9244; |
| 446 | 461 |
| 447 readonly attribute long drawingBufferWidth; | 462 readonly attribute GLsizei drawingBufferWidth; |
| 448 readonly attribute long drawingBufferHeight; | 463 readonly attribute GLsizei drawingBufferHeight; |
| 449 | 464 |
| 450 [StrictTypeChecking] void activeTexture(in unsigned long texture) ra
ises(DOMException); | 465 [StrictTypeChecking] void activeTexture(in GLenum texture) raises(DO
MException); |
| 451 [StrictTypeChecking] void attachShader(in WebGLProgram program, in W
ebGLShader shader) raises(DOMException); | 466 [StrictTypeChecking] void attachShader(in WebGLProgram program, in W
ebGLShader shader) raises(DOMException); |
| 452 [StrictTypeChecking] void bindAttribLocation(in WebGLProgram program
, in unsigned long index, in DOMString name) raises(DOMException); | 467 [StrictTypeChecking] void bindAttribLocation(in WebGLProgram program
, in GLuint index, in DOMString name) raises(DOMException); |
| 453 [StrictTypeChecking] void bindBuffer(in unsigned long target, in Web
GLBuffer buffer) raises(DOMException); | 468 [StrictTypeChecking] void bindBuffer(in GLenum target, in WebGLBuffe
r buffer) raises(DOMException); |
| 454 [StrictTypeChecking] void bindFramebuffer(in unsigned long target, i
n WebGLFramebuffer framebuffer) raises(DOMException); | 469 [StrictTypeChecking] void bindFramebuffer(in GLenum target, in WebGL
Framebuffer framebuffer) raises(DOMException); |
| 455 [StrictTypeChecking] void bindRenderbuffer(in unsigned long target,
in WebGLRenderbuffer renderbuffer) raises(DOMException); | 470 [StrictTypeChecking] void bindRenderbuffer(in GLenum target, in WebG
LRenderbuffer renderbuffer) raises(DOMException); |
| 456 [StrictTypeChecking] void bindTexture(in unsigned long target, in We
bGLTexture texture) raises(DOMException); | 471 [StrictTypeChecking] void bindTexture(in GLenum target, in WebGLText
ure texture) raises(DOMException); |
| 457 [StrictTypeChecking] void blendColor(in float red, in float green, i
n float blue, in float alpha); | 472 [StrictTypeChecking] void blendColor(in GLclampf red, in GLclampf gr
een, in GLclampf blue, in GLclampf alpha); |
| 458 [StrictTypeChecking] void blendEquation( in unsigned long mode ); | 473 [StrictTypeChecking] void blendEquation(in GLenum mode); |
| 459 [StrictTypeChecking] void blendEquationSeparate(in unsigned long mod
eRGB, in unsigned long modeAlpha); | 474 [StrictTypeChecking] void blendEquationSeparate(in GLenum modeRGB, i
n GLenum modeAlpha); |
| 460 [StrictTypeChecking] void blendFunc(in unsigned long sfactor, in uns
igned long dfactor); | 475 [StrictTypeChecking] void blendFunc(in GLenum sfactor, in GLenum dfa
ctor); |
| 461 [StrictTypeChecking] void blendFuncSeparate(in unsigned long srcRGB,
in unsigned long dstRGB, in unsigned long srcAlpha, in unsigned long dstAlpha); | 476 [StrictTypeChecking] void blendFuncSeparate(in GLenum srcRGB, in GLe
num dstRGB, in GLenum srcAlpha, in GLenum dstAlpha); |
| 462 [StrictTypeChecking] void bufferData(in unsigned long target, in Arr
ayBuffer? data, in unsigned long usage) raises (DOMException); | 477 [StrictTypeChecking] void bufferData(in GLenum target, in ArrayBuffe
r? data, in GLenum usage) raises (DOMException); |
| 463 [StrictTypeChecking] void bufferData(in unsigned long target, in Arr
ayBufferView? data, in unsigned long usage) raises (DOMException); | 478 [StrictTypeChecking] void bufferData(in GLenum target, in ArrayBuffe
rView? data, in GLenum usage) raises (DOMException); |
| 464 [StrictTypeChecking] void bufferData(in unsigned long target, in lon
g long size, in unsigned long usage) raises (DOMException); | 479 [StrictTypeChecking] void bufferData(in GLenum target, in GLsizeiptr
size, in GLenum usage) raises (DOMException); |
| 465 [StrictTypeChecking] void bufferSubData(in unsigned long target, in
long long offset, in ArrayBuffer? data) raises (DOMException); | 480 [StrictTypeChecking] void bufferSubData(in GLenum target, in GLintpt
r offset, in ArrayBuffer? data) raises (DOMException); |
| 466 [StrictTypeChecking] void bufferSubData(in unsigned long target, in
long long offset, in ArrayBufferView? data) raises (DOMException); | 481 [StrictTypeChecking] void bufferSubData(in GLenum target, in GLintpt
r offset, in ArrayBufferView? data) raises (DOMException); |
| 467 | 482 |
| 468 [StrictTypeChecking] unsigned long checkFramebufferStatus(in unsigned long t
arget); | 483 [StrictTypeChecking] GLenum checkFramebufferStatus(in GLenum target); |
| 469 [StrictTypeChecking] void clear(in unsigned long mask); | 484 [StrictTypeChecking] void clear(in GLbitfield mask); |
| 470 [StrictTypeChecking] void clearColor(in float red, in float green, i
n float blue, in float alpha); | 485 [StrictTypeChecking] void clearColor(in GLclampf red, in GLclampf gr
een, in GLclampf blue, in GLclampf alpha); |
| 471 [StrictTypeChecking] void clearDepth(in float depth); | 486 [StrictTypeChecking] void clearDepth(in GLclampf depth); |
| 472 [StrictTypeChecking] void clearStencil(in long s); | 487 [StrictTypeChecking] void clearStencil(in GLint s); |
| 473 [StrictTypeChecking] void colorMask(in boolean red, in boolean green
, in boolean blue, in boolean alpha); | 488 [StrictTypeChecking] void colorMask(in GLboolean red, in GLboolean g
reen, in GLboolean blue, in GLboolean alpha); |
| 474 [StrictTypeChecking] void compileShader(in WebGLShader shader) raise
s(DOMException); | 489 [StrictTypeChecking] void compileShader(in WebGLShader shader) raise
s(DOMException); |
| 475 | 490 |
| 476 [StrictTypeChecking] void compressedTexImage2D(in unsigned long targ
et, in long level, in unsigned long internalformat, | 491 [StrictTypeChecking] void compressedTexImage2D(in GLenum target, in
GLint level, in GLenum internalformat, |
| 477 in long width, in lon
g height, in long border, in ArrayBufferView data); | 492 in GLsizei width, in
GLsizei height, in GLint border, in ArrayBufferView data); |
| 478 [StrictTypeChecking] void compressedTexSubImage2D(in unsigned long t
arget, in long level, in long xoffset, in long yoffset, | 493 [StrictTypeChecking] void compressedTexSubImage2D(in GLenum target,
in GLint level, in GLint xoffset, in GLint yoffset, |
| 479 in long width, in
long height, in unsigned long format, in ArrayBufferView data); | 494 in GLsizei width,
in GLsizei height, in GLenum format, in ArrayBufferView data); |
| 480 | 495 |
| 481 [StrictTypeChecking] void copyTexImage2D(in unsigned long target, in
long level, in unsigned long internalformat, in long x, in long y, in long widt
h, in long height, in long border); | 496 [StrictTypeChecking] void copyTexImage2D(in GLenum target, in GLint
level, in GLenum internalformat, in GLint x, in GLint y, in GLsizei width, in GL
sizei height, in GLint border); |
| 482 [StrictTypeChecking] void copyTexSubImage2D(in unsigned long target,
in long level, in long xoffset, in long yoffset, in long x, in long y, in long
width, in long height); | 497 [StrictTypeChecking] void copyTexSubImage2D(in GLenum target, in GLi
nt level, in GLint xoffset, in GLint yoffset, in GLint x, in GLint y, in GLsizei
width, in GLsizei height); |
| 483 | 498 |
| 484 [StrictTypeChecking] WebGLBuffer createBuffer(); | 499 [StrictTypeChecking] WebGLBuffer createBuffer(); |
| 485 [StrictTypeChecking] WebGLFramebuffer createFramebuffer(); | 500 [StrictTypeChecking] WebGLFramebuffer createFramebuffer(); |
| 486 [StrictTypeChecking] WebGLProgram createProgram(); | 501 [StrictTypeChecking] WebGLProgram createProgram(); |
| 487 [StrictTypeChecking] WebGLRenderbuffer createRenderbuffer(); | 502 [StrictTypeChecking] WebGLRenderbuffer createRenderbuffer(); |
| 488 [StrictTypeChecking] WebGLShader createShader(in unsigned long type) raises(
DOMException); | 503 [StrictTypeChecking] WebGLShader createShader(in GLenum type) raises(DOMExce
ption); |
| 489 [StrictTypeChecking] WebGLTexture createTexture(); | 504 [StrictTypeChecking] WebGLTexture createTexture(); |
| 490 | 505 |
| 491 [StrictTypeChecking] void cullFace(in unsigned long mode); | 506 [StrictTypeChecking] void cullFace(in GLenum mode); |
| 492 | 507 |
| 493 [StrictTypeChecking] void deleteBuffer(in WebGLBuffer buffer); | 508 [StrictTypeChecking] void deleteBuffer(in WebGLBuffer buffer); |
| 494 [StrictTypeChecking] void deleteFramebuffer(in WebGLFramebuffer fram
ebuffer); | 509 [StrictTypeChecking] void deleteFramebuffer(in WebGLFramebuffer fram
ebuffer); |
| 495 [StrictTypeChecking] void deleteProgram(in WebGLProgram program); | 510 [StrictTypeChecking] void deleteProgram(in WebGLProgram program); |
| 496 [StrictTypeChecking] void deleteRenderbuffer(in WebGLRenderbuffer re
nderbuffer); | 511 [StrictTypeChecking] void deleteRenderbuffer(in WebGLRenderbuffer re
nderbuffer); |
| 497 [StrictTypeChecking] void deleteShader(in WebGLShader shader); | 512 [StrictTypeChecking] void deleteShader(in WebGLShader shader); |
| 498 [StrictTypeChecking] void deleteTexture(in WebGLTexture texture); | 513 [StrictTypeChecking] void deleteTexture(in WebGLTexture texture); |
| 499 | 514 |
| 500 [StrictTypeChecking] void depthFunc(in unsigned long func); | 515 [StrictTypeChecking] void depthFunc(in GLenum func); |
| 501 [StrictTypeChecking] void depthMask(in boolean flag); | 516 [StrictTypeChecking] void depthMask(in GLboolean flag); |
| 502 // FIXME: this differs from the current WebGL spec (depthRangef) | 517 [StrictTypeChecking] void depthRange(in GLclampf zNear, in GLclampf
zFar); |
| 503 [StrictTypeChecking] void depthRange(in float zNear, in float zFar); | |
| 504 [StrictTypeChecking] void detachShader(in WebGLProgram program, in W
ebGLShader shader) raises(DOMException); | 518 [StrictTypeChecking] void detachShader(in WebGLProgram program, in W
ebGLShader shader) raises(DOMException); |
| 505 [StrictTypeChecking] void disable(in unsigned long cap); | 519 [StrictTypeChecking] void disable(in GLenum cap); |
| 506 [StrictTypeChecking] void disableVertexAttribArray(in unsigned long
index) raises(DOMException); | 520 [StrictTypeChecking] void disableVertexAttribArray(in GLuint index)
raises(DOMException); |
| 507 [StrictTypeChecking] void drawArrays(in unsigned long mode, in long
first, in long count) raises(DOMException); | 521 [StrictTypeChecking] void drawArrays(in GLenum mode, in GLint first,
in GLsizei count) raises(DOMException); |
| 508 [StrictTypeChecking] void drawElements(in unsigned long mode, in lon
g count, in unsigned long type, in long long offset) raises(DOMException); | 522 [StrictTypeChecking] void drawElements(in GLenum mode, in GLsizei co
unt, in GLenum type, in GLintptr offset) raises(DOMException); |
| 509 | 523 |
| 510 [StrictTypeChecking] void enable(in unsigned long cap); | 524 [StrictTypeChecking] void enable(in GLenum cap); |
| 511 [StrictTypeChecking] void enableVertexAttribArray(in unsigned long i
ndex) raises(DOMException); | 525 [StrictTypeChecking] void enableVertexAttribArray(in GLuint index) r
aises(DOMException); |
| 512 [StrictTypeChecking] void finish(); | 526 [StrictTypeChecking] void finish(); |
| 513 [StrictTypeChecking] void flush(); | 527 [StrictTypeChecking] void flush(); |
| 514 [StrictTypeChecking] void framebufferRenderbuffer(in unsigned long t
arget, in unsigned long attachment, in unsigned long renderbuffertarget, in WebG
LRenderbuffer renderbuffer) raises(DOMException); | 528 [StrictTypeChecking] void framebufferRenderbuffer(in GLenum target,
in GLenum attachment, in GLenum renderbuffertarget, in WebGLRenderbuffer renderb
uffer) raises(DOMException); |
| 515 [StrictTypeChecking] void framebufferTexture2D(in unsigned long targ
et, in unsigned long attachment, in unsigned long textarget, in WebGLTexture tex
ture, in long level) raises(DOMException); | 529 [StrictTypeChecking] void framebufferTexture2D(in GLenum target, in
GLenum attachment, in GLenum textarget, in WebGLTexture texture, in GLint level)
raises(DOMException); |
| 516 [StrictTypeChecking] void frontFace(in unsigned long mode); | 530 [StrictTypeChecking] void frontFace(in GLenum mode); |
| 517 [StrictTypeChecking] void generateMipmap(in unsigned long target); | 531 [StrictTypeChecking] void generateMipmap(in GLenum target); |
| 518 | 532 |
| 519 [StrictTypeChecking] WebGLActiveInfo getActiveAttrib(in WebGLProgram program
, in unsigned long index) raises (DOMException); | 533 [StrictTypeChecking] WebGLActiveInfo getActiveAttrib(in WebGLProgram program
, in GLuint index) raises (DOMException); |
| 520 [StrictTypeChecking] WebGLActiveInfo getActiveUniform(in WebGLProgram progra
m, in unsigned long index) raises (DOMException); | 534 [StrictTypeChecking] WebGLActiveInfo getActiveUniform(in WebGLProgram progra
m, in GLuint index) raises (DOMException); |
| 521 | 535 |
| 522 [StrictTypeChecking, Custom] void getAttachedShaders(in WebGLProgram program
) raises (DOMException); | 536 [StrictTypeChecking, Custom] void getAttachedShaders(in WebGLProgram program
) raises (DOMException); |
| 523 | 537 |
| 524 [StrictTypeChecking] int getAttribLocation(in WebGLProgram program,
in DOMString name); | 538 [StrictTypeChecking] GLint getAttribLocation(in WebGLProgram program,
in DOMString name); |
| 525 | 539 |
| 526 // any getBufferParameter(in unsigned long target, in unsigned long pname) r
aises(DOMException); | 540 [StrictTypeChecking, Custom] any getBufferParameter(in GLenum target, in GLe
num pname); |
| 527 [StrictTypeChecking, Custom] void getBufferParameter(); | |
| 528 | 541 |
| 529 [StrictTypeChecking] WebGLContextAttributes getContextAttributes(); | 542 [StrictTypeChecking] WebGLContextAttributes getContextAttributes(); |
| 530 | 543 |
| 531 [StrictTypeChecking] unsigned long getError(); | 544 [StrictTypeChecking] GLenum getError(); |
| 532 | 545 |
| 533 // object getExtension(in DOMString name); | 546 // object getExtension(in DOMString name); |
| 534 [StrictTypeChecking, Custom] any getExtension(in DOMString name); | 547 [StrictTypeChecking, Custom] any getExtension(in DOMString name); |
| 535 | 548 |
| 536 // any getFramebufferAttachmentParameter(in unsigned long target, in unsigne
d long attachment, in unsigned long pname) raises(DOMException); | 549 [StrictTypeChecking, Custom] any getFramebufferAttachmentParameter(in GLenum
target, in GLenum attachment, in GLenum pname) raises(DOMException); |
| 537 [StrictTypeChecking, Custom] void getFramebufferAttachmentParameter(); | 550 [StrictTypeChecking, Custom] any getParameter(in GLenum pname) raises(DOMExc
eption); |
| 538 // any getParameter(in unsigned long pname) raises(DOMException); | 551 [StrictTypeChecking, Custom] any getProgramParameter(in WebGLProgram program
, in GLenum pname) raises(DOMException); |
| 539 [StrictTypeChecking, Custom] void getParameter(); | |
| 540 // any getProgramParameter(in WebGLProgram program, in unsigned long pname)
raises(DOMException); | |
| 541 [StrictTypeChecking, Custom] void getProgramParameter(); | |
| 542 [StrictTypeChecking, TreatReturnedNullStringAs=Null] DOMString getProgramInf
oLog(in WebGLProgram program) raises(DOMException); | 552 [StrictTypeChecking, TreatReturnedNullStringAs=Null] DOMString getProgramInf
oLog(in WebGLProgram program) raises(DOMException); |
| 543 // any getRenderbufferParameter(in unsigned long target, in unsigned long pn
ame) raises(DOMException); | 553 [StrictTypeChecking, Custom] any getRenderbufferParameter(in GLenum target,
in GLenum pname) raises(DOMException); |
| 544 [StrictTypeChecking, Custom] void getRenderbufferParameter(); | 554 [StrictTypeChecking, Custom] any getShaderParameter(in WebGLShader shader, i
n GLenum pname) raises(DOMException); |
| 545 // any getShaderParameter(in WebGLShader shader, in unsigned long pname) rai
ses(DOMException); | |
| 546 [StrictTypeChecking, Custom] void getShaderParameter() raises(DOMException); | |
| 547 | 555 |
| 548 [StrictTypeChecking, TreatReturnedNullStringAs=Null] DOMString getShaderI
nfoLog(in WebGLShader shader) raises(DOMException); | 556 [StrictTypeChecking, TreatReturnedNullStringAs=Null] DOMString getShaderI
nfoLog(in WebGLShader shader) raises(DOMException); |
| 549 | 557 |
| 550 [StrictTypeChecking] WebGLShaderPrecisionFormat getShaderPrecisionFormat(in
unsigned long shadertype, in unsigned long precisiontype) raises(DOMException); | 558 [StrictTypeChecking] WebGLShaderPrecisionFormat getShaderPrecisionFormat(in
GLenum shadertype, in GLenum precisiontype) raises(DOMException); |
| 551 | 559 |
| 552 [StrictTypeChecking, TreatReturnedNullStringAs=Null] DOMString getShaderS
ource(in WebGLShader shader) raises(DOMException); | 560 [StrictTypeChecking, TreatReturnedNullStringAs=Null] DOMString getShaderS
ource(in WebGLShader shader) raises(DOMException); |
| 553 | 561 |
| 554 [StrictTypeChecking, Custom] sequence<DOMString> getSupportedExtensions(); | 562 [StrictTypeChecking, Custom] sequence<DOMString> getSupportedExtensions(); |
| 555 | 563 |
| 556 // any getTexParameter(in unsigned long target, in unsigned long pname) rais
es(DOMException); | 564 [StrictTypeChecking, Custom] any getTexParameter(in GLenum target, in GLenum
pname) raises(DOMException); |
| 557 [StrictTypeChecking, Custom] void getTexParameter(); | |
| 558 | 565 |
| 559 // any getUniform(in WebGLProgram program, in WebGLUniformLocation location)
raises(DOMException); | 566 [StrictTypeChecking, Custom] any getUniform(in WebGLProgram program, in WebG
LUniformLocation location) raises(DOMException); |
| 560 [StrictTypeChecking, Custom] void getUniform(); | |
| 561 | 567 |
| 562 [StrictTypeChecking] WebGLUniformLocation getUniformLocation(in WebGLProgram
program, in DOMString name) raises(DOMException); | 568 [StrictTypeChecking] WebGLUniformLocation getUniformLocation(in WebGLProgram
program, in DOMString name) raises(DOMException); |
| 563 | 569 |
| 564 // any getVertexAttrib(in unsigned long index, in unsigned long pname) raise
s(DOMException); | 570 [StrictTypeChecking, Custom] any getVertexAttrib(in GLuint index, in GLenum
pname) raises(DOMException); |
| 565 [StrictTypeChecking, Custom] void getVertexAttrib(); | |
| 566 | 571 |
| 567 [StrictTypeChecking] long long getVertexAttribOffset(in unsigned long index,
in unsigned long pname); | 572 [StrictTypeChecking] GLsizeiptr getVertexAttribOffset(in GLuint index, in GL
enum pname); |
| 568 | 573 |
| 569 [StrictTypeChecking] void hint(in unsigned long target, in unsigned
long mode); | 574 [StrictTypeChecking] void hint(in GLenum target, in GLenum mode); |
| 570 [StrictTypeChecking] boolean isBuffer(in WebGLBuffer buffer); | 575 [StrictTypeChecking] GLboolean isBuffer(in WebGLBuffer buffer); |
| 571 [StrictTypeChecking] boolean isContextLost(); | 576 [StrictTypeChecking] GLboolean isContextLost(); |
| 572 [StrictTypeChecking] boolean isEnabled(in unsigned long cap); | 577 [StrictTypeChecking] GLboolean isEnabled(in GLenum cap); |
| 573 [StrictTypeChecking] boolean isFramebuffer(in WebGLFramebuffer framebuf
fer); | 578 [StrictTypeChecking] GLboolean isFramebuffer(in WebGLFramebuffer framebuf
fer); |
| 574 [StrictTypeChecking] boolean isProgram(in WebGLProgram program); | 579 [StrictTypeChecking] GLboolean isProgram(in WebGLProgram program); |
| 575 [StrictTypeChecking] boolean isRenderbuffer(in WebGLRenderbuffer render
buffer); | 580 [StrictTypeChecking] GLboolean isRenderbuffer(in WebGLRenderbuffer render
buffer); |
| 576 [StrictTypeChecking] boolean isShader(in WebGLShader shader); | 581 [StrictTypeChecking] GLboolean isShader(in WebGLShader shader); |
| 577 [StrictTypeChecking] boolean isTexture(in WebGLTexture texture); | 582 [StrictTypeChecking] GLboolean isTexture(in WebGLTexture texture); |
| 578 [StrictTypeChecking] void lineWidth(in float width); | 583 [StrictTypeChecking] void lineWidth(in GLfloat width); |
| 579 [StrictTypeChecking] void linkProgram(in WebGLProgram program) raise
s(DOMException); | 584 [StrictTypeChecking] void linkProgram(in WebGLProgram program) raise
s(DOMException); |
| 580 [StrictTypeChecking] void pixelStorei(in unsigned long pname, in lon
g param); | 585 [StrictTypeChecking] void pixelStorei(in GLenum pname, in GLint para
m); |
| 581 [StrictTypeChecking] void polygonOffset(in float factor, in float un
its); | 586 [StrictTypeChecking] void polygonOffset(in GLfloat factor, in GLfloa
t units); |
| 582 | 587 |
| 583 [StrictTypeChecking] void readPixels(in long x, in long y, in long w
idth, in long height, in unsigned long format, in unsigned long type, in ArrayBu
fferView pixels) raises(DOMException); | 588 [StrictTypeChecking] void readPixels(in GLint x, in GLint y, in GLsi
zei width, in GLsizei height, in GLenum format, in GLenum type, in ArrayBufferVi
ew pixels) raises(DOMException); |
| 584 | 589 |
| 585 [StrictTypeChecking] void releaseShaderCompiler(); | 590 [StrictTypeChecking] void releaseShaderCompiler(); |
| 586 [StrictTypeChecking] void renderbufferStorage(in unsigned long targe
t, in unsigned long internalformat, in long width, in long height); | 591 [StrictTypeChecking] void renderbufferStorage(in GLenum target, in G
Lenum internalformat, in GLsizei width, in GLsizei height); |
| 587 [StrictTypeChecking] void sampleCoverage(in float value, in boolean
invert); | 592 [StrictTypeChecking] void sampleCoverage(in GLclampf value, in GLboo
lean invert); |
| 588 [StrictTypeChecking] void scissor(in long x, in long y, in long widt
h, in long height); | 593 [StrictTypeChecking] void scissor(in GLint x, in GLint y, in GLsizei
width, in GLsizei height); |
| 589 [StrictTypeChecking] void shaderSource(in WebGLShader shader, in DOM
String string) raises(DOMException); | 594 [StrictTypeChecking] void shaderSource(in WebGLShader shader, in DOM
String string) raises(DOMException); |
| 590 [StrictTypeChecking] void stencilFunc(in unsigned long func, in long
ref, in unsigned long mask); | 595 [StrictTypeChecking] void stencilFunc(in GLenum func, in GLint ref,
in GLuint mask); |
| 591 [StrictTypeChecking] void stencilFuncSeparate(in unsigned long face,
in unsigned long func, in long ref, in unsigned long mask); | 596 [StrictTypeChecking] void stencilFuncSeparate(in GLenum face, in GLe
num func, in GLint ref, in GLuint mask); |
| 592 [StrictTypeChecking] void stencilMask(in unsigned long mask); | 597 [StrictTypeChecking] void stencilMask(in GLuint mask); |
| 593 [StrictTypeChecking] void stencilMaskSeparate(in unsigned long face,
in unsigned long mask); | 598 [StrictTypeChecking] void stencilMaskSeparate(in GLenum face, in GLu
int mask); |
| 594 [StrictTypeChecking] void stencilOp(in unsigned long fail, in unsign
ed long zfail, in unsigned long zpass); | 599 [StrictTypeChecking] void stencilOp(in GLenum fail, in GLenum zfail,
in GLenum zpass); |
| 595 [StrictTypeChecking] void stencilOpSeparate(in unsigned long face, i
n unsigned long fail, in unsigned long zfail, in unsigned long zpass); | 600 [StrictTypeChecking] void stencilOpSeparate(in GLenum face, in GLenu
m fail, in GLenum zfail, in GLenum zpass); |
| 596 | 601 |
| 597 [StrictTypeChecking] void texParameterf(in unsigned long target, in
unsigned long pname, in float param); | 602 [StrictTypeChecking] void texParameterf(in GLenum target, in GLenum
pname, in GLfloat param); |
| 598 [StrictTypeChecking] void texParameteri(in unsigned long target, in
unsigned long pname, in long param); | 603 [StrictTypeChecking] void texParameteri(in GLenum target, in GLenum
pname, in GLint param); |
| 599 | 604 |
| 600 // Supported forms: | 605 // Supported forms: |
| 601 [StrictTypeChecking] void texImage2D(in unsigned long target, in lon
g level, in unsigned long internalformat, in long width, in long height, | 606 [StrictTypeChecking] void texImage2D(in GLenum target, in GLint leve
l, in GLenum internalformat, in GLsizei width, in GLsizei height, |
| 602 in long border, in unsigned lon
g format, in unsigned long type, in ArrayBufferView? pixels) raises (DOMExceptio
n); | 607 in GLint border, in GLenum form
at, in GLenum type, in ArrayBufferView? pixels) raises (DOMException); |
| 603 [StrictTypeChecking] void texImage2D(in unsigned long target, in lon
g level, in unsigned long internalformat, | 608 [StrictTypeChecking] void texImage2D(in GLenum target, in GLint leve
l, in GLenum internalformat, |
| 604 in unsigned long format, in uns
igned long type, in ImageData? pixels) raises (DOMException); | 609 in GLenum format, in GLenum typ
e, in ImageData? pixels) raises (DOMException); |
| 605 [StrictTypeChecking] void texImage2D(in unsigned long target, in lon
g level, in unsigned long internalformat, | 610 [StrictTypeChecking] void texImage2D(in GLenum target, in GLint leve
l, in GLenum internalformat, |
| 606 in unsigned long format, in uns
igned long type, in HTMLImageElement? image) raises (DOMException); | 611 in GLenum format, in GLenum typ
e, in HTMLImageElement? image) raises (DOMException); |
| 607 [StrictTypeChecking] void texImage2D(in unsigned long target, in lon
g level, in unsigned long internalformat, | 612 [StrictTypeChecking] void texImage2D(in GLenum target, in GLint leve
l, in GLenum internalformat, |
| 608 in unsigned long format, in uns
igned long type, in HTMLCanvasElement? canvas) raises (DOMException); | 613 in GLenum format, in GLenum typ
e, in HTMLCanvasElement? canvas) raises (DOMException); |
| 609 #if defined(ENABLE_VIDEO) && ENABLE_VIDEO | 614 #if defined(ENABLE_VIDEO) && ENABLE_VIDEO |
| 610 [StrictTypeChecking] void texImage2D(in unsigned long target, in lon
g level, in unsigned long internalformat, | 615 [StrictTypeChecking] void texImage2D(in GLenum target, in GLint leve
l, in GLenum internalformat, |
| 611 in unsigned long format, in uns
igned long type, in HTMLVideoElement? video) raises (DOMException); | 616 in GLenum format, in GLenum typ
e, in HTMLVideoElement? video) raises (DOMException); |
| 612 #endif | 617 #endif |
| 613 | 618 |
| 614 [StrictTypeChecking] void texSubImage2D(in unsigned long target, in
long level, in long xoffset, in long yoffset, | 619 [StrictTypeChecking] void texSubImage2D(in GLenum target, in GLint l
evel, in GLint xoffset, in GLint yoffset, |
| 615 in long width, in long heigh
t, | 620 in GLsizei width, in GLsizei
height, |
| 616 in unsigned long format, in
unsigned long type, in ArrayBufferView? pixels) raises (DOMException); | 621 in GLenum format, in GLenum
type, in ArrayBufferView? pixels) raises (DOMException); |
| 617 [StrictTypeChecking] void texSubImage2D(in unsigned long target, in
long level, in long xoffset, in long yoffset, | 622 [StrictTypeChecking] void texSubImage2D(in GLenum target, in GLint l
evel, in GLint xoffset, in GLint yoffset, |
| 618 in unsigned long format, in
unsigned long type, in ImageData? pixels) raises (DOMException); | 623 in GLenum format, in GLenum
type, in ImageData? pixels) raises (DOMException); |
| 619 [StrictTypeChecking] void texSubImage2D(in unsigned long target, in
long level, in long xoffset, in long yoffset, | 624 [StrictTypeChecking] void texSubImage2D(in GLenum target, in GLint l
evel, in GLint xoffset, in GLint yoffset, |
| 620 in unsigned long format, in
unsigned long type, in HTMLImageElement? image) raises (DOMException); | 625 in GLenum format, in GLenum
type, in HTMLImageElement? image) raises (DOMException); |
| 621 [StrictTypeChecking] void texSubImage2D(in unsigned long target, in
long level, in long xoffset, in long yoffset, | 626 [StrictTypeChecking] void texSubImage2D(in GLenum target, in GLint l
evel, in GLint xoffset, in GLint yoffset, |
| 622 in unsigned long format, in
unsigned long type, in HTMLCanvasElement? canvas) raises (DOMException); | 627 in GLenum format, in GLenum
type, in HTMLCanvasElement? canvas) raises (DOMException); |
| 623 #if defined(ENABLE_VIDEO) && ENABLE_VIDEO | 628 #if defined(ENABLE_VIDEO) && ENABLE_VIDEO |
| 624 [StrictTypeChecking] void texSubImage2D(in unsigned long target, in
long level, in long xoffset, in long yoffset, | 629 [StrictTypeChecking] void texSubImage2D(in GLenum target, in GLint l
evel, in GLint xoffset, in GLint yoffset, |
| 625 in unsigned long format, in
unsigned long type, in HTMLVideoElement? video) raises (DOMException); | 630 in GLenum format, in GLenum
type, in HTMLVideoElement? video) raises (DOMException); |
| 626 #endif | 631 #endif |
| 627 | 632 |
| 628 [StrictTypeChecking] void uniform1f(in WebGLUniformLocation location, in flo
at x) raises(DOMException); | 633 [StrictTypeChecking] void uniform1f(in WebGLUniformLocation location, in GLf
loat x) raises(DOMException); |
| 629 [StrictTypeChecking, Custom] void uniform1fv(in WebGLUniformLocation locatio
n, in Float32Array v) raises(DOMException); | 634 [StrictTypeChecking, Custom] void uniform1fv(in WebGLUniformLocation locatio
n, in Float32Array v) raises(DOMException); |
| 630 [StrictTypeChecking] void uniform1i(in WebGLUniformLocation location, in lon
g x) raises(DOMException); | 635 [StrictTypeChecking] void uniform1i(in WebGLUniformLocation location, in GLi
nt x) raises(DOMException); |
| 631 [StrictTypeChecking, Custom] void uniform1iv(in WebGLUniformLocation locatio
n, in Int32Array v) raises(DOMException); | 636 [StrictTypeChecking, Custom] void uniform1iv(in WebGLUniformLocation locatio
n, in Int32Array v) raises(DOMException); |
| 632 [StrictTypeChecking] void uniform2f(in WebGLUniformLocation location, in flo
at x, in float y) raises(DOMException); | 637 [StrictTypeChecking] void uniform2f(in WebGLUniformLocation location, in GLf
loat x, in GLfloat y) raises(DOMException); |
| 633 [StrictTypeChecking, Custom] void uniform2fv(in WebGLUniformLocation locatio
n, in Float32Array v) raises(DOMException); | 638 [StrictTypeChecking, Custom] void uniform2fv(in WebGLUniformLocation locatio
n, in Float32Array v) raises(DOMException); |
| 634 [StrictTypeChecking] void uniform2i(in WebGLUniformLocation location, in lon
g x, in long y) raises(DOMException); | 639 [StrictTypeChecking] void uniform2i(in WebGLUniformLocation location, in GLi
nt x, in GLint y) raises(DOMException); |
| 635 [StrictTypeChecking, Custom] void uniform2iv(in WebGLUniformLocation locatio
n, in Int32Array v) raises(DOMException); | 640 [StrictTypeChecking, Custom] void uniform2iv(in WebGLUniformLocation locatio
n, in Int32Array v) raises(DOMException); |
| 636 [StrictTypeChecking] void uniform3f(in WebGLUniformLocation location, in flo
at x, in float y, in float z) raises(DOMException); | 641 [StrictTypeChecking] void uniform3f(in WebGLUniformLocation location, in GLf
loat x, in GLfloat y, in GLfloat z) raises(DOMException); |
| 637 [StrictTypeChecking, Custom] void uniform3fv(in WebGLUniformLocation locatio
n, in Float32Array v) raises(DOMException); | 642 [StrictTypeChecking, Custom] void uniform3fv(in WebGLUniformLocation locatio
n, in Float32Array v) raises(DOMException); |
| 638 [StrictTypeChecking] void uniform3i(in WebGLUniformLocation location, in lon
g x, in long y, in long z) raises(DOMException); | 643 [StrictTypeChecking] void uniform3i(in WebGLUniformLocation location, in GLi
nt x, in GLint y, in GLint z) raises(DOMException); |
| 639 [StrictTypeChecking, Custom] void uniform3iv(in WebGLUniformLocation locatio
n, in Int32Array v) raises(DOMException); | 644 [StrictTypeChecking, Custom] void uniform3iv(in WebGLUniformLocation locatio
n, in Int32Array v) raises(DOMException); |
| 640 [StrictTypeChecking] void uniform4f(in WebGLUniformLocation location, in flo
at x, in float y, in float z, in float w) raises(DOMException); | 645 [StrictTypeChecking] void uniform4f(in WebGLUniformLocation location, in GLf
loat x, in GLfloat y, in GLfloat z, in GLfloat w) raises(DOMException); |
| 641 [StrictTypeChecking, Custom] void uniform4fv(in WebGLUniformLocation locatio
n, in Float32Array v) raises(DOMException); | 646 [StrictTypeChecking, Custom] void uniform4fv(in WebGLUniformLocation locatio
n, in Float32Array v) raises(DOMException); |
| 642 [StrictTypeChecking] void uniform4i(in WebGLUniformLocation location, in lon
g x, in long y, in long z, in long w) raises(DOMException); | 647 [StrictTypeChecking] void uniform4i(in WebGLUniformLocation location, in GLi
nt x, in GLint y, in GLint z, in GLint w) raises(DOMException); |
| 643 [StrictTypeChecking, Custom] void uniform4iv(in WebGLUniformLocation locatio
n, in Int32Array v) raises(DOMException); | 648 [StrictTypeChecking, Custom] void uniform4iv(in WebGLUniformLocation locatio
n, in Int32Array v) raises(DOMException); |
| 644 | 649 |
| 645 [StrictTypeChecking, Custom] void uniformMatrix2fv(in WebGLUniformLocation l
ocation, in boolean transpose, in Float32Array array) raises(DOMException); | 650 [StrictTypeChecking, Custom] void uniformMatrix2fv(in WebGLUniformLocation l
ocation, in GLboolean transpose, in Float32Array array) raises(DOMException); |
| 646 [StrictTypeChecking, Custom] void uniformMatrix3fv(in WebGLUniformLocation l
ocation, in boolean transpose, in Float32Array array) raises(DOMException); | 651 [StrictTypeChecking, Custom] void uniformMatrix3fv(in WebGLUniformLocation l
ocation, in GLboolean transpose, in Float32Array array) raises(DOMException); |
| 647 [StrictTypeChecking, Custom] void uniformMatrix4fv(in WebGLUniformLocation l
ocation, in boolean transpose, in Float32Array array) raises(DOMException); | 652 [StrictTypeChecking, Custom] void uniformMatrix4fv(in WebGLUniformLocation l
ocation, in GLboolean transpose, in Float32Array array) raises(DOMException); |
| 648 | 653 |
| 649 [StrictTypeChecking] void useProgram(in WebGLProgram program) raises
(DOMException); | 654 [StrictTypeChecking] void useProgram(in WebGLProgram program) raises
(DOMException); |
| 650 [StrictTypeChecking] void validateProgram(in WebGLProgram program) r
aises(DOMException); | 655 [StrictTypeChecking] void validateProgram(in WebGLProgram program) r
aises(DOMException); |
| 651 | 656 |
| 652 [StrictTypeChecking] void vertexAttrib1f(in unsigned long indx, in f
loat x); | 657 [StrictTypeChecking] void vertexAttrib1f(in GLuint indx, in GLfloat
x); |
| 653 [StrictTypeChecking, Custom] void vertexAttrib1fv(in unsigned long i
ndx, in Float32Array values); | 658 [StrictTypeChecking, Custom] void vertexAttrib1fv(in GLuint indx, in Float32
Array values); |
| 654 [StrictTypeChecking] void vertexAttrib2f(in unsigned long indx, in f
loat x, in float y); | 659 [StrictTypeChecking] void vertexAttrib2f(in GLuint indx, in GLfloat
x, in GLfloat y); |
| 655 [StrictTypeChecking, Custom] void vertexAttrib2fv(in unsigned long i
ndx, in Float32Array values); | 660 [StrictTypeChecking, Custom] void vertexAttrib2fv(in GLuint indx, in Float32
Array values); |
| 656 [StrictTypeChecking] void vertexAttrib3f(in unsigned long indx, in f
loat x, in float y, in float z); | 661 [StrictTypeChecking] void vertexAttrib3f(in GLuint indx, in GLfloat
x, in GLfloat y, in GLfloat z); |
| 657 [StrictTypeChecking, Custom] void vertexAttrib3fv(in unsigned long i
ndx, in Float32Array values); | 662 [StrictTypeChecking, Custom] void vertexAttrib3fv(in GLuint indx, in Float32
Array values); |
| 658 [StrictTypeChecking] void vertexAttrib4f(in unsigned long indx, in f
loat x, in float y, in float z, in float w); | 663 [StrictTypeChecking] void vertexAttrib4f(in GLuint indx, in GLfloat
x, in GLfloat y, in GLfloat z, in GLfloat w); |
| 659 [StrictTypeChecking, Custom] void vertexAttrib4fv(in unsigned long i
ndx, in Float32Array values); | 664 [StrictTypeChecking, Custom] void vertexAttrib4fv(in GLuint indx, in Float32
Array values); |
| 660 [StrictTypeChecking] void vertexAttribPointer(in unsigned long indx,
in long size, in unsigned long type, in boolean normalized, | 665 [StrictTypeChecking] void vertexAttribPointer(in GLuint indx, in GLi
nt size, in GLenum type, in GLboolean normalized, |
| 661 in long stride, in lon
g long offset) raises(DOMException); | 666 in GLsizei stride, in
GLintptr offset) raises(DOMException); |
| 662 | 667 |
| 663 [StrictTypeChecking] void viewport(in long x, in long y, in long wid
th, in long height); | 668 [StrictTypeChecking] void viewport(in GLint x, in GLint y, in GLsize
i width, in GLsizei height); |
| 664 }; | 669 }; |
| OLD | NEW |