@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.
Files changed (55) hide show
  1. package/lib/esm/conformance/attribs.spec.js +312 -293
  2. package/lib/esm/conformance/buffers.spec.js +217 -200
  3. package/lib/esm/conformance/context.spec.js +295 -295
  4. package/lib/esm/conformance/programs.spec.js +458 -445
  5. package/lib/esm/conformance/rendering-basic.spec.js +134 -128
  6. package/lib/esm/conformance/rendering.spec.js +502 -400
  7. package/lib/esm/conformance/setup.js +42 -31
  8. package/lib/esm/conformance/state.spec.js +360 -343
  9. package/lib/esm/conformance/textures.spec.js +330 -338
  10. package/lib/esm/conformance/uniforms.spec.js +465 -309
  11. package/lib/esm/conformance-test.js +24 -22
  12. package/lib/esm/extensions/ext-blend-minmax.js +16 -16
  13. package/lib/esm/extensions/ext-color-buffer-float.js +10 -11
  14. package/lib/esm/extensions/ext-color-buffer-half-float.js +10 -11
  15. package/lib/esm/extensions/ext-texture-filter-anisotropic.js +16 -16
  16. package/lib/esm/extensions/oes-element-index-unit.js +11 -12
  17. package/lib/esm/extensions/oes-standard-derivatives.js +15 -15
  18. package/lib/esm/extensions/oes-texture-float-linear.js +11 -12
  19. package/lib/esm/extensions/oes-texture-float.js +11 -12
  20. package/lib/esm/extensions/oes-texture-half-float.js +17 -17
  21. package/lib/esm/extensions/stackgl-destroy-context.js +10 -10
  22. package/lib/esm/extensions/stackgl-resize-drawing-buffer.js +10 -10
  23. package/lib/esm/html-canvas-element.js +64 -64
  24. package/lib/esm/index.js +29 -26
  25. package/lib/esm/linkable.js +49 -49
  26. package/lib/esm/test-utils.js +158 -107
  27. package/lib/esm/test.js +8 -4
  28. package/lib/esm/types/index.js +5 -5
  29. package/lib/esm/utils.js +164 -187
  30. package/lib/esm/webgl-active-info.js +10 -9
  31. package/lib/esm/webgl-bridge.js +162 -147
  32. package/lib/esm/webgl-buffer.js +17 -15
  33. package/lib/esm/webgl-context-attributes.js +23 -22
  34. package/lib/esm/webgl-context-base.js +3039 -3351
  35. package/lib/esm/webgl-drawing-buffer-wrapper.js +10 -9
  36. package/lib/esm/webgl-framebuffer.js +108 -106
  37. package/lib/esm/webgl-program.js +25 -23
  38. package/lib/esm/webgl-query.js +15 -13
  39. package/lib/esm/webgl-renderbuffer.js +23 -21
  40. package/lib/esm/webgl-rendering-context.js +173 -187
  41. package/lib/esm/webgl-sampler.js +15 -13
  42. package/lib/esm/webgl-shader-precision-format.js +10 -9
  43. package/lib/esm/webgl-shader.js +23 -21
  44. package/lib/esm/webgl-sync.js +15 -13
  45. package/lib/esm/webgl-texture-unit.js +12 -11
  46. package/lib/esm/webgl-texture.js +21 -19
  47. package/lib/esm/webgl-transform-feedback.js +15 -13
  48. package/lib/esm/webgl-uniform-location.js +14 -13
  49. package/lib/esm/webgl-vertex-array-object.js +20 -18
  50. package/lib/esm/webgl-vertex-attribute.js +149 -145
  51. package/lib/esm/webgl1.spec.js +1039 -650
  52. package/lib/esm/webgl2-rendering-context.js +1210 -1273
  53. package/lib/esm/webgl2.spec.js +1284 -1252
  54. package/package.json +9 -9
  55. 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
