@gjsify/webgl 0.0.2 → 0.0.4
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/cjs/extensions/ext-blend-minmax.js +4 -23
- package/lib/cjs/extensions/ext-texture-filter-anisotropic.js +4 -23
- package/lib/cjs/extensions/oes-element-index-unit.js +4 -23
- package/lib/cjs/extensions/oes-standard-derivatives.js +4 -23
- package/lib/cjs/extensions/oes-texture-float-linear.js +4 -23
- package/lib/cjs/extensions/oes-texture-float.js +4 -23
- package/lib/cjs/extensions/stackgl-destroy-context.js +4 -23
- package/lib/cjs/extensions/stackgl-resize-drawing-buffer.js +4 -23
- package/lib/cjs/html-canvas-element.js +15 -34
- package/lib/cjs/index.js +18 -34
- package/lib/cjs/index.spec.js +51 -80
- package/lib/cjs/linkable.js +3 -22
- package/lib/cjs/test.js +3 -25
- package/lib/cjs/types/constructor.js +0 -15
- package/lib/cjs/types/extension.js +0 -15
- package/lib/cjs/types/index.js +5 -21
- package/lib/cjs/types/typed-array.js +0 -15
- package/lib/cjs/types/webgl-constants.js +0 -15
- package/lib/cjs/types/webgl-context-attribute-options.js +0 -15
- package/lib/cjs/utils.js +24 -53
- package/lib/cjs/webgl-active-info.js +3 -22
- package/lib/cjs/webgl-buffer.js +6 -25
- package/lib/cjs/webgl-context-attributes.js +4 -23
- package/lib/cjs/webgl-drawing-buffer-wrapper.js +3 -22
- package/lib/cjs/webgl-framebuffer.js +6 -25
- package/lib/cjs/webgl-program.js +6 -25
- package/lib/cjs/webgl-renderbuffer.js +6 -25
- package/lib/cjs/webgl-rendering-context.js +204 -216
- package/lib/cjs/webgl-shader-precision-format.js +4 -23
- package/lib/cjs/webgl-shader.js +6 -25
- package/lib/cjs/webgl-texture-unit.js +3 -22
- package/lib/cjs/webgl-texture.js +6 -25
- package/lib/cjs/webgl-uniform-location.js +4 -23
- package/lib/cjs/webgl-vertex-attribute.js +9 -28
- package/lib/types/html-canvas-element.d.ts +1 -0
- package/lib/types/webgl-rendering-context.d.ts +1 -0
- package/package.json +11 -11
- package/test.gjs.js +524 -559
- package/tmp/.tsbuildinfo +1 -1
- package/tsconfig.json +1 -1
|
@@ -1,28 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var webgl_framebuffer_exports = {};
|
|
19
|
-
__export(webgl_framebuffer_exports, {
|
|
20
|
-
GjsifyWebGLFramebuffer: () => GjsifyWebGLFramebuffer,
|
|
21
|
-
WebGLFramebuffer: () => GjsifyWebGLFramebuffer
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(webgl_framebuffer_exports);
|
|
24
|
-
var import_linkable = require("./linkable.js");
|
|
25
|
-
class GjsifyWebGLFramebuffer extends import_linkable.Linkable {
|
|
1
|
+
import { Linkable } from "./linkable.js";
|
|
2
|
+
class GjsifyWebGLFramebuffer extends Linkable {
|
|
26
3
|
constructor(_, ctx) {
|
|
27
4
|
super(_);
|
|
28
5
|
this._binding = 0;
|
|
@@ -126,3 +103,7 @@ class GjsifyWebGLFramebuffer extends import_linkable.Linkable {
|
|
|
126
103
|
ctx.deleteFramebuffer.call(ctx, this);
|
|
127
104
|
}
|
|
128
105
|
}
|
|
106
|
+
export {
|
|
107
|
+
GjsifyWebGLFramebuffer,
|
|
108
|
+
GjsifyWebGLFramebuffer as WebGLFramebuffer
|
|
109
|
+
};
|
package/lib/cjs/webgl-program.js
CHANGED
|
@@ -1,28 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var webgl_program_exports = {};
|
|
19
|
-
__export(webgl_program_exports, {
|
|
20
|
-
GjsifyWebGLProgram: () => GjsifyWebGLProgram,
|
|
21
|
-
WebGLProgram: () => GjsifyWebGLProgram
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(webgl_program_exports);
|
|
24
|
-
var import_linkable = require("./linkable.js");
|
|
25
|
-
class GjsifyWebGLProgram extends import_linkable.Linkable {
|
|
1
|
+
import { Linkable } from "./linkable.js";
|
|
2
|
+
class GjsifyWebGLProgram extends Linkable {
|
|
26
3
|
constructor(_, ctx) {
|
|
27
4
|
super(_);
|
|
28
5
|
this._linkCount = 0;
|
|
@@ -43,3 +20,7 @@ class GjsifyWebGLProgram extends import_linkable.Linkable {
|
|
|
43
20
|
ctx._native.deleteProgram(this._ | 0);
|
|
44
21
|
}
|
|
45
22
|
}
|
|
23
|
+
export {
|
|
24
|
+
GjsifyWebGLProgram,
|
|
25
|
+
GjsifyWebGLProgram as WebGLProgram
|
|
26
|
+
};
|
|
@@ -1,28 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var webgl_renderbuffer_exports = {};
|
|
19
|
-
__export(webgl_renderbuffer_exports, {
|
|
20
|
-
GjsifyWebGLRenderbuffer: () => GjsifyWebGLRenderbuffer,
|
|
21
|
-
WebGLRenderbuffer: () => GjsifyWebGLRenderbuffer
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(webgl_renderbuffer_exports);
|
|
24
|
-
var import_linkable = require("./linkable.js");
|
|
25
|
-
class GjsifyWebGLRenderbuffer extends import_linkable.Linkable {
|
|
1
|
+
import { Linkable } from "./linkable.js";
|
|
2
|
+
class GjsifyWebGLRenderbuffer extends Linkable {
|
|
26
3
|
constructor(_, ctx) {
|
|
27
4
|
super(_);
|
|
28
5
|
this._binding = 0;
|
|
@@ -41,3 +18,7 @@ class GjsifyWebGLRenderbuffer extends import_linkable.Linkable {
|
|
|
41
18
|
ctx._native.deleteRenderbuffer(this._);
|
|
42
19
|
}
|
|
43
20
|
}
|
|
21
|
+
export {
|
|
22
|
+
GjsifyWebGLRenderbuffer,
|
|
23
|
+
GjsifyWebGLRenderbuffer as WebGLRenderbuffer
|
|
24
|
+
};
|