@gjsify/webgl 0.3.12 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/conformance/attribs.spec.js +312 -293
- package/lib/esm/conformance/buffers.spec.js +217 -200
- package/lib/esm/conformance/context.spec.js +295 -295
- package/lib/esm/conformance/programs.spec.js +458 -445
- package/lib/esm/conformance/rendering-basic.spec.js +134 -128
- package/lib/esm/conformance/rendering.spec.js +502 -400
- package/lib/esm/conformance/setup.js +42 -31
- package/lib/esm/conformance/state.spec.js +360 -343
- package/lib/esm/conformance/textures.spec.js +330 -338
- package/lib/esm/conformance/uniforms.spec.js +465 -309
- package/lib/esm/conformance-test.js +24 -22
- package/lib/esm/extensions/ext-blend-minmax.js +16 -16
- package/lib/esm/extensions/ext-color-buffer-float.js +10 -11
- package/lib/esm/extensions/ext-color-buffer-half-float.js +10 -11
- package/lib/esm/extensions/ext-texture-filter-anisotropic.js +16 -16
- package/lib/esm/extensions/oes-element-index-unit.js +11 -12
- package/lib/esm/extensions/oes-standard-derivatives.js +15 -15
- package/lib/esm/extensions/oes-texture-float-linear.js +11 -12
- package/lib/esm/extensions/oes-texture-float.js +11 -12
- package/lib/esm/extensions/oes-texture-half-float.js +17 -17
- package/lib/esm/extensions/stackgl-destroy-context.js +10 -10
- package/lib/esm/extensions/stackgl-resize-drawing-buffer.js +10 -10
- package/lib/esm/html-canvas-element.js +64 -64
- package/lib/esm/index.js +29 -26
- package/lib/esm/linkable.js +49 -49
- package/lib/esm/test-utils.js +158 -107
- package/lib/esm/test.js +8 -4
- package/lib/esm/types/index.js +5 -5
- package/lib/esm/utils.js +164 -187
- package/lib/esm/webgl-active-info.js +10 -9
- package/lib/esm/webgl-bridge.js +162 -147
- package/lib/esm/webgl-buffer.js +17 -15
- package/lib/esm/webgl-context-attributes.js +23 -22
- package/lib/esm/webgl-context-base.js +3039 -3351
- package/lib/esm/webgl-drawing-buffer-wrapper.js +10 -9
- package/lib/esm/webgl-framebuffer.js +108 -106
- package/lib/esm/webgl-program.js +25 -23
- package/lib/esm/webgl-query.js +15 -13
- package/lib/esm/webgl-renderbuffer.js +23 -21
- package/lib/esm/webgl-rendering-context.js +173 -187
- package/lib/esm/webgl-sampler.js +15 -13
- package/lib/esm/webgl-shader-precision-format.js +10 -9
- package/lib/esm/webgl-shader.js +23 -21
- package/lib/esm/webgl-sync.js +15 -13
- package/lib/esm/webgl-texture-unit.js +12 -11
- package/lib/esm/webgl-texture.js +21 -19
- package/lib/esm/webgl-transform-feedback.js +15 -13
- package/lib/esm/webgl-uniform-location.js +14 -13
- package/lib/esm/webgl-vertex-array-object.js +20 -18
- package/lib/esm/webgl-vertex-attribute.js +149 -145
- package/lib/esm/webgl1.spec.js +1039 -650
- package/lib/esm/webgl2-rendering-context.js +1210 -1273
- package/lib/esm/webgl2.spec.js +1284 -1252
- package/package.json +9 -9
- package/lib/esm/@types/glsl-tokenizer/index.d.js +0 -0
|
@@ -1,23 +1,25 @@
|
|
|
1
|
+
import buffers_spec_default from "./conformance/buffers.spec.js";
|
|
2
|
+
import programs_spec_default from "./conformance/programs.spec.js";
|
|
3
|
+
import attribs_spec_default from "./conformance/attribs.spec.js";
|
|
4
|
+
import context_spec_default from "./conformance/context.spec.js";
|
|
5
|
+
import rendering_basic_spec_default from "./conformance/rendering-basic.spec.js";
|
|
6
|
+
import uniforms_spec_default from "./conformance/uniforms.spec.js";
|
|
7
|
+
import state_spec_default from "./conformance/state.spec.js";
|
|
8
|
+
import rendering_spec_default from "./conformance/rendering.spec.js";
|
|
9
|
+
import textures_spec_default from "./conformance/textures.spec.js";
|
|
1
10
|
import { run } from "@gjsify/unit";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
await renderingBasicTests();
|
|
18
|
-
await uniformsTests();
|
|
19
|
-
await stateTests();
|
|
20
|
-
await renderingTests();
|
|
21
|
-
await texturesTests();
|
|
22
|
-
}
|
|
23
|
-
});
|
|
11
|
+
|
|
12
|
+
//#region src/ts/conformance-test.ts
|
|
13
|
+
run({ testSuite: async () => {
|
|
14
|
+
await buffers_spec_default();
|
|
15
|
+
await programs_spec_default();
|
|
16
|
+
await attribs_spec_default();
|
|
17
|
+
await context_spec_default();
|
|
18
|
+
await rendering_basic_spec_default();
|
|
19
|
+
await uniforms_spec_default();
|
|
20
|
+
await state_spec_default();
|
|
21
|
+
await rendering_spec_default();
|
|
22
|
+
await textures_spec_default();
|
|
23
|
+
} });
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
//#region src/ts/extensions/ext-blend-minmax.ts
|
|
2
|
+
var EXTBlendMinMax = class {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.MIN_EXT = 32775;
|
|
5
|
+
this.MAX_EXT = 32776;
|
|
6
|
+
}
|
|
7
|
+
};
|
|
7
8
|
function getEXTBlendMinMax(context) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
let result = null;
|
|
10
|
+
const exts = context.getSupportedExtensions();
|
|
11
|
+
if (exts && exts.indexOf("EXT_blend_minmax") >= 0) {
|
|
12
|
+
result = new EXTBlendMinMax();
|
|
13
|
+
}
|
|
14
|
+
return result;
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { EXTBlendMinMax, getEXTBlendMinMax };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
}
|
|
1
|
+
//#region src/ts/extensions/ext-color-buffer-float.ts
|
|
2
|
+
var EXTColorBufferFloat = class {};
|
|
3
3
|
function getEXTColorBufferFloat(context) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
const exts = context.getSupportedExtensions();
|
|
5
|
+
if (exts && exts.indexOf("EXT_color_buffer_float") >= 0) {
|
|
6
|
+
return new EXTColorBufferFloat();
|
|
7
|
+
}
|
|
8
|
+
return null;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { EXTColorBufferFloat, getEXTColorBufferFloat };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
}
|
|
1
|
+
//#region src/ts/extensions/ext-color-buffer-half-float.ts
|
|
2
|
+
var EXTColorBufferHalfFloat = class {};
|
|
3
3
|
function getEXTColorBufferHalfFloat(context) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
const exts = context.getSupportedExtensions();
|
|
5
|
+
if (exts && exts.indexOf("EXT_color_buffer_half_float") >= 0) {
|
|
6
|
+
return new EXTColorBufferHalfFloat();
|
|
7
|
+
}
|
|
8
|
+
return null;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { EXTColorBufferHalfFloat, getEXTColorBufferHalfFloat };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
//#region src/ts/extensions/ext-texture-filter-anisotropic.ts
|
|
2
|
+
var EXTTextureFilterAnisotropic = class {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.TEXTURE_MAX_ANISOTROPY_EXT = 34046;
|
|
5
|
+
this.MAX_TEXTURE_MAX_ANISOTROPY_EXT = 34047;
|
|
6
|
+
}
|
|
7
|
+
};
|
|
7
8
|
function getEXTTextureFilterAnisotropic(context) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
let result = null;
|
|
10
|
+
const exts = context.getSupportedExtensions();
|
|
11
|
+
if (exts && exts.indexOf("EXT_texture_filter_anisotropic") >= 0) {
|
|
12
|
+
result = new EXTTextureFilterAnisotropic();
|
|
13
|
+
}
|
|
14
|
+
return result;
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { EXTTextureFilterAnisotropic, getEXTTextureFilterAnisotropic };
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
}
|
|
1
|
+
//#region src/ts/extensions/oes-element-index-unit.ts
|
|
2
|
+
var OESElementIndexUint = class {};
|
|
3
3
|
function getOESElementIndexUint(context) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
let result = null;
|
|
5
|
+
const exts = context.getSupportedExtensions();
|
|
6
|
+
if (exts && exts.indexOf("OES_element_index_uint") >= 0) {
|
|
7
|
+
result = new OESElementIndexUint();
|
|
8
|
+
}
|
|
9
|
+
return result;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { OESElementIndexUint, getOESElementIndexUint };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
//#region src/ts/extensions/oes-standard-derivatives.ts
|
|
2
|
+
var OESStandardDerivatives = class {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 35723;
|
|
5
|
+
}
|
|
6
|
+
};
|
|
6
7
|
function getOESStandardDerivatives(context) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
let result = null;
|
|
9
|
+
const exts = context.getSupportedExtensions();
|
|
10
|
+
if (exts && exts.indexOf("OES_standard_derivatives") >= 0) {
|
|
11
|
+
result = new OESStandardDerivatives();
|
|
12
|
+
}
|
|
13
|
+
return result;
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { OESStandardDerivatives, getOESStandardDerivatives };
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
}
|
|
1
|
+
//#region src/ts/extensions/oes-texture-float-linear.ts
|
|
2
|
+
var OESTextureFloatLinear = class {};
|
|
3
3
|
function getOESTextureFloatLinear(context) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
let result = null;
|
|
5
|
+
const exts = context.getSupportedExtensions();
|
|
6
|
+
if (exts && exts.indexOf("OES_texture_float_linear") >= 0) {
|
|
7
|
+
result = new OESTextureFloatLinear();
|
|
8
|
+
}
|
|
9
|
+
return result;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { OESTextureFloatLinear, getOESTextureFloatLinear };
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
}
|
|
1
|
+
//#region src/ts/extensions/oes-texture-float.ts
|
|
2
|
+
var OESTextureFloat = class {};
|
|
3
3
|
function getOESTextureFloat(context) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
let result = null;
|
|
5
|
+
const exts = context.getSupportedExtensions();
|
|
6
|
+
if (exts && exts.indexOf("OES_texture_float") >= 0) {
|
|
7
|
+
result = new OESTextureFloat();
|
|
8
|
+
}
|
|
9
|
+
return result;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { OESTextureFloat, getOESTextureFloat };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
//#region src/ts/extensions/oes-texture-half-float.ts
|
|
2
|
+
var OESTextureHalfFloat = class {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.HALF_FLOAT_OES = 36193;
|
|
5
|
+
}
|
|
6
|
+
};
|
|
6
7
|
function getOESTextureHalfFloat(context) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
const exts = context.getSupportedExtensions();
|
|
9
|
+
if (exts && exts.indexOf("OES_texture_half_float") >= 0) {
|
|
10
|
+
return new OESTextureHalfFloat();
|
|
11
|
+
}
|
|
12
|
+
if (context._native2) {
|
|
13
|
+
return new OESTextureHalfFloat();
|
|
14
|
+
}
|
|
15
|
+
return null;
|
|
15
16
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { OESTextureHalfFloat, getOESTextureHalfFloat };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
//#region src/ts/extensions/stackgl-destroy-context.ts
|
|
2
|
+
var STACKGLDestroyContext = class {
|
|
3
|
+
constructor(ctx) {
|
|
4
|
+
this.destroy = ctx.destroy.bind(ctx);
|
|
5
|
+
}
|
|
6
|
+
};
|
|
6
7
|
function getSTACKGLDestroyContext(ctx) {
|
|
7
|
-
|
|
8
|
+
return new STACKGLDestroyContext(ctx);
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { STACKGLDestroyContext, getSTACKGLDestroyContext };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
//#region src/ts/extensions/stackgl-resize-drawing-buffer.ts
|
|
2
|
+
var STACKGLResizeDrawingBuffer = class {
|
|
3
|
+
constructor(ctx) {
|
|
4
|
+
this.resize = ctx.resize.bind(ctx);
|
|
5
|
+
}
|
|
6
|
+
};
|
|
6
7
|
function getSTACKGLResizeDrawingBuffer(ctx) {
|
|
7
|
-
|
|
8
|
+
return new STACKGLResizeDrawingBuffer(ctx);
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { STACKGLResizeDrawingBuffer, getSTACKGLResizeDrawingBuffer };
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
export {
|
|
64
|
-
HTMLCanvasElement
|
|
1
|
+
import { WebGLRenderingContext } from "./webgl-rendering-context.js";
|
|
2
|
+
import { WebGL2RenderingContext } from "./webgl2-rendering-context.js";
|
|
3
|
+
import { HTMLCanvasElement as HTMLCanvasElement$1 } from "@gjsify/dom-elements";
|
|
4
|
+
|
|
5
|
+
//#region src/ts/html-canvas-element.ts
|
|
6
|
+
var HTMLCanvasElement = class extends HTMLCanvasElement$1 {
|
|
7
|
+
constructor(gtkGlArea) {
|
|
8
|
+
super();
|
|
9
|
+
this.gtkGlArea = gtkGlArea;
|
|
10
|
+
}
|
|
11
|
+
/** Width from the GTK GLArea allocated size (overrides DOM attr-backed getter). */
|
|
12
|
+
get width() {
|
|
13
|
+
return this.gtkGlArea.get_allocated_width();
|
|
14
|
+
}
|
|
15
|
+
set width(_width) {}
|
|
16
|
+
/** Height from the GTK GLArea allocated size (overrides DOM attr-backed getter). */
|
|
17
|
+
get height() {
|
|
18
|
+
return this.gtkGlArea.get_allocated_height();
|
|
19
|
+
}
|
|
20
|
+
set height(_height) {}
|
|
21
|
+
get clientWidth() {
|
|
22
|
+
return this.width;
|
|
23
|
+
}
|
|
24
|
+
get clientHeight() {
|
|
25
|
+
return this.height;
|
|
26
|
+
}
|
|
27
|
+
/** CSS layout width — same as the GTK-allocated pixel width for a full-window canvas. */
|
|
28
|
+
get offsetWidth() {
|
|
29
|
+
return this.width;
|
|
30
|
+
}
|
|
31
|
+
/** CSS layout height — same as the GTK-allocated pixel height for a full-window canvas. */
|
|
32
|
+
get offsetHeight() {
|
|
33
|
+
return this.height;
|
|
34
|
+
}
|
|
35
|
+
/** Returns the underlying Gtk.GLArea. Used by WebGLRenderingContext for GLSL version detection. */
|
|
36
|
+
getGlArea() {
|
|
37
|
+
return this.gtkGlArea;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns a WebGL rendering context backed by the underlying Gtk.GLArea.
|
|
41
|
+
* 'webgl' and 'experimental-webgl' return a WebGLRenderingContext (WebGL 1.0).
|
|
42
|
+
* 'webgl2' returns a WebGL2RenderingContext (WebGL 2.0).
|
|
43
|
+
* Other context types emit a warning and return null.
|
|
44
|
+
*/
|
|
45
|
+
getContext(contextId, options) {
|
|
46
|
+
if (contextId === "webgl" || contextId === "experimental-webgl") {
|
|
47
|
+
if (!this._webgl) {
|
|
48
|
+
this.gtkGlArea.make_current();
|
|
49
|
+
this._webgl = new WebGLRenderingContext(this, options);
|
|
50
|
+
}
|
|
51
|
+
return this._webgl;
|
|
52
|
+
}
|
|
53
|
+
if (contextId === "webgl2") {
|
|
54
|
+
if (!this._webgl2) {
|
|
55
|
+
this.gtkGlArea.make_current();
|
|
56
|
+
this._webgl2 = new WebGL2RenderingContext(this, options);
|
|
57
|
+
}
|
|
58
|
+
return this._webgl2;
|
|
59
|
+
}
|
|
60
|
+
return super.getContext(contextId, options);
|
|
61
|
+
}
|
|
65
62
|
};
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
export { HTMLCanvasElement };
|
package/lib/esm/index.js
CHANGED
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
1
|
+
import { WebGLContextAttributes } from "./webgl-context-attributes.js";
|
|
2
|
+
import { WebGLUniformLocation } from "./webgl-uniform-location.js";
|
|
3
|
+
import { WebGLActiveInfo } from "./webgl-active-info.js";
|
|
4
|
+
import { WebGLFramebuffer } from "./webgl-framebuffer.js";
|
|
5
|
+
import { WebGLBuffer } from "./webgl-buffer.js";
|
|
6
|
+
import { WebGLDrawingBufferWrapper } from "./webgl-drawing-buffer-wrapper.js";
|
|
7
|
+
import { WebGLProgram } from "./webgl-program.js";
|
|
8
|
+
import { WebGLRenderbuffer } from "./webgl-renderbuffer.js";
|
|
9
|
+
import { WebGLShader } from "./webgl-shader.js";
|
|
10
|
+
import { WebGLShaderPrecisionFormat } from "./webgl-shader-precision-format.js";
|
|
11
|
+
import { WebGLTextureUnit } from "./webgl-texture-unit.js";
|
|
12
|
+
import { WebGLTexture } from "./webgl-texture.js";
|
|
13
|
+
import { WebGLVertexArrayGlobalAttribute, WebGLVertexArrayGlobalState, WebGLVertexArrayObjectAttribute, WebGLVertexArrayObjectState } from "./webgl-vertex-attribute.js";
|
|
14
|
+
import { WebGLContextBase } from "./webgl-context-base.js";
|
|
4
15
|
import { WebGLRenderingContext } from "./webgl-rendering-context.js";
|
|
16
|
+
import { WebGLQuery } from "./webgl-query.js";
|
|
17
|
+
import { WebGLSampler } from "./webgl-sampler.js";
|
|
18
|
+
import { WebGLSync } from "./webgl-sync.js";
|
|
19
|
+
import { WebGLTransformFeedback } from "./webgl-transform-feedback.js";
|
|
20
|
+
import { WebGLVertexArrayObject } from "./webgl-vertex-array-object.js";
|
|
5
21
|
import { WebGL2RenderingContext } from "./webgl2-rendering-context.js";
|
|
22
|
+
import { HTMLCanvasElement } from "./html-canvas-element.js";
|
|
23
|
+
import { WebGLBridge } from "./webgl-bridge.js";
|
|
24
|
+
import "@girs/gtk-4.0";
|
|
25
|
+
import "@girs/gjs";
|
|
26
|
+
import "@girs/gio-2.0";
|
|
27
|
+
|
|
28
|
+
//#region src/ts/index.ts
|
|
6
29
|
globalThis.WebGLRenderingContext = WebGLRenderingContext;
|
|
7
30
|
globalThis.WebGL2RenderingContext = WebGL2RenderingContext;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export
|
|
11
|
-
export * from "./webgl-buffer.js";
|
|
12
|
-
export * from "./webgl-context-attributes.js";
|
|
13
|
-
export * from "./webgl-drawing-buffer-wrapper.js";
|
|
14
|
-
export * from "./webgl-framebuffer.js";
|
|
15
|
-
export * from "./webgl-program.js";
|
|
16
|
-
export * from "./webgl-renderbuffer.js";
|
|
17
|
-
export * from "./webgl-query.js";
|
|
18
|
-
export * from "./webgl-context-base.js";
|
|
19
|
-
export * from "./webgl-rendering-context.js";
|
|
20
|
-
export * from "./webgl-sampler.js";
|
|
21
|
-
export * from "./webgl-shader-precision-format.js";
|
|
22
|
-
export * from "./webgl-sync.js";
|
|
23
|
-
export * from "./webgl-transform-feedback.js";
|
|
24
|
-
export * from "./webgl-vertex-array-object.js";
|
|
25
|
-
export * from "./webgl2-rendering-context.js";
|
|
26
|
-
export * from "./webgl-shader.js";
|
|
27
|
-
export * from "./webgl-texture-unit.js";
|
|
28
|
-
export * from "./webgl-texture.js";
|
|
29
|
-
export * from "./webgl-uniform-location.js";
|
|
30
|
-
export * from "./webgl-vertex-attribute.js";
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { HTMLCanvasElement, WebGL2RenderingContext, WebGLActiveInfo, WebGLBridge, WebGLBuffer, WebGLContextAttributes, WebGLContextBase, WebGLDrawingBufferWrapper, WebGLFramebuffer, WebGLProgram, WebGLQuery, WebGLRenderbuffer, WebGLRenderingContext, WebGLSampler, WebGLShader, WebGLShaderPrecisionFormat, WebGLSync, WebGLTexture, WebGLTextureUnit, WebGLTransformFeedback, WebGLUniformLocation, WebGLVertexArrayGlobalAttribute, WebGLVertexArrayGlobalState, WebGLVertexArrayObject, WebGLVertexArrayObjectAttribute, WebGLVertexArrayObjectState };
|