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