Update Files

This commit is contained in:
2025-01-22 16:18:30 +01:00
parent ed4603cf95
commit a36294b518
16718 changed files with 2960346 additions and 0 deletions

View File

@ -0,0 +1,52 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl;
/**
The WebGLActiveInfo interface is part of the WebGL API and represents the information returned by calling the `WebGLRenderingContext.getActiveAttrib()` and `WebGLRenderingContext.getActiveUniform()` methods.
Documentation [WebGLActiveInfo](https://developer.mozilla.org/en-US/docs/Web/API/WebGLActiveInfo) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WebGLActiveInfo$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WebGLActiveInfo>
**/
@:native("WebGLActiveInfo")
extern class ActiveInfo {
/**
The read-only size of the requested variable.
**/
var size(default,null) : Int;
/**
The read-only type of the requested variable.
**/
var type(default,null) : Int;
/**
The read-only name of the requested variable.
**/
var name(default,null) : String;
}

View File

@ -0,0 +1,36 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl;
/**
The WebGLBuffer interface is part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors.
Documentation [WebGLBuffer](https://developer.mozilla.org/en-US/docs/Web/API/WebGLBuffer) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WebGLBuffer$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WebGLBuffer>
**/
@:native("WebGLBuffer")
extern class Buffer {
}

View File

@ -0,0 +1,36 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl;
typedef ContextAttributes = {
var ?alpha : Bool;
var ?antialias : Bool;
var ?depth : Bool;
var ?failIfMajorPerformanceCaveat : Bool;
var ?powerPreference : PowerPreference;
var ?premultipliedAlpha : Bool;
var ?preserveDrawingBuffer : Bool;
var ?stencil : Bool;
}

View File

@ -0,0 +1,44 @@
/*
* Copyright (C)2005-2019 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\WebGLContextEvent.webidl. Do not edit!
package js.html.webgl;
/**
The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context.
Documentation [WebGLContextEvent](https://developer.mozilla.org/en-US/docs/Web/API/WebGLContextEvent) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WebGLContextEvent$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WebGLContextEvent>
**/
@:native("WebGLContextEvent")
extern class ContextEvent extends js.html.Event {
/**
A read-only property containing additional information about the event.
**/
var statusMessage(default,null) : String;
/** @throws DOMError */
function new( type : String, ?eventInit : ContextEventInit ) : Void;
}

View File

@ -0,0 +1,29 @@
/*
* Copyright (C)2005-2019 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\WebGLContextEvent.webidl. Do not edit!
package js.html.webgl;
typedef ContextEventInit = EventInit & {
var ?statusMessage : String;
}

View File

@ -0,0 +1,59 @@
/*
* Copyright (C)2005-2019 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 automatically generated. Do not edit!
package js.html.webgl;
import js.html.webgl.extension.*;
enum abstract Extension<T>(String) from String to String {
var ANGLE_instanced_arrays: Extension<ANGLEInstancedArrays> = 'ANGLE_instanced_arrays';
var EXT_blend_minmax: Extension<EXTBlendMinmax> = 'EXT_blend_minmax';
var EXT_color_buffer_float: Extension<EXTColorBufferFloat> = 'EXT_color_buffer_float';
var EXT_color_buffer_half_float: Extension<EXTColorBufferHalfFloat> = 'EXT_color_buffer_half_float';
var EXT_disjoint_timer_query: Extension<EXTDisjointTimerQuery> = 'EXT_disjoint_timer_query';
var EXT_frag_depth: Extension<EXTFragDepth> = 'EXT_frag_depth';
var EXT_sRGB: Extension<EXTSrgb> = 'EXT_sRGB';
var EXT_shader_texture_lod: Extension<EXTShaderTextureLod> = 'EXT_shader_texture_lod';
var EXT_texture_filter_anisotropic: Extension<EXTTextureFilterAnisotropic> = 'EXT_texture_filter_anisotropic';
var OES_element_index_uint: Extension<OESElementIndexUint> = 'OES_element_index_uint';
var OES_standard_derivatives: Extension<OESStandardDerivatives> = 'OES_standard_derivatives';
var OES_texture_float: Extension<OESTextureFloat> = 'OES_texture_float';
var OES_texture_float_linear: Extension<OESTextureFloatLinear> = 'OES_texture_float_linear';
var OES_texture_half_float: Extension<OESTextureHalfFloat> = 'OES_texture_half_float';
var OES_texture_half_float_linear: Extension<OESTextureHalfFloatLinear> = 'OES_texture_half_float_linear';
var OES_vertex_array_object: Extension<OESVertexArrayObject> = 'OES_vertex_array_object';
var WEBGL_color_buffer_float: Extension<WEBGLColorBufferFloat> = 'WEBGL_color_buffer_float';
var WEBGL_compressed_texture_astc: Extension<WEBGLCompressedTextureAstc> = 'WEBGL_compressed_texture_astc';
var WEBGL_compressed_texture_atc: Extension<WEBGLCompressedTextureAtc> = 'WEBGL_compressed_texture_atc';
var WEBGL_compressed_texture_etc: Extension<WEBGLCompressedTextureEtc> = 'WEBGL_compressed_texture_etc';
var WEBGL_compressed_texture_etc1: Extension<WEBGLCompressedTextureEtc1> = 'WEBGL_compressed_texture_etc1';
var WEBGL_compressed_texture_pvrtc: Extension<WEBGLCompressedTexturePvrtc> = 'WEBGL_compressed_texture_pvrtc';
var WEBGL_compressed_texture_s3tc: Extension<WEBGLCompressedTextureS3tc> = 'WEBGL_compressed_texture_s3tc';
var WEBGL_compressed_texture_s3tc_srgb: Extension<WEBGLCompressedTextureS3tcSrgb> = 'WEBGL_compressed_texture_s3tc_srgb';
var WEBGL_debug_renderer_info: Extension<WEBGLDebugRendererInfo> = 'WEBGL_debug_renderer_info';
var WEBGL_debug_shaders: Extension<WEBGLDebugShaders> = 'WEBGL_debug_shaders';
var WEBGL_depth_texture: Extension<WEBGLDepthTexture> = 'WEBGL_depth_texture';
var WEBGL_draw_buffers: Extension<WEBGLDrawBuffers> = 'WEBGL_draw_buffers';
var WEBGL_lose_context: Extension<WEBGLLoseContext> = 'WEBGL_lose_context';
}

View File

@ -0,0 +1,36 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl;
/**
The WebGLFramebuffer interface is part of the WebGL API and represents a collection of buffers that serve as a rendering destination.
Documentation [WebGLFramebuffer](https://developer.mozilla.org/en-US/docs/Web/API/WebGLFramebuffer) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WebGLFramebuffer$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WebGLFramebuffer>
**/
@:native("WebGLFramebuffer")
extern class Framebuffer {
}

View File

@ -0,0 +1,26 @@
/*
* Copyright (C)2005-2019 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.
*/
package js.html.webgl;
/** An alias for accessing GL constants more naturally. */
typedef GL = RenderingContext;

View File

@ -0,0 +1,26 @@
/*
* Copyright (C)2005-2019 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.
*/
package js.html.webgl;
/** An alias for accessing GL constants more naturally. */
typedef GL2 = WebGL2RenderingContext;

View File