- import buffersTests from "./conformance/buffers.spec.js";
3
- import programsTests from "./conformance/programs.spec.js";
4
- import attribsTests from "./conformance/attribs.spec.js";
5
- import contextTests from "./conformance/context.spec.js";
6
- import renderingBasicTests from "./conformance/rendering-basic.spec.js";
7
- import uniformsTests from "./conformance/uniforms.spec.js";
8
- import stateTests from "./conformance/state.spec.js";
9
- import renderingTests from "./conformance/rendering.spec.js";
10
- import texturesTests from "./conformance/textures.spec.js";
11
- run({
12
- testSuite: async () => {
13
- await buffersTests();
14
- await programsTests();
15
- await attribsTests();
16
- await contextTests();
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
- class EXTBlendMinMax {
2
- constructor() {
3
- this.MIN_EXT = 32775;
4
- this.MAX_EXT = 32776;
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
- let result = null;
9
- const exts = context.getSupportedExtensions();
10
- if (exts && exts.indexOf("EXT_blend_minmax") >= 0) {
11
- result = new EXTBlendMinMax();
12
- }
13
- return result;
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
- export {
16
- EXTBlendMinMax,
17
- getEXTBlendMinMax
18
- };
16
+
17
+ //#endregion
18
+ export { EXTBlendMinMax, getEXTBlendMinMax };
@@ -1,13 +1,12 @@
1
- class EXTColorBufferFloat {
2
- }
1
+ //#region src/ts/extensions/ext-color-buffer-float.ts
2
+ var EXTColorBufferFloat = class {};
3
3
  function getEXTColorBufferFloat(context) {
4
- const exts = context.getSupportedExtensions();
5
- if (exts && exts.indexOf("EXT_color_buffer_float") >= 0) {
6
- return new EXTColorBufferFloat();
7
- }
8
- return null;
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
- export {
11
- EXTColorBufferFloat,
12
- getEXTColorBufferFloat
13
- };
10
+
11
+ //#endregion
12
+ export { EXTColorBufferFloat, getEXTColorBufferFloat };
@@ -1,13 +1,12 @@
1
- class EXTColorBufferHalfFloat {
2
- }
1
+ //#region src/ts/extensions/ext-color-buffer-half-float.ts
2
+ var EXTColorBufferHalfFloat = class {};
3
3
  function getEXTColorBufferHalfFloat(context) {
4
- const exts = context.getSupportedExtensions();
5
- if (exts && exts.indexOf("EXT_color_buffer_half_float") >= 0) {
6
- return new EXTColorBufferHalfFloat();
7
- }
8
- return null;
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
- export {
11
- EXTColorBufferHalfFloat,
12
- getEXTColorBufferHalfFloat
13
- };
10
+
11
+ //#endregion
12
+ export { EXTColorBufferHalfFloat, getEXTColorBufferHalfFloat };
@@ -1,18 +1,18 @@
1
- class EXTTextureFilterAnisotropic {
2
- constructor() {
3
- this.TEXTURE_MAX_ANISOTROPY_EXT = 34046;
4
- this.MAX_TEXTURE_MAX_ANISOTROPY_EXT = 34047;
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
- let result = null;
9
- const exts = context.getSupportedExtensions();
10
- if (exts && exts.indexOf("EXT_texture_filter_anisotropic") >= 0) {
11
- result = new EXTTextureFilterAnisotropic();
12
- }
13
- return result;
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
- export {
16
- EXTTextureFilterAnisotropic,
17
- getEXTTextureFilterAnisotropic
18
- };
16
+
17
+ //#endregion
18
+ export { EXTTextureFilterAnisotropic, getEXTTextureFilterAnisotropic };
@@ -1,14 +1,13 @@
1
- class OESElementIndexUint {
2
- }
1
+ //#region src/ts/extensions/oes-element-index-unit.ts
2
+ var OESElementIndexUint = class {};
3
3
  function getOESElementIndexUint(context) {
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;
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
- export {
12
- OESElementIndexUint,
13
- getOESElementIndexUint
14
- };
11
+
12
+ //#endregion
13
+ export { OESElementIndexUint, getOESElementIndexUint };
@@ -1,17 +1,17 @@
1
- class OESStandardDerivatives {
2
- constructor() {
3
- this.FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 35723;
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
- let result = null;
8
- const exts = context.getSupportedExtensions();
9
- if (exts && exts.indexOf("OES_standard_derivatives") >= 0) {
10
- result = new OESStandardDerivatives();
11
- }
12
- return result;
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
- export {
15
- OESStandardDerivatives,
16
- getOESStandardDerivatives
17
- };
15
+
16
+ //#endregion
17
+ export { OESStandardDerivatives, getOESStandardDerivatives };
@@ -1,14 +1,13 @@
1
- class OESTextureFloatLinear {
2
- }
1
+ //#region src/ts/extensions/oes-texture-float-linear.ts
2
+ var OESTextureFloatLinear = class {};
3
3
  function getOESTextureFloatLinear(context) {
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;
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
- export {
12
- OESTextureFloatLinear,
13
- getOESTextureFloatLinear
14
- };
11
+
12
+ //#endregion
13
+ export { OESTextureFloatLinear, getOESTextureFloatLinear };
@@ -1,14 +1,13 @@
1
- class OESTextureFloat {
2
- }
1
+ //#region src/ts/extensions/oes-texture-float.ts
2
+ var OESTextureFloat = class {};
3
3
  function getOESTextureFloat(context) {
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;
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
- export {
12
- OESTextureFloat,
13
- getOESTextureFloat
14
- };
11
+
12
+ //#endregion
13
+ export { OESTextureFloat, getOESTextureFloat };
@@ -1,19 +1,19 @@
1
- class OESTextureHalfFloat {
2
- constructor() {
3
- this.HALF_FLOAT_OES = 36193;
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
- const exts = context.getSupportedExtensions();
8
- if (exts && exts.indexOf("OES_texture_half_float") >= 0) {
9
- return new OESTextureHalfFloat();
10
- }
11
- if (context._native2) {
12
- return new OESTextureHalfFloat();
13
- }
14
- return null;
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
- export {
17
- OESTextureHalfFloat,
18
- getOESTextureHalfFloat
19
- };
17
+
18
+ //#endregion
19
+ export { OESTextureHalfFloat, getOESTextureHalfFloat };
@@ -1,12 +1,12 @@
1
- class STACKGLDestroyContext {
2
- constructor(ctx) {
3
- this.destroy = ctx.destroy.bind(ctx);
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
- return new STACKGLDestroyContext(ctx);
8
+ return new STACKGLDestroyContext(ctx);
8
9
  }
9
- export {
10
- STACKGLDestroyContext,
11
- getSTACKGLDestroyContext
12
- };
10
+
11
+ //#endregion
12
+ export { STACKGLDestroyContext, getSTACKGLDestroyContext };
@@ -1,12 +1,12 @@
1
- class STACKGLResizeDrawingBuffer {
2
- constructor(ctx) {
3
- this.resize = ctx.resize.bind(ctx);
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
- return new STACKGLResizeDrawingBuffer(ctx);
8
+ return new STACKGLResizeDrawingBuffer(ctx);
8
9
  }
9
- export {
10
- STACKGLResizeDrawingBuffer,
11
- getSTACKGLResizeDrawingBuffer
12
- };
10
+
11
+ //#endregion
12
+ export { STACKGLResizeDrawingBuffer, getSTACKGLResizeDrawingBuffer };
@@ -1,65 +1,65 @@
1
- import { HTMLCanvasElement as BaseHTMLCanvasElement } from "@gjsify/dom-elements";
2
- import { WebGLRenderingContext as OurWebGLRenderingContext } from "./webgl-rendering-context.js";
3
- import { WebGL2RenderingContext as OurWebGL2RenderingContext } from "./webgl2-rendering-context.js";
4
- class HTMLCanvasElement extends BaseHTMLCanvasElement {
5
- constructor(gtkGlArea) {
6
- super();
7
- this.gtkGlArea = gtkGlArea;
8
- }
9
- /** Width from the GTK GLArea allocated size (overrides DOM attr-backed getter). */
10
- get width() {
11
- return this.gtkGlArea.get_allocated_width();
12
- }
13
- set width(_width) {
14
- }
15
- /** Height from the GTK GLArea allocated size (overrides DOM attr-backed getter). */
16
- get height() {
17
- return this.gtkGlArea.get_allocated_height();
18
- }
19
- set height(_height) {
20
- }
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 OurWebGLRenderingContext(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 OurWebGL2RenderingContext(this, options);
57
- }
58
- return this._webgl2;
59
- }
60
- return super.getContext(contextId, options);
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 "@girs/gjs";
2
- import "@girs/gio-2.0";
3
- import "@girs/gtk-4.0";
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
- export * from "./html-canvas-element.js";
9
- export * from "./webgl-bridge.js";
10
- export * from "./webgl-active-info.js";
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 };