1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501
|
/*
* Copyright (C)2005-2015 Haxe Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
// This file is generated from mozilla/WebGLRenderingContext.webidl line 82:0. Do not edit!
package js.html.webgl;
@:native("WebGLRenderingContext")
extern class RenderingContext
{
static inline var DEPTH_BUFFER_BIT : Int = 256;
static inline var STENCIL_BUFFER_BIT : Int = 1024;
static inline var COLOR_BUFFER_BIT : Int = 16384;
static inline var POINTS : Int = 0;
static inline var LINES : Int = 1;
static inline var LINE_LOOP : Int = 2;
static inline var LINE_STRIP : Int = 3;
static inline var TRIANGLES : Int = 4;
static inline var TRIANGLE_STRIP : Int = 5;
static inline var TRIANGLE_FAN : Int = 6;
static inline var ZERO : Int = 0;
static inline var ONE : Int = 1;
static inline var SRC_COLOR : Int = 768;
static inline var ONE_MINUS_SRC_COLOR : Int = 769;
static inline var SRC_ALPHA : Int = 770;
static inline var ONE_MINUS_SRC_ALPHA : Int = 771;
static inline var DST_ALPHA : Int = 772;
static inline var ONE_MINUS_DST_ALPHA : Int = 773;
static inline var DST_COLOR : Int = 774;
static inline var ONE_MINUS_DST_COLOR : Int = 775;
static inline var SRC_ALPHA_SATURATE : Int = 776;
static inline var FUNC_ADD : Int = 32774;
static inline var BLEND_EQUATION : Int = 32777;
static inline var BLEND_EQUATION_RGB : Int = 32777;
static inline var BLEND_EQUATION_ALPHA : Int = 34877;
static inline var FUNC_SUBTRACT : Int = 32778;
static inline var FUNC_REVERSE_SUBTRACT : Int = 32779;
static inline var BLEND_DST_RGB : Int = 32968;
static inline var BLEND_SRC_RGB : Int = 32969;
static inline var BLEND_DST_ALPHA : Int = 32970;
static inline var BLEND_SRC_ALPHA : Int = 32971;
static inline var CONSTANT_COLOR : Int = 32769;
static inline var ONE_MINUS_CONSTANT_COLOR : Int = 32770;
static inline var CONSTANT_ALPHA : Int = 32771;
static inline var ONE_MINUS_CONSTANT_ALPHA : Int = 32772;
static inline var BLEND_COLOR : Int = 32773;
static inline var ARRAY_BUFFER : Int = 34962;
static inline var ELEMENT_ARRAY_BUFFER : Int = 34963;
static inline var ARRAY_BUFFER_BINDING : Int = 34964;
static inline var ELEMENT_ARRAY_BUFFER_BINDING : Int = 34965;
static inline var STREAM_DRAW : Int = 35040;
static inline var STATIC_DRAW : Int = 35044;
static inline var DYNAMIC_DRAW : Int = 35048;
static inline var BUFFER_SIZE : Int = 34660;
static inline var BUFFER_USAGE : Int = 34661;
static inline var CURRENT_VERTEX_ATTRIB : Int = 34342;
static inline var FRONT : Int = 1028;
static inline var BACK : Int = 1029;
static inline var FRONT_AND_BACK : Int = 1032;
static inline var CULL_FACE : Int = 2884;
static inline var BLEND : Int = 3042;
static inline var DITHER : Int = 3024;
static inline var STENCIL_TEST : Int = 2960;
static inline var DEPTH_TEST : Int = 2929;
static inline var SCISSOR_TEST : Int = 3089;
static inline var POLYGON_OFFSET_FILL : Int = 32823;
static inline var SAMPLE_ALPHA_TO_COVERAGE : Int = 32926;
static inline var SAMPLE_COVERAGE : Int = 32928;
static inline var NO_ERROR : Int = 0;
static inline var INVALID_ENUM : Int = 1280;
static inline var INVALID_VALUE : Int = 1281;
static inline var INVALID_OPERATION : Int = 1282;
static inline var OUT_OF_MEMORY : Int = 1285;
static inline var CW : Int = 2304;
static inline var CCW : Int = 2305;
static inline var LINE_WIDTH : Int = 2849;
static inline var ALIASED_POINT_SIZE_RANGE : Int = 33901;
static inline var ALIASED_LINE_WIDTH_RANGE : Int = 33902;
static inline var CULL_FACE_MODE : Int = 2885;
static inline var FRONT_FACE : Int = 2886;
static inline var DEPTH_RANGE : Int = 2928;
static inline var DEPTH_WRITEMASK : Int = 2930;
static inline var DEPTH_CLEAR_VALUE : Int = 2931;
static inline var DEPTH_FUNC : Int = 2932;
static inline var STENCIL_CLEAR_VALUE : Int = 2961;
static inline var STENCIL_FUNC : Int = 2962;
static inline var STENCIL_FAIL : Int = 2964;
static inline var STENCIL_PASS_DEPTH_FAIL : Int = 2965;
static inline var STENCIL_PASS_DEPTH_PASS : Int = 2966;
static inline var STENCIL_REF : Int = 2967;
static inline var STENCIL_VALUE_MASK : Int = 2963;
static inline var STENCIL_WRITEMASK : Int = 2968;
static inline var STENCIL_BACK_FUNC : Int = 34816;
static inline var STENCIL_BACK_FAIL : Int = 34817;
static inline var STENCIL_BACK_PASS_DEPTH_FAIL : Int = 34818;
static inline var STENCIL_BACK_PASS_DEPTH_PASS : Int = 34819;
static inline var STENCIL_BACK_REF : Int = 36003;
static inline var STENCIL_BACK_VALUE_MASK : Int = 36004;
static inline var STENCIL_BACK_WRITEMASK : Int = 36005;
static inline var VIEWPORT : Int = 2978;
static inline var SCISSOR_BOX : Int = 3088;
static inline var COLOR_CLEAR_VALUE : Int = 3106;
static inline var COLOR_WRITEMASK : Int = 3107;
static inline var UNPACK_ALIGNMENT : Int = 3317;
static inline var PACK_ALIGNMENT : Int = 3333;
static inline var MAX_TEXTURE_SIZE : Int = 3379;
static inline var MAX_VIEWPORT_DIMS : Int = 3386;
static inline var SUBPIXEL_BITS : Int = 3408;
static inline var RED_BITS : Int = 3410;
static inline var GREEN_BITS : Int = 3411;
static inline var BLUE_BITS : Int = 3412;
static inline var ALPHA_BITS : Int = 3413;
static inline var DEPTH_BITS : Int = 3414;
static inline var STENCIL_BITS : Int = 3415;
static inline var POLYGON_OFFSET_UNITS : Int = 10752;
static inline var POLYGON_OFFSET_FACTOR : Int = 32824;
static inline var TEXTURE_BINDING_2D : Int = 32873;
static inline var SAMPLE_BUFFERS : Int = 32936;
static inline var SAMPLES : Int = 32937;
static inline var SAMPLE_COVERAGE_VALUE : Int = 32938;
static inline var SAMPLE_COVERAGE_INVERT : Int = 32939;
static inline var COMPRESSED_TEXTURE_FORMATS : Int = 34467;
static inline var DONT_CARE : Int = 4352;
static inline var FASTEST : Int = 4353;
static inline var NICEST : Int = 4354;
static inline var GENERATE_MIPMAP_HINT : Int = 33170;
static inline var BYTE : Int = 5120;
static inline var UNSIGNED_BYTE : Int = 5121;
static inline var SHORT : Int = 5122;
static inline var UNSIGNED_SHORT : Int = 5123;
static inline var INT : Int = 5124;
static inline var UNSIGNED_INT : Int = 5125;
static inline var FLOAT : Int = 5126;
static inline var DEPTH_COMPONENT : Int = 6402;
static inline var ALPHA : Int = 6406;
static inline var RGB : Int = 6407;
static inline var RGBA : Int = 6408;
static inline var LUMINANCE : Int = 6409;
static inline var LUMINANCE_ALPHA : Int = 6410;
static inline var UNSIGNED_SHORT_4_4_4_4 : Int = 32819;
static inline var UNSIGNED_SHORT_5_5_5_1 : Int = 32820;
static inline var UNSIGNED_SHORT_5_6_5 : Int = 33635;
static inline var FRAGMENT_SHADER : Int = 35632;
static inline var VERTEX_SHADER : Int = 35633;
static inline var MAX_VERTEX_ATTRIBS : Int = 34921;
static inline var MAX_VERTEX_UNIFORM_VECTORS : Int = 36347;
static inline var MAX_VARYING_VECTORS : Int = 36348;
static inline var MAX_COMBINED_TEXTURE_IMAGE_UNITS : Int = 35661;
static inline var MAX_VERTEX_TEXTURE_IMAGE_UNITS : Int = 35660;
static inline var MAX_TEXTURE_IMAGE_UNITS : Int = 34930;
static inline var MAX_FRAGMENT_UNIFORM_VECTORS : Int = 36349;
static inline var SHADER_TYPE : Int = 35663;
static inline var DELETE_STATUS : Int = 35712;
static inline var LINK_STATUS : Int = 35714;
static inline var VALIDATE_STATUS : Int = 35715;
static inline var ATTACHED_SHADERS : Int = 35717;
static inline var ACTIVE_UNIFORMS : Int = 35718;
static inline var ACTIVE_ATTRIBUTES : Int = 35721;
static inline var SHADING_LANGUAGE_VERSION : Int = 35724;
static inline var CURRENT_PROGRAM : Int = 35725;
static inline var NEVER : Int = 512;
static inline var LESS : Int = 513;
static inline var EQUAL : Int = 514;
static inline var LEQUAL : Int = 515;
static inline var GREATER : Int = 516;
static inline var NOTEQUAL : Int = 517;
static inline var GEQUAL : Int = 518;
static inline var ALWAYS : Int = 519;
static inline var KEEP : Int = 7680;
static inline var REPLACE : Int = 7681;
static inline var INCR : Int = 7682;
static inline var DECR : Int = 7683;
static inline var INVERT : Int = 5386;
static inline var INCR_WRAP : Int = 34055;
static inline var DECR_WRAP : Int = 34056;
static inline var VENDOR : Int = 7936;
static inline var RENDERER : Int = 7937;
static inline var VERSION : Int = 7938;
static inline var NEAREST : Int = 9728;
static inline var LINEAR : Int = 9729;
static inline var NEAREST_MIPMAP_NEAREST : Int = 9984;
static inline var LINEAR_MIPMAP_NEAREST : Int = 9985;
static inline var NEAREST_MIPMAP_LINEAR : Int = 9986;
static inline var LINEAR_MIPMAP_LINEAR : Int = 9987;
static inline var TEXTURE_MAG_FILTER : Int = 10240;
static inline var TEXTURE_MIN_FILTER : Int = 10241;
static inline var TEXTURE_WRAP_S : Int = 10242;
static inline var TEXTURE_WRAP_T : Int = 10243;
static inline var TEXTURE_2D : Int = 3553;
static inline var TEXTURE : Int = 5890;
static inline var TEXTURE_CUBE_MAP : Int = 34067;
static inline var TEXTURE_BINDING_CUBE_MAP : Int = 34068;
static inline var TEXTURE_CUBE_MAP_POSITIVE_X : Int = 34069;
static inline var TEXTURE_CUBE_MAP_NEGATIVE_X : Int = 34070;
static inline var TEXTURE_CUBE_MAP_POSITIVE_Y : Int = 34071;
static inline var TEXTURE_CUBE_MAP_NEGATIVE_Y : Int = 34072;
static inline var TEXTURE_CUBE_MAP_POSITIVE_Z : Int = 34073;
static inline var TEXTURE_CUBE_MAP_NEGATIVE_Z : Int = 34074;
static inline var MAX_CUBE_MAP_TEXTURE_SIZE : Int = 34076;
static inline var TEXTURE0 : Int = 33984;
static inline var TEXTURE1 : Int = 33985;
static inline var TEXTURE2 : Int = 33986;
static inline var TEXTURE3 : Int = 33987;
static inline var TEXTURE4 : Int = 33988;
static inline var TEXTURE5 : Int = 33989;
static inline var TEXTURE6 : Int = 33990;
static inline var TEXTURE7 : Int = 33991;
static inline var TEXTURE8 : Int = 33992;
static inline var TEXTURE9 : Int = 33993;
static inline var TEXTURE10 : Int = 33994;
static inline var TEXTURE11 : Int = 33995;
static inline var TEXTURE12 : Int = 33996;
static inline var TEXTURE13 : Int = 33997;
static inline var TEXTURE14 : Int = 33998;
static inline var TEXTURE15 : Int = 33999;
static inline var TEXTURE16 : Int = 34000;
static inline var TEXTURE17 : Int = 34001;
static inline var TEXTURE18 : Int = 34002;
static inline var TEXTURE19 : Int = 34003;
static inline var TEXTURE20 : Int = 34004;
static inline var TEXTURE21 : Int = 34005;
static inline var TEXTURE22 : Int = 34006;
static inline var TEXTURE23 : Int = 34007;
static inline var TEXTURE24 : Int = 34008;
static inline var TEXTURE25 : Int = 34009;
static inline var TEXTURE26 : Int = 34010;
static inline var TEXTURE27 : Int = 34011;
static inline var TEXTURE28 : Int = 34012;
static inline var TEXTURE29 : Int = 34013;
static inline var TEXTURE30 : Int = 34014;
static inline var TEXTURE31 : Int = 34015;
static inline var ACTIVE_TEXTURE : Int = 34016;
static inline var REPEAT : Int = 10497;
static inline var CLAMP_TO_EDGE : Int = 33071;
static inline var MIRRORED_REPEAT : Int = 33648;
static inline var FLOAT_VEC2 : Int = 35664;
static inline var FLOAT_VEC3 : Int = 35665;
static inline var FLOAT_VEC4 : Int = 35666;
static inline var INT_VEC2 : Int = 35667;
static inline var INT_VEC3 : Int = 35668;
static inline var INT_VEC4 : Int = 35669;
static inline var BOOL : Int = 35670;
static inline var BOOL_VEC2 : Int = 35671;
static inline var BOOL_VEC3 : Int = 35672;
static inline var BOOL_VEC4 : Int = 35673;
static inline var FLOAT_MAT2 : Int = 35674;
static inline var FLOAT_MAT3 : Int = 35675;
static inline var FLOAT_MAT4 : Int = 35676;
static inline var SAMPLER_2D : Int = 35678;
static inline var SAMPLER_CUBE : Int = 35680;
static inline var VERTEX_ATTRIB_ARRAY_ENABLED : Int = 34338;
static inline var VERTEX_ATTRIB_ARRAY_SIZE : Int = 34339;
static inline var VERTEX_ATTRIB_ARRAY_STRIDE : Int = 34340;
static inline var VERTEX_ATTRIB_ARRAY_TYPE : Int = 34341;
static inline var VERTEX_ATTRIB_ARRAY_NORMALIZED : Int = 34922;
static inline var VERTEX_ATTRIB_ARRAY_POINTER : Int = 34373;
static inline var VERTEX_ATTRIB_ARRAY_BUFFER_BINDING : Int = 34975;
static inline var IMPLEMENTATION_COLOR_READ_TYPE : Int = 35738;
static inline var IMPLEMENTATION_COLOR_READ_FORMAT : Int = 35739;
static inline var COMPILE_STATUS : Int = 35713;
static inline var LOW_FLOAT : Int = 36336;
static inline var MEDIUM_FLOAT : Int = 36337;
static inline var HIGH_FLOAT : Int = 36338;
static inline var LOW_INT : Int = 36339;
static inline var MEDIUM_INT : Int = 36340;
static inline var HIGH_INT : Int = 36341;
static inline var FRAMEBUFFER : Int = 36160;
static inline var RENDERBUFFER : Int = 36161;
static inline var RGBA4 : Int = 32854;
static inline var RGB5_A1 : Int = 32855;
static inline var RGB565 : Int = 36194;
static inline var DEPTH_COMPONENT16 : Int = 33189;
static inline var STENCIL_INDEX : Int = 6401;
static inline var STENCIL_INDEX8 : Int = 36168;
static inline var DEPTH_STENCIL : Int = 34041;
static inline var RENDERBUFFER_WIDTH : Int = 36162;
static inline var RENDERBUFFER_HEIGHT : Int = 36163;
static inline var RENDERBUFFER_INTERNAL_FORMAT : Int = 36164;
static inline var RENDERBUFFER_RED_SIZE : Int = 36176;
static inline var RENDERBUFFER_GREEN_SIZE : Int = 36177;
static inline var RENDERBUFFER_BLUE_SIZE : Int = 36178;
static inline var RENDERBUFFER_ALPHA_SIZE : Int = 36179;
static inline var RENDERBUFFER_DEPTH_SIZE : Int = 36180;
static inline var RENDERBUFFER_STENCIL_SIZE : Int = 36181;
static inline var FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE : Int = 36048;
static inline var FRAMEBUFFER_ATTACHMENT_OBJECT_NAME : Int = 36049;
static inline var FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL : Int = 36050;
static inline var FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE : Int = 36051;
static inline var COLOR_ATTACHMENT0 : Int = 36064;
static inline var DEPTH_ATTACHMENT : Int = 36096;
static inline var STENCIL_ATTACHMENT : Int = 36128;
static inline var DEPTH_STENCIL_ATTACHMENT : Int = 33306;
static inline var NONE : Int = 0;
static inline var FRAMEBUFFER_COMPLETE : Int = 36053;
static inline var FRAMEBUFFER_INCOMPLETE_ATTACHMENT : Int = 36054;
static inline var FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT : Int = 36055;
static inline var FRAMEBUFFER_INCOMPLETE_DIMENSIONS : Int = 36057;
static inline var FRAMEBUFFER_UNSUPPORTED : Int = 36061;
static inline var FRAMEBUFFER_BINDING : Int = 36006;
static inline var RENDERBUFFER_BINDING : Int = 36007;
static inline var MAX_RENDERBUFFER_SIZE : Int = 34024;
static inline var INVALID_FRAMEBUFFER_OPERATION : Int = 1286;
static inline var UNPACK_FLIP_Y_WEBGL : Int = 37440;
static inline var UNPACK_PREMULTIPLY_ALPHA_WEBGL : Int = 37441;
static inline var CONTEXT_LOST_WEBGL : Int = 37442;
static inline var UNPACK_COLORSPACE_CONVERSION_WEBGL : Int = 37443;
static inline var BROWSER_DEFAULT_WEBGL : Int = 37444;
var canvas(default,null) : js.html.CanvasElement;
var drawingBufferWidth(default,null) : Int;
var drawingBufferHeight(default,null) : Int;
function getContextAttributes() : ContextAttributes;
function isContextLost() : Bool;
function getSupportedExtensions() : Array<String>;
/** @throws DOMError */
function getExtension( name : String ) : Dynamic;
function activeTexture( texture : Int ) : Void;
function attachShader( program : Program, shader : Shader ) : Void;
function bindAttribLocation( program : Program, index : Int, name : String ) : Void;
function bindBuffer( target : Int, buffer : Buffer ) : Void;
function bindFramebuffer( target : Int, framebuffer : Framebuffer ) : Void;
function bindRenderbuffer( target : Int, renderbuffer : Renderbuffer ) : Void;
function bindTexture( target : Int, texture : Texture ) : Void;
function blendColor( red : Float, green : Float, blue : Float, alpha : Float ) : Void;
function blendEquation( mode : Int ) : Void;
function blendEquationSeparate( modeRGB : Int, modeAlpha : Int ) : Void;
function blendFunc( sfactor : Int, dfactor : Int ) : Void;
function blendFuncSeparate( srcRGB : Int, dstRGB : Int, srcAlpha : Int, dstAlpha : Int ) : Void;
@:overload( function( target : Int, size : Int, usage : Int ) : Void {} )
@:overload( function( target : Int, data : js.html.ArrayBufferView, usage : Int ) : Void {} )
function bufferData( target : Int, data : js.html.ArrayBuffer, usage : Int ) : Void;
@:overload( function( target : Int, offset : Int, data : js.html.ArrayBufferView ) : Void {} )
function bufferSubData( target : Int, offset : Int, data : js.html.ArrayBuffer ) : Void;
function checkFramebufferStatus( target : Int ) : Int;
function clear( mask : Int ) : Void;
function clearColor( red : Float, green : Float, blue : Float, alpha : Float ) : Void;
function clearDepth( depth : Float ) : Void;
function clearStencil( s : Int ) : Void;
function colorMask( red : Bool, green : Bool, blue : Bool, alpha : Bool ) : Void;
function compileShader( shader : Shader ) : Void;
function compressedTexImage2D( target : Int, level : Int, internalformat : Int, width : Int, height : Int, border : Int, data : js.html.ArrayBufferView ) : Void;
function compressedTexSubImage2D( target : Int, level : Int, xoffset : Int, yoffset : Int, width : Int, height : Int, format : Int, data : js.html.ArrayBufferView ) : Void;
function copyTexImage2D( target : Int, level : Int, internalformat : Int, x : Int, y : Int, width : Int, height : Int, border : Int ) : Void;
function copyTexSubImage2D( target : Int, level : Int, xoffset : Int, yoffset : Int, x : Int, y : Int, width : Int, height : Int ) : Void;
function createBuffer() : Buffer;
function createFramebuffer() : Framebuffer;
function createProgram() : Program;
function createRenderbuffer() : Renderbuffer;
function createShader( type : Int ) : Shader;
function createTexture() : Texture;
function cullFace( mode : Int ) : Void;
function deleteBuffer( buffer : Buffer ) : Void;
function deleteFramebuffer( framebuffer : Framebuffer ) : Void;
function deleteProgram( program : Program ) : Void;
function deleteRenderbuffer( renderbuffer : Renderbuffer ) : Void;
function deleteShader( shader : Shader ) : Void;
function deleteTexture( texture : Texture ) : Void;
function depthFunc( func : Int ) : Void;
function depthMask( flag : Bool ) : Void;
function depthRange( zNear : Float, zFar : Float ) : Void;
function detachShader( program : Program, shader : Shader ) : Void;
function disable( cap : Int ) : Void;
function disableVertexAttribArray( index : Int ) : Void;
function drawArrays( mode : Int, first : Int, count : Int ) : Void;
function drawElements( mode : Int, count : Int, type : Int, offset : Int ) : Void;
function enable( cap : Int ) : Void;
function enableVertexAttribArray( index : Int ) : Void;
function finish() : Void;
function flush() : Void;
function framebufferRenderbuffer( target : Int, attachment : Int, renderbuffertarget : Int, renderbuffer : Renderbuffer ) : Void;
function framebufferTexture2D( target : Int, attachment : Int, textarget : Int, texture : Texture, level : Int ) : Void;
function frontFace( mode : Int ) : Void;
function generateMipmap( target : Int ) : Void;
function getActiveAttrib( program : Program, index : Int ) : ActiveInfo;
function getActiveUniform( program : Program, index : Int ) : ActiveInfo;
function getAttachedShaders( program : Program ) : Array<Shader>;
function getAttribLocation( program : Program, name : String ) : Int;
function getBufferParameter( target : Int, pname : Int ) : Dynamic;
/** @throws DOMError */
function getParameter( pname : Int ) : Dynamic;
function getError() : Int;
/** @throws DOMError */
function getFramebufferAttachmentParameter( target : Int, attachment : Int, pname : Int ) : Dynamic;
function getProgramParameter( program : Program, pname : Int ) : Dynamic;
function getProgramInfoLog( program : Program ) : String;
function getRenderbufferParameter( target : Int, pname : Int ) : Dynamic;
function getShaderParameter( shader : Shader, pname : Int ) : Dynamic;
function getShaderPrecisionFormat( shadertype : Int, precisiontype : Int ) : ShaderPrecisionFormat;
function getShaderInfoLog( shader : Shader ) : String;
function getShaderSource( shader : Shader ) : String;
function getTexParameter( target : Int, pname : Int ) : Dynamic;
function getUniform( program : Program, location : UniformLocation ) : Dynamic;
function getUniformLocation( program : Program, name : String ) : UniformLocation;
/** @throws DOMError */
function getVertexAttrib( index : Int, pname : Int ) : Dynamic;
function getVertexAttribOffset( index : Int, pname : Int ) : Int;
function hint( target : Int, mode : Int ) : Void;
function isBuffer( buffer : Buffer ) : Bool;
function isEnabled( cap : Int ) : Bool;
function isFramebuffer( framebuffer : Framebuffer ) : Bool;
function isProgram( program : Program ) : Bool;
function isRenderbuffer( renderbuffer : Renderbuffer ) : Bool;
function isShader( shader : Shader ) : Bool;
function isTexture( texture : Texture ) : Bool;
function lineWidth( width : Float ) : Void;
function linkProgram( program : Program ) : Void;
function pixelStorei( pname : Int, param : Int ) : Void;
function polygonOffset( factor : Float, units : Float ) : Void;
/** @throws DOMError */
function readPixels( x : Int, y : Int, width : Int, height : Int, format : Int, type : Int, pixels : js.html.ArrayBufferView ) : Void;
function renderbufferStorage( target : Int, internalformat : Int, width : Int, height : Int ) : Void;
function sampleCoverage( value : Float, invert : Bool ) : Void;
function scissor( x : Int, y : Int, width : Int, height : Int ) : Void;
function shaderSource( shader : Shader, source : String ) : Void;
function stencilFunc( func : Int, ref : Int, mask : Int ) : Void;
function stencilFuncSeparate( face : Int, func : Int, ref : Int, mask : Int ) : Void;
function stencilMask( mask : Int ) : Void;
function stencilMaskSeparate( face : Int, mask : Int ) : Void;
function stencilOp( fail : Int, zfail : Int, zpass : Int ) : Void;
function stencilOpSeparate( face : Int, fail : Int, zfail : Int, zpass : Int ) : Void;
/** @throws DOMError */
@:overload( function( target : Int, level : Int, internalformat : Int, width : Int, height : Int, border : Int, format : Int, type : Int, pixels : js.html.ArrayBufferView ) : Void {} )
@:overload( function( target : Int, level : Int, internalformat : Int, format : Int, type : Int, pixels : js.html.ImageData ) : Void {} )
@:overload( function( target : Int, level : Int, internalformat : Int, format : Int, type : Int, image : js.html.ImageElement ) : Void {} )
@:overload( function( target : Int, level : Int, internalformat : Int, format : Int, type : Int, canvas : js.html.CanvasElement ) : Void {} )
function texImage2D( target : Int, level : Int, internalformat : Int, format : Int, type : Int, video : js.html.VideoElement ) : Void;
function texParameterf( target : Int, pname : Int, param : Float ) : Void;
function texParameteri( target : Int, pname : Int, param : Int ) : Void;
/** @throws DOMError */
@:overload( function( target : Int, level : Int, xoffset : Int, yoffset : Int, width : Int, height : Int, format : Int, type : Int, pixels : js.html.ArrayBufferView ) : Void {} )
@:overload( function( target : Int, level : Int, xoffset : Int, yoffset : Int, format : Int, type : Int, pixels : js.html.ImageData ) : Void {} )
@:overload( function( target : Int, level : Int, xoffset : Int, yoffset : Int, format : Int, type : Int, image : js.html.ImageElement ) : Void {} )
@:overload( function( target : Int, level : Int, xoffset : Int, yoffset : Int, format : Int, type : Int, canvas : js.html.CanvasElement ) : Void {} )
function texSubImage2D( target : Int, level : Int, xoffset : Int, yoffset : Int, format : Int, type : Int, video : js.html.VideoElement ) : Void;
function uniform1f( location : UniformLocation, x : Float ) : Void;
@:overload( function( location : UniformLocation, v : js.html.Float32Array ) : Void {} )
function uniform1fv( location : UniformLocation, v : Array<Float> ) : Void;
function uniform1i( location : UniformLocation, x : Int ) : Void;
@:overload( function( location : UniformLocation, v : js.html.Int32Array ) : Void {} )
function uniform1iv( location : UniformLocation, v : Array<Int> ) : Void;
function uniform2f( location : UniformLocation, x : Float, y : Float ) : Void;
@:overload( function( location : UniformLocation, v : js.html.Float32Array ) : Void {} )
function uniform2fv( location : UniformLocation, v : Array<Float> ) : Void;
function uniform2i( location : UniformLocation, x : Int, y : Int ) : Void;
@:overload( function( location : UniformLocation, v : js.html.Int32Array ) : Void {} )
function uniform2iv( location : UniformLocation, v : Array<Int> ) : Void;
function uniform3f( location : UniformLocation, x : Float, y : Float, z : Float ) : Void;
@:overload( function( location : UniformLocation, v : js.html.Float32Array ) : Void {} )
function uniform3fv( location : UniformLocation, v : Array<Float> ) : Void;
function uniform3i( location : UniformLocation, x : Int, y : Int, z : Int ) : Void;
@:overload( function( location : UniformLocation, v : js.html.Int32Array ) : Void {} )
function uniform3iv( location : UniformLocation, v : Array<Int> ) : Void;
function uniform4f( location : UniformLocation, x : Float, y : Float, z : Float, w : Float ) : Void;
@:overload( function( location : UniformLocation, v : js.html.Float32Array ) : Void {} )
function uniform4fv( location : UniformLocation, v : Array<Float> ) : Void;
function uniform4i( location : UniformLocation, x : Int, y : Int, z : Int, w : Int ) : Void;
@:overload( function( location : UniformLocation, v : js.html.Int32Array ) : Void {} )
function uniform4iv( location : UniformLocation, v : Array<Int> ) : Void;
@:overload( function( location : UniformLocation, transpose : Bool, value : js.html.Float32Array ) : Void {} )
function uniformMatrix2fv( location : UniformLocation, transpose : Bool, value : Array<Float> ) : Void;
@:overload( function( location : UniformLocation, transpose : Bool, value : js.html.Float32Array ) : Void {} )
function uniformMatrix3fv( location : UniformLocation, transpose : Bool, value : Array<Float> ) : Void;
@:overload( function( location : UniformLocation, transpose : Bool, value : js.html.Float32Array ) : Void {} )
function uniformMatrix4fv( location : UniformLocation, transpose : Bool, value : Array<Float> ) : Void;
function useProgram( program : Program ) : Void;
function validateProgram( program : Program ) : Void;
function vertexAttrib1f( indx : Int, x : Float ) : Void;
@:overload( function( indx : Int, values : js.html.Float32Array ) : Void {} )
function vertexAttrib1fv( indx : Int, values : Array<Float> ) : Void;
function vertexAttrib2f( indx : Int, x : Float, y : Float ) : Void;
@:overload( function( indx : Int, values : js.html.Float32Array ) : Void {} )
function vertexAttrib2fv( indx : Int, values : Array<Float> ) : Void;
function vertexAttrib3f( indx : Int, x : Float, y : Float, z : Float ) : Void;
@:overload( function( indx : Int, values : js.html.Float32Array ) : Void {} )
function vertexAttrib3fv( indx : Int, values : Array<Float> ) : Void;
function vertexAttrib4f( indx : Int, x : Float, y : Float, z : Float, w : Float ) : Void;
@:overload( function( indx : Int, values : js.html.Float32Array ) : Void {} )
function vertexAttrib4fv( indx : Int, values : Array<Float> ) : Void;
function vertexAttribPointer( indx : Int, size : Int, type : Int, normalized : Bool, stride : Int, offset : Int ) : Void;
function viewport( x : Int, y : Int, width : Int, height : Int ) : Void;
}
|