@ -0,0 +1,31 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl;
enum abstract PowerPreference(String) {
var DEFAULT = "default";
var LOW_POWER = "low-power";
var HIGH_PERFORMANCE = "high-performance";
}

View File

@ -0,0 +1,36 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl;
/**
The WebGLProgram is part of the WebGL API and is a combination of two compiled `WebGLShader`s consisting of a vertex shader and a fragment shader (both written in GLSL). These are then linked into a usable program.
Documentation [WebGLProgram](https://developer.mozilla.org/en-US/docs/Web/API/WebGLProgram) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WebGLProgram$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WebGLProgram>
**/
@:native("WebGLProgram")
extern class Program {
}

View File

@ -0,0 +1,36 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl;
/**
The `WebGLQuery` interface is part of the WebGL 2 API and provides ways to asynchronously query for information. By default, occlusion queries and primitive queries are available.
Documentation [WebGLQuery](https://developer.mozilla.org/en-US/docs/Web/API/WebGLQuery) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WebGLQuery$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WebGLQuery>
**/
@:native("WebGLQuery")
extern class Query {
}

View File

@ -0,0 +1,36 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl;
/**
The WebGLRenderbuffer interface is part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation.
Documentation [WebGLRenderbuffer](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderbuffer) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderbuffer$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderbuffer>
**/
@:native("WebGLRenderbuffer")
extern class Renderbuffer {
}

View File

