Skip to content

Commit b8e7bc8

Browse files
committed
chore: bump deps
1 parent c86235b commit b8e7bc8

File tree

6 files changed

+28
-16
lines changed

6 files changed

+28
-16
lines changed

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ callback ([DWM](https://github.com/deno-windowing/dwm) handles both).
2323

2424
```ts
2525
// GLES2 3.2 API
26-
import * as gl from "https://deno.land/x/[email protected].2/api/gles23.2.ts";
26+
import * as gl from "https://deno.land/x/[email protected].8/api/gles23.2.ts";
2727

2828
// Initialize function pointers
2929
gl.load(yourGetProcAddress);
@@ -38,11 +38,10 @@ context creation.
3838

3939
Check [./examples](./examples/) for some usage examples.
4040

41-
Since this module depends on unstable FFI API, you need to pass `--unstable`
42-
along with `--allow-ffi`.
41+
Since this module depends on unstable FFI API, you need to pass `--unstable-ffi`.
4342

4443
```sh
45-
deno run --unstable --allow-ffi <file>
44+
deno run -A --unstable-ffi <file>
4645
```
4746

4847
Extensions:

api/ext/GL_EXT_vertex_shader.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -312,15 +312,15 @@ let fn_glSwizzleEXT!: Deno.UnsafeFnPointer<typeof def_glSwizzleEXT>;
312312

313313
export function SwizzleEXT(
314314
res: GLuint,
315-
in: GLuint,
315+
inn: GLuint,
316316
outX: GLenum,
317317
outY: GLenum,
318318
outZ: GLenum,
319319
outW: GLenum,
320320
): void {
321321
fn_glSwizzleEXT.call(
322322
res,
323-
in,
323+
inn,
324324
outX,
325325
outY,
326326
outZ,
@@ -337,15 +337,15 @@ let fn_glWriteMaskEXT!: Deno.UnsafeFnPointer<typeof def_glWriteMaskEXT>;
337337

338338
export function WriteMaskEXT(
339339
res: GLuint,
340-
in: GLuint,
340+
inn: GLuint,
341341
outX: GLenum,
342342
outY: GLenum,
343343
outZ: GLenum,
344344
outW: GLenum,
345345
): void {
346346
fn_glWriteMaskEXT.call(
347347
res,
348-
in,
348+
inn,
349349
outX,
350350
outY,
351351
outZ,

api/ext/GL_NV_transform_feedback.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ export const SEPARATE_ATTRIBS_NV = 0x8c8d;
8686
export const TRANSFORM_FEEDBACK_BUFFER_NV = 0x8c8e;
8787
export const TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8c8f;
8888
export const LAYER_NV = 0x8daa;
89-
export const NEXT_BUFFER_NV = 0x-2;
90-
export const SKIP_COMPONENTS4_NV = 0x-3;
91-
export const SKIP_COMPONENTS3_NV = 0x-4;
92-
export const SKIP_COMPONENTS2_NV = 0x-5;
93-
export const SKIP_COMPONENTS1_NV = 0x-6;
89+
export const NEXT_BUFFER_NV = 2;
90+
export const SKIP_COMPONENTS4_NV = 3;
91+
export const SKIP_COMPONENTS3_NV = 4;
92+
export const SKIP_COMPONENTS2_NV = 5;
93+
export const SKIP_COMPONENTS1_NV = 6;
9494

9595
/// Commands
9696

deno.jsonc

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
{
2+
"name": "@gfx/gl",
3+
"version": "0.1.8",
4+
"exports": {
5+
".": "./mod.ts",
6+
"./webgl": "./src/webgl/mod.ts",
7+
"./ext/babylon": "./ext/babylon.ts",
8+
"./gles23.2": "./api/gles23.2.ts"
9+
},
210
"tasks": {
311
"parse-xml": "deno run -A --unstable ./scripts/parse_xml.ts",
4-
"gen": "deno run -A --unstable ./scripts/emitter.ts"
12+
"gen": "deno run -A --unstable ./scripts/emitter.ts",
13+
"example:babylon" : "deno run -A --unstable-ffi ./examples/babylon.ts",
14+
"example:babylon2" : "deno run -A --unstable-ffi ./examples/babylon2.ts",
15+
"example:three" : "deno run -A --unstable-ffi ./examples/three.ts",
16+
"example:triangle" : "deno run -A --unstable-ffi ./examples/triangle.ts",
17+
"example:webgl" : "deno run -A --unstable-ffi ./examples/webgl.ts"
518
},
619
"fmt": {
720
"files": {

ext/babylon.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import "https://preview.babylonjs.com/proceduralTexturesLibrary/babylonjs.proced
1111
import "https://preview.babylonjs.com/postProcessesLibrary/babylonjs.postProcess.min.js";
1212
import "https://preview.babylonjs.com/loaders/babylonjs.loaders.js";
1313
import "https://preview.babylonjs.com/serializers/babylonjs.serializers.min.js";
14-
import { CreateWindowOptions } from "../src/webgl/deps.ts";
14+
import type { CreateWindowOptions } from "../src/webgl/deps.ts";
1515

1616
BABYLON.SceneLoader.ShowLoadingScreen = false;
1717

src/webgl/deps.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "https://deno.land/x/[email protected].5/mod.ts";
1+
export * from "https://deno.land/x/[email protected].6/mod.ts";

0 commit comments

Comments
 (0)