@ -0,0 +1,948 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl;
/**
The `WebGLRenderingContext` interface provides the OpenGL ES 2.0 rendering context for the drawing surface of an HTML `canvas` element.
Documentation [WebGLRenderingContext](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext>
**/
@: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_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;
/**
A read-only back-reference to the `HTMLCanvasElement`. Might be `null` if it is not associated with a `canvas` element.
**/
var canvas(default,null) : js.html.CanvasElement;
/**
The read-only width of the current drawing buffer. Should match the width of the canvas element associated with this context.
**/
var drawingBufferWidth(default,null) : Int;
/**
The read-only height of the current drawing buffer. Should match the height of the canvas element associated with this context.
**/
var drawingBufferHeight(default,null) : Int;
/**
Updates buffer data.
**/
@:overload( function( target : Int, size : Int, usage : Int ) : Void {} )
@:overload( function( target : Int, data : js.lib.ArrayBuffer, usage : Int ) : Void {} )
function bufferData( target : Int, data : js.lib.ArrayBufferView, usage : Int ) : Void;
/**
Updates buffer data starting at a passed offset.
**/
@:overload( function( target : Int, offset : Int, data : js.lib.ArrayBuffer ) : Void {} )
function bufferSubData( target : Int, offset : Int, data : js.lib.ArrayBufferView ) : Void;
/**
Specifies a 2D texture image in a compressed format.
**/
function compressedTexImage2D( target : Int, level : Int, internalformat : Int, width : Int, height : Int, border : Int, data : js.lib.ArrayBufferView ) : Void;
/**
Specifies a 2D texture sub-image in a compressed format.
**/
function compressedTexSubImage2D( target : Int, level : Int, xoffset : Int, yoffset : Int, width : Int, height : Int, format : Int, data : js.lib.ArrayBufferView ) : Void;
/**
Reads a block of pixels from the `WebGLFrameBuffer`.
@throws DOMError
**/
function readPixels( x : Int, y : Int, width : Int, height : Int, format : Int, type : Int, pixels : js.lib.ArrayBufferView ) : Void;
/**
Specifies a 2D texture image.
@throws DOMError
**/
@:overload( function( target : Int, level : Int, internalformat : Int, width : Int, height : Int, border : Int, format : Int, type : Int, pixels : js.lib.ArrayBufferView ) : Void {} )
@:overload( function( target : Int, level : Int, internalformat : Int, format : Int, type : Int, pixels : js.html.ImageBitmap ) : 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;
/**
Updates a sub-rectangle of the current `WebGLTexture`.
@throws DOMError
**/
@:overload( function( target : Int, level : Int, xoffset : Int, yoffset : Int, width : Int, height : Int, format : Int, type : Int, pixels : js.lib.ArrayBufferView ) : Void {} )
@:overload( function( target : Int, level : Int, xoffset : Int, yoffset : Int, format : Int, type : Int, pixels : js.html.ImageBitmap ) : 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;
@:overload( function( location : UniformLocation, data : Array<Float>) : Void {} )
function uniform1fv( location : UniformLocation, data : js.lib.Float32Array ) : Void;
@:overload( function( location : UniformLocation, data : Array<Float>) : Void {} )
function uniform2fv( location : UniformLocation, data : js.lib.Float32Array ) : Void;
@:overload( function( location : UniformLocation, data : Array<Float>) : Void {} )
function uniform3fv( location : UniformLocation, data : js.lib.Float32Array ) : Void;
@:overload( function( location : UniformLocation, data : Array<Float>) : Void {} )
function uniform4fv( location : UniformLocation, data : js.lib.Float32Array ) : Void;
@:overload( function( location : UniformLocation, data : Array<Int>) : Void {} )
function uniform1iv( location : UniformLocation, data : js.lib.Int32Array ) : Void;
@:overload( function( location : UniformLocation, data : Array<Int>) : Void {} )
function uniform2iv( location : UniformLocation, data : js.lib.Int32Array ) : Void;
@:overload( function( location : UniformLocation, data : Array<Int>) : Void {} )
function uniform3iv( location : UniformLocation, data : js.lib.Int32Array ) : Void;
@:overload( function( location : UniformLocation, data : Array<Int>) : Void {} )
function uniform4iv( location : UniformLocation, data : js.lib.Int32Array ) : Void;
@:overload( function( location : UniformLocation, transpose : Bool, data : Array<Float>) : Void {} )
function uniformMatrix2fv( location : UniformLocation, transpose : Bool, data : js.lib.Float32Array ) : Void;
@:overload( function( location : UniformLocation, transpose : Bool, data : Array<Float>) : Void {} )
function uniformMatrix3fv( location : UniformLocation, transpose : Bool, data : js.lib.Float32Array ) : Void;
@:overload( function( location : UniformLocation, transpose : Bool, data : Array<Float>) : Void {} )
function uniformMatrix4fv( location : UniformLocation, transpose : Bool, data : js.lib.Float32Array ) : Void;
/**
Returns a `WebGLContextAttributes` object that contains the actual context parameters. Might return `null`, if the context is lost.
**/
function getContextAttributes() : ContextAttributes;
/**
Returns `true` if the context is lost, otherwise returns `false`.
**/
function isContextLost() : Bool;
/**
Returns an `Array` of `DOMString` elements with all the supported WebGL extensions.
**/
function getSupportedExtensions() : Array<String>;
/**
Returns an extension object.
@throws DOMError
**/
function getExtension<T>( name : Extension<T> ) : T;
/**
Selects the active texture unit.
**/
function activeTexture( texture : Int ) : Void;
/**
Attaches a `WebGLShader` to a `WebGLProgram`.
**/
function attachShader( program : Program, shader : Shader ) : Void;
/**
Binds a generic vertex index to a named attribute variable.
**/
function bindAttribLocation( program : Program, index : Int, name : String ) : Void;
/**
Binds a `WebGLBuffer` object to a given target.
**/
function bindBuffer( target : Int, buffer : Buffer ) : Void;
/**
Binds a `WebGLFrameBuffer` object to a given target.
**/
function bindFramebuffer( target : Int, framebuffer : Framebuffer ) : Void;
/**
Binds a `WebGLRenderBuffer` object to a given target.
**/
function bindRenderbuffer( target : Int, renderbuffer : Renderbuffer ) : Void;
/**
Binds a `WebGLTexture` object to a given target.
**/
function bindTexture( target : Int, texture : Texture ) : Void;
/**
Sets the source and destination blending factors.
**/
function blendColor( red : Float, green : Float, blue : Float, alpha : Float ) : Void;
/**
Sets both the RGB blend equation and alpha blend equation to a single equation.
**/
function blendEquation( mode : Int ) : Void;
/**
Sets the RGB blend equation and alpha blend equation separately.
**/
function blendEquationSeparate( modeRGB : Int, modeAlpha : Int ) : Void;
/**
Defines which function is used for blending pixel arithmetic.
**/
function blendFunc( sfactor : Int, dfactor : Int ) : Void;
/**
Defines which function is used for blending pixel arithmetic for RGB and alpha components separately.
**/
function blendFuncSeparate( srcRGB : Int, dstRGB : Int, srcAlpha : Int, dstAlpha : Int ) : Void;
/**
Returns the status of the framebuffer.
**/
function checkFramebufferStatus( target : Int ) : Int;
/**
Clears specified buffers to preset values.
**/
function clear( mask : Int ) : Void;
/**
Specifies the color values used when clearing color buffers.
**/
function clearColor( red : Float, green : Float, blue : Float, alpha : Float ) : Void;
/**
Specifies the depth value used when clearing the depth buffer.
**/
function clearDepth( depth : Float ) : Void;
/**
Specifies the stencil value used when clearing the stencil buffer.
**/
function clearStencil( s : Int ) : Void;
/**
Sets which color components to enable or to disable when drawing or rendering to a `WebGLFramebuffer`.
**/
function colorMask( red : Bool, green : Bool, blue : Bool, alpha : Bool ) : Void;
/**
Compiles a `WebGLShader`.
**/
function compileShader( shader : Shader ) : Void;
/**
Copies a 2D texture image.
**/
function copyTexImage2D( target : Int, level : Int, internalformat : Int, x : Int, y : Int, width : Int, height : Int, border : Int ) : Void;
/**
Copies a 2D texture sub-image.
**/
function copyTexSubImage2D( target : Int, level : Int, xoffset : Int, yoffset : Int, x : Int, y : Int, width : Int, height : Int ) : Void;
/**
Creates a `WebGLBuffer` object.
**/
function createBuffer() : Buffer;
/**
Creates a `WebGLFrameBuffer` object.
**/
function createFramebuffer() : Framebuffer;
/**
Creates a `WebGLProgram`.
**/
function createProgram() : Program;
/**
Creates a `WebGLRenderBuffer` object.
**/
function createRenderbuffer() : Renderbuffer;
/**
Creates a `WebGLShader`.
**/
function createShader( type : Int ) : Shader;
/**
Creates a `WebGLTexture` object.
**/
function createTexture() : Texture;
/**
Specifies whether or not front- and/or back-facing polygons can be culled.
**/
function cullFace( mode : Int ) : Void;
/**
Deletes a `WebGLBuffer` object.
**/
function deleteBuffer( buffer : Buffer ) : Void;
/**
Deletes a `WebGLFrameBuffer` object.
**/
function deleteFramebuffer( framebuffer : Framebuffer ) : Void;
/**
Deletes a `WebGLProgram`.
**/
function deleteProgram( program : Program ) : Void;
/**
Deletes a `WebGLRenderBuffer` object.
**/
function deleteRenderbuffer( renderbuffer : Renderbuffer ) : Void;
/**
Deletes a `WebGLShader`.
**/
function deleteShader( shader : Shader ) : Void;
/**
Deletes a `WebGLTexture` object.
**/
function deleteTexture( texture : Texture ) : Void;
/**
Specifies a function that compares incoming pixel depth to the current depth buffer value.
**/
function depthFunc( func : Int ) : Void;
/**
Sets whether writing into the depth buffer is enabled or disabled.
**/
function depthMask( flag : Bool ) : Void;
/**
Specifies the depth range mapping from normalized device coordinates to window or viewport coordinates.
**/
function depthRange( zNear : Float, zFar : Float ) : Void;
/**
Detaches a `WebGLShader`.
**/
function detachShader( program : Program, shader : Shader ) : Void;
/**
Disables specific WebGL capabilities for this context.
**/
function disable( cap : Int ) : Void;
/**
Disables a vertex attribute array at a given position.
**/
function disableVertexAttribArray( index : Int ) : Void;
/**
Renders primitives from array data.
**/
function drawArrays( mode : Int, first : Int, count : Int ) : Void;
/**
Renders primitives from element array data.
**/
function drawElements( mode : Int, count : Int, type : Int, offset : Int ) : Void;
/**
Enables specific WebGL capabilities for this context.
**/
function enable( cap : Int ) : Void;
/**
Enables a vertex attribute array at a given position.
**/
function enableVertexAttribArray( index : Int ) : Void;
/**
Blocks execution until all previously called commands are finished.
**/
function finish() : Void;
/**
Empties different buffer commands, causing all commands to be executed as quickly as possible.
**/
function flush() : Void;
/**
Attaches a `WebGLRenderingBuffer` object to a `WebGLFrameBuffer` object.
**/
function framebufferRenderbuffer( target : Int, attachment : Int, renderbuffertarget : Int, renderbuffer : Renderbuffer ) : Void;
/**
Attaches a textures image to a `WebGLFrameBuffer` object.
**/
function framebufferTexture2D( target : Int, attachment : Int, textarget : Int, texture : Texture, level : Int ) : Void;
/**
Specifies whether polygons are front- or back-facing by setting a winding orientation.
**/
function frontFace( mode : Int ) : Void;
/**
Generates a set of mipmaps for a `WebGLTexture` object.
**/
function generateMipmap( target : Int ) : Void;
/**
Returns information about an active attribute variable.
**/
function getActiveAttrib( program : Program, index : Int ) : ActiveInfo;
/**
Returns information about an active uniform variable.
**/
function getActiveUniform( program : Program, index : Int ) : ActiveInfo;
/**
Returns a list of `WebGLShader` objects attached to a `WebGLProgram`.
**/
function getAttachedShaders( program : Program ) : Array<Shader>;
/**
Returns the location of an attribute variable.
**/
function getAttribLocation( program : Program, name : String ) : Int;
/**
Returns information about the buffer.
**/
function getBufferParameter( target : Int, pname : Int ) : Dynamic;
/**
Returns a value for the passed parameter name.
@throws DOMError
**/
function getParameter( pname : Int ) : Dynamic;
/**
Returns error information.
**/
function getError() : Int;
/**
Returns information about the framebuffer.
@throws DOMError
**/
function getFramebufferAttachmentParameter( target : Int, attachment : Int, pname : Int ) : Dynamic;
/**
Returns information about the program.
**/
function getProgramParameter( program : Program, pname : Int ) : Dynamic;
/**
Returns the information log for a `WebGLProgram` object.
**/
function getProgramInfoLog( program : Program ) : String;
/**
Returns information about the renderbuffer.
**/
function getRenderbufferParameter( target : Int, pname : Int ) : Dynamic;
/**
Returns information about the shader.
**/
function getShaderParameter( shader : Shader, pname : Int ) : Dynamic;
/**
Returns a `WebGLShaderPrecisionFormat` object describing the precision for the numeric format of the shader.
**/
function getShaderPrecisionFormat( shadertype : Int, precisiontype : Int ) : ShaderPrecisionFormat;
/**
Returns the information log for a `WebGLShader` object.
**/
function getShaderInfoLog( shader : Shader ) : String;
/**
Returns the source code of a `WebGLShader` as a string.
**/
function getShaderSource( shader : Shader ) : String;
/**
Returns information about the texture.
**/
function getTexParameter( target : Int, pname : Int ) : Dynamic;
/**
Returns the value of a uniform variable at a given location.
**/
function getUniform( program : Program, location : UniformLocation ) : Dynamic;
/**
Returns the location of a uniform variable.
**/
function getUniformLocation( program : Program, name : String ) : UniformLocation;
/**
Returns information about a vertex attribute at a given position.
@throws DOMError
**/
function getVertexAttrib( index : Int, pname : Int ) : Dynamic;
/**
Returns the address of a given vertex attribute.
**/
function getVertexAttribOffset( index : Int, pname : Int ) : Int;
/**
Specifies hints for certain behaviors. The interpretation of these hints depend on the implementation.
**/
function hint( target : Int, mode : Int ) : Void;
/**
Returns a Boolean indicating if the passed buffer is valid.
**/
function isBuffer( buffer : Buffer ) : Bool;
/**
Tests whether a specific WebGL capability is enabled or not for this context.
**/
function isEnabled( cap : Int ) : Bool;
/**
Returns a Boolean indicating if the passed `WebGLFrameBuffer` object is valid.
**/
function isFramebuffer( framebuffer : Framebuffer ) : Bool;
/**
Returns a Boolean indicating if the passed `WebGLProgram` is valid.
**/
function isProgram( program : Program ) : Bool;
/**
Returns a Boolean indicating if the passed `WebGLRenderingBuffer` is valid.
**/
function isRenderbuffer( renderbuffer : Renderbuffer ) : Bool;
/**
Returns a Boolean indicating if the passed `WebGLShader` is valid.
**/
function isShader( shader : Shader ) : Bool;
/**
Returns a Boolean indicating if the passed `WebGLTexture` is valid.
**/
function isTexture( texture : Texture ) : Bool;
/**
Sets the line width of rasterized lines.
**/
function lineWidth( width : Float ) : Void;
/**
Links the passed `WebGLProgram` object.
**/
function linkProgram( program : Program ) : Void;
/**
Specifies the pixel storage modes
**/
function pixelStorei( pname : Int, param : Int ) : Void;
/**
Specifies the scale factors and units to calculate depth values.
**/
function polygonOffset( factor : Float, units : Float ) : Void;
/**
Creates a renderbuffer data store.
**/
function renderbufferStorage( target : Int, internalformat : Int, width : Int, height : Int ) : Void;
/**
Specifies multi-sample coverage parameters for anti-aliasing effects.
**/
function sampleCoverage( value : Float, invert : Bool ) : Void;
/**
Defines the scissor box.
**/
function scissor( x : Int, y : Int, width : Int, height : Int ) : Void;
/**
Sets the source code in a `WebGLShader`.
**/
function shaderSource( shader : Shader, source : String ) : Void;
/**
Sets the both front and back function and reference value for stencil testing.
**/
function stencilFunc( func : Int, ref : Int, mask : Int ) : Void;
/**
Sets the front and/or back function and reference value for stencil testing.
**/
function stencilFuncSeparate( face : Int, func : Int, ref : Int, mask : Int ) : Void;
/**
Controls enabling and disabling of both the front and back writing of individual bits in the stencil planes.
**/
function stencilMask( mask : Int ) : Void;
/**
Controls enabling and disabling of front and/or back writing of individual bits in the stencil planes.
**/
function stencilMaskSeparate( face : Int, mask : Int ) : Void;
/**
Sets both the front and back-facing stencil test actions.
**/
function stencilOp( fail : Int, zfail : Int, zpass : Int ) : Void;
/**
Sets the front and/or back-facing stencil test actions.
**/
function stencilOpSeparate( face : Int, fail : Int, zfail : Int, zpass : Int ) : Void;
function texParameterf( target : Int, pname : Int, param : Float ) : Void;
function texParameteri( target : Int, pname : Int, param : Int ) : Void;
function uniform1f( location : UniformLocation, x : Float ) : Void;
function uniform2f( location : UniformLocation, x : Float, y : Float ) : Void;
function uniform3f( location : UniformLocation, x : Float, y : Float, z : Float ) : Void;
function uniform4f( location : UniformLocation, x : Float, y : Float, z : Float, w : Float ) : Void;
function uniform1i( location : UniformLocation, x : Int ) : Void;
function uniform2i( location : UniformLocation, x : Int, y : Int ) : Void;
function uniform3i( location : UniformLocation, x : Int, y : Int, z : Int ) : Void;
function uniform4i( location : UniformLocation, x : Int, y : Int, z : Int, w : Int ) : Void;
/**
Uses the specified `WebGLProgram` as part the current rendering state.
**/
function useProgram( program : Program ) : Void;
/**
Validates a `WebGLProgram`.
**/
function validateProgram( program : Program ) : Void;
function vertexAttrib1f( indx : Int, x : Float ) : Void;
@:overload( function( indx : Int, values : Array<Float>) : Void {} )
function vertexAttrib1fv( indx : Int, values : js.lib.Float32Array ) : Void;
function vertexAttrib2f( indx : Int, x : Float, y : Float ) : Void;
@:overload( function( indx : Int, values : Array<Float>) : Void {} )
function vertexAttrib2fv( indx : Int, values : js.lib.Float32Array ) : Void;
function vertexAttrib3f( indx : Int, x : Float, y : Float, z : Float ) : Void;
@:overload( function( indx : Int, values : Array<Float>) : Void {} )
function vertexAttrib3fv( indx : Int, values : js.lib.Float32Array ) : Void;
function vertexAttrib4f( indx : Int, x : Float, y : Float, z : Float, w : Float ) : Void;
@:overload( function( indx : Int, values : Array<Float>) : Void {} )
function vertexAttrib4fv( indx : Int, values : js.lib.Float32Array ) : Void;
/**
Specifies the data formats and locations of vertex attributes in a vertex attributes array.
**/
function vertexAttribPointer( indx : Int, size : Int, type : Int, normalized : Bool, stride : Int, offset : Int ) : Void;
/**
Sets the viewport.
**/
function viewport( x : Int, y : Int, width : Int, height : Int ) : Void;
}

View File

@ -0,0 +1,36 @@
/*
* Copyright (C)2005-2019 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\WebGL2RenderingContext.webidl. Do not edit!
package js.html.webgl;
/**
The `WebGLSampler` interface is part of the WebGL 2 API and stores sampling parameters for `WebGLTexture` access inside of a shader.
Documentation [WebGLSampler](https://developer.mozilla.org/en-US/docs/Web/API/WebGLSampler) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WebGLSampler$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WebGLSampler>
**/
@:native("WebGLSampler")
extern class Sampler {
}

View File

@ -0,0 +1,36 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl;
/**
The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A `WebGLProgram` requires both types of shaders.
Documentation [WebGLShader](https://developer.mozilla.org/en-US/docs/Web/API/WebGLShader) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WebGLShader$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WebGLShader>
**/
@:native("WebGLShader")
extern class Shader {
}

View File

@ -0,0 +1,52 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl;
/**
The WebGLShaderPrecisionFormat interface is part of the WebGL API and represents the information returned by calling the `WebGLRenderingContext.getShaderPrecisionFormat()` method.
Documentation [WebGLShaderPrecisionFormat](https://developer.mozilla.org/en-US/docs/Web/API/WebGLShaderPrecisionFormat) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WebGLShaderPrecisionFormat$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WebGLShaderPrecisionFormat>
**/
@:native("WebGLShaderPrecisionFormat")
extern class ShaderPrecisionFormat {
/**
The base 2 log of the absolute value of the minimum value that can be represented.
**/
var rangeMin(default,null) : Int;
/**
The base 2 log of the absolute value of the maximum value that can be represented.
**/
var rangeMax(default,null) : Int;
/**
The number of bits of precision that can be represented. For integer formats this value is always 0.
**/
var precision(default,null) : Int;
}

View File

@ -0,0 +1,36 @@
/*
* Copyright (C)2005-2019 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\WebGL2RenderingContext.webidl. Do not edit!
package js.html.webgl;
/**
The `WebGLSync` interface is part of the WebGL 2 API and is used to synchronize activities between the GPU and the application.
Documentation [WebGLSync](https://developer.mozilla.org/en-US/docs/Web/API/WebGLSync) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WebGLSync$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WebGLSync>
**/
@:native("WebGLSync")
extern class Sync {
}

View File

@ -0,0 +1,36 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl;
/**
The WebGLTexture interface is part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations.
Documentation [WebGLTexture](https://developer.mozilla.org/en-US/docs/Web/API/WebGLTexture) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WebGLTexture$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WebGLTexture>
**/
@:native("WebGLTexture")
extern class Texture {
}

View File

@ -0,0 +1,36 @@
/*
* Copyright (C)2005-2019 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\WebGL2RenderingContext.webidl. Do not edit!
package js.html.webgl;
/**
The `WebGLTransformFeedback` interface is part of the WebGL 2 API and enables transform feedback, which is the process of capturing primitives generated by vertex processing. It allows to preserve the post-transform rendering state of an object and resubmit this data multiple times.
Documentation [WebGLTransformFeedback](https://developer.mozilla.org/en-US/docs/Web/API/WebGLTransformFeedback) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WebGLTransformFeedback$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WebGLTransformFeedback>
**/
@:native("WebGLTransformFeedback")
extern class TransformFeedback {
}

View File

@ -0,0 +1,36 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl;
/**
The WebGLUniformLocation interface is part of the WebGL API and represents the location of a uniform variable in a shader program.
Documentation [WebGLUniformLocation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLUniformLocation) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WebGLUniformLocation$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WebGLUniformLocation>
**/
@:native("WebGLUniformLocation")
extern class UniformLocation {
}

View File

@ -0,0 +1,36 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl;
/**
The `WebGLVertexArrayObject` interface is part of the WebGL 2 API, represents vertex array objects (VAOs) pointing to vertex array data, and provides names for different sets of vertex data.
Documentation [WebGLVertexArrayObject](https://developer.mozilla.org/en-US/docs/Web/API/WebGLVertexArrayObject) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WebGLVertexArrayObject$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WebGLVertexArrayObject>
**/
@:native("WebGLVertexArrayObject")
extern class VertexArrayObject {
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,63 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `ANGLE_instanced_arrays` extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.
Documentation [ANGLE_instanced_arrays](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays>
**/
@:native("ANGLE_instanced_arrays")
extern class ANGLEInstancedArrays {
/**
Returns a `GLint` describing the frequency divisor used for instanced rendering when used in the `WebGLRenderingContext.getVertexAttrib()` as the `pname` parameter.
**/
static inline var VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE : Int = 35070;
/**
Behaves identically to `WebGLRenderingContext.drawArrays()` except that multiple instances of the range of elements are executed, and the instance advances for each iteration.
**/
function drawArraysInstancedANGLE( mode : Int, first : Int, count : Int, primcount : Int ) : Void;
/**
Behaves identically to `WebGLRenderingContext.drawElements()` except that multiple instances of the set of elements are executed and the instance advances between each set.
**/
function drawElementsInstancedANGLE( mode : Int, count : Int, type : Int, offset : Int, primcount : Int ) : Void;
/**
Modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with `ANGLE_instanced_arrays.drawArraysInstancedANGLE()` and `ANGLE_instanced_arrays.drawElementsInstancedANGLE()`.
**/
function vertexAttribDivisorANGLE( index : Int, divisor : Int ) : Void;
}

View File

@ -0,0 +1,47 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `EXT_blend_minmax` extension is part of the WebGL API and extends blending capabilities by adding two new blend equations: the minimum or maximum color components of the source and destination colors.
Documentation [EXT_blend_minmax](https://developer.mozilla.org/en-US/docs/Web/API/EXT_blend_minmax) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/EXT_blend_minmax$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/EXT_blend_minmax>
**/
@:native("EXT_blend_minmax")
extern class EXTBlendMinmax {
/**
Produces the minimum color components of the source and destination colors.
**/
static inline var MIN_EXT : Int = 32775;
/**
Produces the maximum color components of the source and destination colors.
**/
static inline var MAX_EXT : Int = 32776;
}

View File

@ -0,0 +1,28 @@
/*
* Copyright (C)2005-2019 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\WebGL2RenderingContext.webidl. Do not edit!
package js.html.webgl.extension;
typedef EXTColorBufferFloat = {
}

View File

@ -0,0 +1,57 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `EXT_color_buffer_half_float` extension is part of the WebGL API and adds the ability to render to 16-bit floating-point color buffers.
Documentation [EXT_color_buffer_half_float](https://developer.mozilla.org/en-US/docs/Web/API/EXT_color_buffer_half_float) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/EXT_color_buffer_half_float$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/EXT_color_buffer_half_float>
**/
@:native("EXT_color_buffer_half_float")
extern class EXTColorBufferHalfFloat {
/**
RGBA 16-bit floating-point color-renderable format.
**/
static inline var RGBA16F_EXT : Int = 34842;
/**
RGB 16-bit floating-point color-renderable format.
**/
static inline var RGB16F_EXT : Int = 34843;
/**
?
**/
static inline var FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT : Int = 33297;
/**
?
**/
static inline var UNSIGNED_NORMALIZED_EXT : Int = 35863;
}

View File

@ -0,0 +1,120 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The EXT_disjoint_timer_query extension is part of the WebGL API and provides a way to measure the duration of a set of GL commands, without stalling the rendering pipeline.
Documentation [EXT_disjoint_timer_query](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query>
**/
@:native("EXT_disjoint_timer_query")
extern class EXTDisjointTimerQuery {
/**
A `GLint` indicating the number of bits used to hold the query result for the given target.
**/
static inline var QUERY_COUNTER_BITS_EXT : Int = 34916;
/**
A `WebGLQuery` object, which is the currently active query for the given target.
**/
static inline var CURRENT_QUERY_EXT : Int = 34917;
/**
A `GLuint64EXT` containing the query result.
**/
static inline var QUERY_RESULT_EXT : Int = 34918;
/**
A `GLboolean` indicating whether or not a query result is available.
**/
static inline var QUERY_RESULT_AVAILABLE_EXT : Int = 34919;
/**
Elapsed time (in nanoseconds).
**/
static inline var TIME_ELAPSED_EXT : Int = 35007;
/**
The current time.
**/
static inline var TIMESTAMP_EXT : Int = 36392;
/**
A `GLboolean` indicating whether or not the GPU performed any disjoint operation.
**/
static inline var GPU_DISJOINT_EXT : Int = 36795;
/**
Creates a new `WebGLQuery`.
**/
function createQueryEXT() : js.html.webgl.Query;
/**
Deletes a given `WebGLQuery`.
**/
function deleteQueryEXT( query : js.html.webgl.Query ) : Void;
/**
Returns `true` if a given object is a `WebGLQuery`.
**/
function isQueryEXT( query : js.html.webgl.Query ) : Bool;
/**
The timer starts when all commands prior to `beginQueryEXT` have been fully executed.
**/
function beginQueryEXT( target : Int, query : js.html.webgl.Query ) : Void;
/**
The timer stops when all commands prior to `endQueryEXT` have been fully executed.
**/
function endQueryEXT( target : Int ) : Void;
/**
Records the current time into the corresponding query object.
**/
function queryCounterEXT( query : js.html.webgl.Query, target : Int ) : Void;
/**
Returns information about a query target.
**/
function getQueryEXT( target : Int, pname : Int ) : Dynamic;
/**
Return the state of a query object.
**/
function getQueryObjectEXT( query : js.html.webgl.Query, pname : Int ) : Dynamic;
}

View File

@ -0,0 +1,28 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
typedef EXTFragDepth = {
}

View File

@ -0,0 +1,28 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
typedef EXTShaderTextureLod = {
}

View File

@ -0,0 +1,57 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `EXT_sRGB` extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects.
Documentation [EXT_sRGB](https://developer.mozilla.org/en-US/docs/Web/API/EXT_sRGB) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/EXT_sRGB$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/EXT_sRGB>
**/
@:native("EXT_sRGB")
extern class EXTSrgb {
/**
Unsized sRGB format that leaves the precision up to the driver.
**/
static inline var SRGB_EXT : Int = 35904;
/**
Unsized sRGB format with unsized alpha component.
**/
static inline var SRGB_ALPHA_EXT : Int = 35906;
/**
Sized (8-bit) sRGB and alpha formats.
**/
static inline var SRGB8_ALPHA8_EXT : Int = 35907;
/**
Returns the framebuffer color encoding (`gl.LINEAR` or `ext.SRGB_EXT`).
**/
static inline var FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT : Int = 33296;
}

View File

@ -0,0 +1,47 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `EXT_texture_filter_anisotropic` extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF).
Documentation [EXT_texture_filter_anisotropic](https://developer.mozilla.org/en-US/docs/Web/API/EXT_texture_filter_anisotropic) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/EXT_texture_filter_anisotropic$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/EXT_texture_filter_anisotropic>
**/
@:native("EXT_texture_filter_anisotropic")
extern class EXTTextureFilterAnisotropic {
/**
This is the `pname` argument to the `WebGLRenderingContext.getTexParameter` and `WebGLRenderingContext.texParameterf` / `WebGLRenderingContext.texParameteri` calls and sets the desired maximum anisotropy for a texture.
**/
static inline var TEXTURE_MAX_ANISOTROPY_EXT : Int = 34046;
/**
This is the `pname` argument to the `WebGLRenderingContext.getParameter` call, and it returns the maximum available anisotropy.
**/
static inline var MAX_TEXTURE_MAX_ANISOTROPY_EXT : Int = 34047;
}

View File

@ -0,0 +1,28 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
typedef OESElementIndexUint = {
}

View File

@ -0,0 +1,42 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `OES_standard_derivatives` extension is part of the WebGL API and adds the GLSL derivative functions `dFdx`, `dFdy`, and `fwidth`.
Documentation [OES_standard_derivatives](https://developer.mozilla.org/en-US/docs/Web/API/OES_standard_derivatives) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/OES_standard_derivatives$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/OES_standard_derivatives>
**/
@:native("OES_standard_derivatives")
extern class OESStandardDerivatives {
/**
A `Glenum` indicating the accuracy of the derivative calculation for the GLSL built-in functions: `dFdx`, `dFdy`, and `fwidth`.
**/
static inline var FRAGMENT_SHADER_DERIVATIVE_HINT_OES : Int = 35723;
}

View File

@ -0,0 +1,28 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
typedef OESTextureFloat = {
}

View File

@ -0,0 +1,28 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
typedef OESTextureFloatLinear = {
}

View File

@ -0,0 +1,42 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `OES_texture_half_float` extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components.
Documentation [OES_texture_half_float](https://developer.mozilla.org/en-US/docs/Web/API/OES_texture_half_float) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/OES_texture_half_float$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/OES_texture_half_float>
**/
@:native("OES_texture_half_float")
extern class OESTextureHalfFloat {
/**
Half floating-point type (16-bit).
**/
static inline var HALF_FLOAT_OES : Int = 36193;
}

View File

@ -0,0 +1,28 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
typedef OESTextureHalfFloatLinear = {
}

View File

@ -0,0 +1,70 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The OES_vertex_array_object extension is part of the WebGL API and provides vertex array objects (VAOs) which encapsulate vertex array states. These objects keep pointers to vertex data and provide names for different sets of vertex data.
Documentation [OES_vertex_array_object](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object>
**/
@:native("OES_vertex_array_object")
extern class OESVertexArrayObject {
/**
Returns a `WebGLVertexArrayObject` object when used in the `WebGLRenderingContext.getParameter()` method as the `pname` parameter.
**/
static inline var VERTEX_ARRAY_BINDING_OES : Int = 34229;
/**
Creates a new `WebGLVertexArrayObject`.
**/
function createVertexArrayOES() : js.html.webgl.VertexArrayObject;
/**
Deletes a given `WebGLVertexArrayObject`.
**/
function deleteVertexArrayOES( arrayObject : js.html.webgl.VertexArrayObject ) : Void;
/**
Returns `true` if a given object is a `WebGLVertexArrayObject`.
**/
function isVertexArrayOES( arrayObject : js.html.webgl.VertexArrayObject ) : Bool;
/**
Binds a given `WebGLVertexArrayObject` to the buffer.
**/
function bindVertexArrayOES( arrayObject : js.html.webgl.VertexArrayObject ) : Void;
}

View File

@ -0,0 +1,57 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `WEBGL_color_buffer_float` extension is part of the WebGL API and adds the ability to render to 32-bit floating-point color buffers.
Documentation [WEBGL_color_buffer_float](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_color_buffer_float) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_color_buffer_float$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_color_buffer_float>
**/
@:native("WEBGL_color_buffer_float")
extern class WEBGLColorBufferFloat {
/**
RGBA 32-bit floating-point color-renderable format.
**/
static inline var RGBA32F_EXT : Int = 34836;
/**
RGB 32-bit floating-point color-renderable format.
**/
static inline var RGB32F_EXT : Int = 34837;
/**
?
**/
static inline var FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT : Int = 33297;
/**
?
**/
static inline var UNSIGNED_NORMALIZED_EXT : Int = 35863;
}

View File

@ -0,0 +1,66 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `WEBGL_compressed_texture_astc` extension is part of the WebGL API and exposes Adaptive Scalable Texture Compression (ASTC) compressed texture formats to WebGL.
Documentation [WEBGL_compressed_texture_astc](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_astc) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_astc$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_astc>
**/
@:native("WEBGL_compressed_texture_astc")
extern class WEBGLCompressedTextureAstc {
static inline var COMPRESSED_RGBA_ASTC_4x4_KHR : Int = 37808;
static inline var COMPRESSED_RGBA_ASTC_5x4_KHR : Int = 37809;
static inline var COMPRESSED_RGBA_ASTC_5x5_KHR : Int = 37810;
static inline var COMPRESSED_RGBA_ASTC_6x5_KHR : Int = 37811;
static inline var COMPRESSED_RGBA_ASTC_6x6_KHR : Int = 37812;
static inline var COMPRESSED_RGBA_ASTC_8x5_KHR : Int = 37813;
static inline var COMPRESSED_RGBA_ASTC_8x6_KHR : Int = 37814;
static inline var COMPRESSED_RGBA_ASTC_8x8_KHR : Int = 37815;
static inline var COMPRESSED_RGBA_ASTC_10x5_KHR : Int = 37816;
static inline var COMPRESSED_RGBA_ASTC_10x6_KHR : Int = 37817;
static inline var COMPRESSED_RGBA_ASTC_10x8_KHR : Int = 37818;
static inline var COMPRESSED_RGBA_ASTC_10x10_KHR : Int = 37819;
static inline var COMPRESSED_RGBA_ASTC_12x10_KHR : Int = 37820;
static inline var COMPRESSED_RGBA_ASTC_12x12_KHR : Int = 37821;
static inline var COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR : Int = 37840;
static inline var COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR : Int = 37841;
static inline var COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR : Int = 37842;
static inline var COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR : Int = 37843;
static inline var COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR : Int = 37844;
static inline var COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR : Int = 37845;
static inline var COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR : Int = 37846;
static inline var COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR : Int = 37847;
static inline var COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR : Int = 37848;
static inline var COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR : Int = 37849;
static inline var COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR : Int = 37850;
static inline var COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR : Int = 37851;
static inline var COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR : Int = 37852;
static inline var COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR : Int = 37853;
function getSupportedProfiles() : Array<String>;
}

View File

@ -0,0 +1,52 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `WEBGL_compressed_texture_atc` extension is part of the WebGL API and exposes 3 ATC compressed texture formats. ATC is a proprietary compression algorithm for compressing textures on handheld devices.
Documentation [WEBGL_compressed_texture_atc](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_atc) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_atc$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_atc>
**/
@:native("WEBGL_compressed_texture_atc")
extern class WEBGLCompressedTextureAtc {
/**
Compresses RGB textures with no alpha channel.
**/
static inline var COMPRESSED_RGB_ATC_WEBGL : Int = 35986;
/**
Compresses RGBA textures using explicit alpha encoding (useful when alpha transitions are sharp).
**/
static inline var COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL : Int = 35987;
/**
Compresses RGBA textures using interpolated alpha encoding (useful when alpha transitions are gradient).
**/
static inline var COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL : Int = 34798;
}

View File

@ -0,0 +1,87 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `WEBGL_compressed_texture_etc` extension is part of the WebGL API and exposes 10 ETC/EAC compressed texture formats.
Documentation [WEBGL_compressed_texture_etc](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_etc) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_etc$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_etc>
**/
@:native("WEBGL_compressed_texture_etc")
extern class WEBGLCompressedTextureEtc {
/**
One-channel (red) unsigned format compression.
**/
static inline var COMPRESSED_R11_EAC : Int = 37488;
/**
One-channel (red) signed format compression.
**/
static inline var COMPRESSED_SIGNED_R11_EAC : Int = 37489;
/**
Two-channel (red and green) unsigned format compression.
**/
static inline var COMPRESSED_RG11_EAC : Int = 37490;
/**
Two-channel (red and green) signed format compression.
**/
static inline var COMPRESSED_SIGNED_RG11_EAC : Int = 37491;
/**
Compresses RGB8 data with no alpha channel.
**/
static inline var COMPRESSED_RGB8_ETC2 : Int = 37492;
/**
Compresses sRGB8 data with no alpha channel.
**/
static inline var COMPRESSED_SRGB8_ETC2 : Int = 37493;
/**
Similar to `RGB8_ETC`, but with ability to punch through the alpha channel, which means to make it completely opaque or transparent.
**/
static inline var COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 : Int = 37494;
/**
Similar to `SRGB8_ETC`, but with ability to punch through the alpha channel, which means to make it completely opaque or transparent.
**/
static inline var COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 : Int = 37495;
/**
Compresses RGBA8 data. The RGB part is encoded the same as `RGB_ETC2`, but the alpha part is encoded separately.
**/
static inline var COMPRESSED_RGBA8_ETC2_EAC : Int = 37496;
/**
Compresses sRGBA8 data. The sRGB part is encoded the same as `SRGB_ETC2`, but the alpha part is encoded separately.
**/
static inline var COMPRESSED_SRGB8_ALPHA8_ETC2_EAC : Int = 37497;
}

View File

@ -0,0 +1,42 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `WEBGL_compressed_texture_etc1` extension is part of the WebGL API and exposes the ETC1 compressed texture format.
Documentation [WEBGL_compressed_texture_etc1](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_etc1) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_etc1$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_etc1>
**/
@:native("WEBGL_compressed_texture_etc1")
extern class WEBGLCompressedTextureEtc1 {
/**
Compresses 24-bit RGB data with no alpha channel.
**/
static inline var COMPRESSED_RGB_ETC1_WEBGL : Int = 36196;
}

View File

@ -0,0 +1,57 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `WEBGL_compressed_texture_pvrtc` extension is part of the WebGL API and exposes four PVRTC compressed texture formats.
Documentation [WEBGL_compressed_texture_pvrtc](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_pvrtc) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_pvrtc$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_pvrtc>
**/
@:native("WEBGL_compressed_texture_pvrtc")
extern class WEBGLCompressedTexturePvrtc {
/**
RGB compression in 4-bit mode. One block for each 4×4 pixels.
**/
static inline var COMPRESSED_RGB_PVRTC_4BPPV1_IMG : Int = 35840;
/**
RGB compression in 2-bit mode. One block for each 8×4 pixels.
**/
static inline var COMPRESSED_RGB_PVRTC_2BPPV1_IMG : Int = 35841;
/**
RGBA compression in 4-bit mode. One block for each 4×4 pixels.
**/
static inline var COMPRESSED_RGBA_PVRTC_4BPPV1_IMG : Int = 35842;
/**
RGBA compression in 2-bit mode. One block for each 8×4 pixels.
**/
static inline var COMPRESSED_RGBA_PVRTC_2BPPV1_IMG : Int = 35843;
}

View File

@ -0,0 +1,57 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `WEBGL_compressed_texture_s3tc` extension is part of the WebGL API and exposes four S3TC compressed texture formats.
Documentation [WEBGL_compressed_texture_s3tc](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_s3tc) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_s3tc$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_s3tc>
**/
@:native("WEBGL_compressed_texture_s3tc")
extern class WEBGLCompressedTextureS3tc {
/**
A DXT1-compressed image in an RGB image format.
**/
static inline var COMPRESSED_RGB_S3TC_DXT1_EXT : Int = 33776;
/**
A DXT1-compressed image in an RGB image format with a simple on/off alpha value.
**/
static inline var COMPRESSED_RGBA_S3TC_DXT1_EXT : Int = 33777;
/**
A DXT3-compressed image in an RGBA image format. Compared to a 32-bit RGBA texture, it offers 4:1 compression.
**/
static inline var COMPRESSED_RGBA_S3TC_DXT3_EXT : Int = 33778;
/**
A DXT5-compressed image in an RGBA image format. It also provides a 4:1 compression, but differs to the DXT3 compression in how the alpha compression is done.
**/
static inline var COMPRESSED_RGBA_S3TC_DXT5_EXT : Int = 33779;
}

View File

@ -0,0 +1,57 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `WEBGL_compressed_texture_s3tc_srgb` extension is part of the WebGL API and exposes four S3TC compressed texture formats for the sRGB colorspace.
Documentation [WEBGL_compressed_texture_s3tc_srgb](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb>
**/
@:native("WEBGL_compressed_texture_s3tc_srgb")
extern class WEBGLCompressedTextureS3tcSrgb {
/**
A DXT1-compressed image in an sRGB image format.
**/
static inline var COMPRESSED_SRGB_S3TC_DXT1_EXT : Int = 35916;
/**
A DXT1-compressed image in an sRGB image format with a simple on/off alpha value.
**/
static inline var COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT : Int = 35917;
/**
A DXT3-compressed image in an sRGBA image format.
**/
static inline var COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT : Int = 35918;
/**
A DXT5-compressed image in an sRGBA image format.
**/
static inline var COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT : Int = 35919;
}

View File

@ -0,0 +1,39 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `WEBGL_debug_renderer_info` extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes.
Documentation [WEBGL_debug_renderer_info](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info>
**/
@:native("WEBGL_debug_renderer_info")
extern class WEBGLDebugRendererInfo {
static inline var UNMASKED_VENDOR_WEBGL : Int = 37445;
static inline var UNMASKED_RENDERER_WEBGL : Int = 37446;
}

View File

@ -0,0 +1,29 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
typedef WEBGLDebugShaders = {
function getTranslatedShaderSource( shader : js.html.webgl.Shader ) : String;
}

View File

@ -0,0 +1,42 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `WEBGL_depth_texture` extension is part of the WebGL API and defines 2D depth and depth-stencil textures.
Documentation [WEBGL_depth_texture](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_depth_texture) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_depth_texture$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_depth_texture>
**/
@:native("WEBGL_depth_texture")
extern class WEBGLDepthTexture {
/**
Unsigned integer type for 24-bit depth texture data.
**/
static inline var UNSIGNED_INT_24_8_WEBGL : Int = 34042;
}

View File

@ -0,0 +1,94 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
/**
The `WEBGL_draw_buffers` extension is part of the WebGL API and enables a fragment shader to write to several textures, which is useful for deferred shading, for example.
Documentation [WEBGL_draw_buffers](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_draw_buffers) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_draw_buffers$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@see <https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_draw_buffers>
**/
@:native("WEBGL_draw_buffers")
extern class WEBGLDrawBuffers {
/**
A `GLenum` specifying a color buffer.
**/
static inline var COLOR_ATTACHMENT0_WEBGL : Int = 36064;
static inline var COLOR_ATTACHMENT1_WEBGL : Int = 36065;
static inline var COLOR_ATTACHMENT2_WEBGL : Int = 36066;
static inline var COLOR_ATTACHMENT3_WEBGL : Int = 36067;
static inline var COLOR_ATTACHMENT4_WEBGL : Int = 36068;
static inline var COLOR_ATTACHMENT5_WEBGL : Int = 36069;
static inline var COLOR_ATTACHMENT6_WEBGL : Int = 36070;
static inline var COLOR_ATTACHMENT7_WEBGL : Int = 36071;
static inline var COLOR_ATTACHMENT8_WEBGL : Int = 36072;
static inline var COLOR_ATTACHMENT9_WEBGL : Int = 36073;
static inline var COLOR_ATTACHMENT10_WEBGL : Int = 36074;
static inline var COLOR_ATTACHMENT11_WEBGL : Int = 36075;
static inline var COLOR_ATTACHMENT12_WEBGL : Int = 36076;
static inline var COLOR_ATTACHMENT13_WEBGL : Int = 36077;
static inline var COLOR_ATTACHMENT14_WEBGL : Int = 36078;
static inline var COLOR_ATTACHMENT15_WEBGL : Int = 36079;
/**
A `GLenum` returning a draw buffer.
**/
static inline var DRAW_BUFFER0_WEBGL : Int = 34853;
static inline var DRAW_BUFFER1_WEBGL : Int = 34854;
static inline var DRAW_BUFFER2_WEBGL : Int = 34855;
static inline var DRAW_BUFFER3_WEBGL : Int = 34856;
static inline var DRAW_BUFFER4_WEBGL : Int = 34857;
static inline var DRAW_BUFFER5_WEBGL : Int = 34858;
static inline var DRAW_BUFFER6_WEBGL : Int = 34859;
static inline var DRAW_BUFFER7_WEBGL : Int = 34860;
static inline var DRAW_BUFFER8_WEBGL : Int = 34861;
static inline var DRAW_BUFFER9_WEBGL : Int = 34862;
static inline var DRAW_BUFFER10_WEBGL : Int = 34863;
static inline var DRAW_BUFFER11_WEBGL : Int = 34864;
static inline var DRAW_BUFFER12_WEBGL : Int = 34865;
static inline var DRAW_BUFFER13_WEBGL : Int = 34866;
static inline var DRAW_BUFFER14_WEBGL : Int = 34867;
static inline var DRAW_BUFFER15_WEBGL : Int = 34868;
/**
A `GLint` indicating the maximum number of framebuffer color attachment points.
**/
static inline var MAX_COLOR_ATTACHMENTS_WEBGL : Int = 36063;
/**
A `GLint` indicating the maximum number of draw buffers.
**/
static inline var MAX_DRAW_BUFFERS_WEBGL : Int = 34852;
/**
Defines the draw buffers to which all fragment colors are written. (When using `WebGL2RenderingContext`, this method is available as `WebGL2RenderingContext.drawBuffers()` by default).
**/
function drawBuffersWEBGL( buffers : Array<Int> ) : Void;
}

View File

@ -0,0 +1,30 @@
/*
* Copyright (C)2005-2019 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. Do not edit!
package js.html.webgl.extension;
typedef WEBGLLoseContext = {
function loseContext() : Void;
function restoreContext() : Void;
}