Skip to content

Commit

Permalink
chore: bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
load1n9 committed May 18, 2024
1 parent c86235b commit b8e7bc8
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 16 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ callback ([DWM](https://github.com/deno-windowing/dwm) handles both).

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

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

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

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

```sh
deno run --unstable --allow-ffi <file>
deno run -A --unstable-ffi <file>
```

Extensions:
Expand Down
8 changes: 4 additions & 4 deletions api/ext/GL_EXT_vertex_shader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,15 +312,15 @@ let fn_glSwizzleEXT!: Deno.UnsafeFnPointer<typeof def_glSwizzleEXT>;

export function SwizzleEXT(
res: GLuint,
in: GLuint,
inn: GLuint,
outX: GLenum,
outY: GLenum,
outZ: GLenum,
outW: GLenum,
): void {
fn_glSwizzleEXT.call(
res,
in,
inn,
outX,
outY,
outZ,
Expand All @@ -337,15 +337,15 @@ let fn_glWriteMaskEXT!: Deno.UnsafeFnPointer<typeof def_glWriteMaskEXT>;

export function WriteMaskEXT(
res: GLuint,
in: GLuint,
inn: GLuint,
outX: GLenum,
outY: GLenum,
outZ: GLenum,
outW: GLenum,
): void {
fn_glWriteMaskEXT.call(
res,
in,
inn,
outX,
outY,
outZ,
Expand Down
10 changes: 5 additions & 5 deletions api/ext/GL_NV_transform_feedback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ export const SEPARATE_ATTRIBS_NV = 0x8c8d;
export const TRANSFORM_FEEDBACK_BUFFER_NV = 0x8c8e;
export const TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8c8f;
export const LAYER_NV = 0x8daa;
export const NEXT_BUFFER_NV = 0x-2;
export const SKIP_COMPONENTS4_NV = 0x-3;
export const SKIP_COMPONENTS3_NV = 0x-4;
export const SKIP_COMPONENTS2_NV = 0x-5;
export const SKIP_COMPONENTS1_NV = 0x-6;
export const NEXT_BUFFER_NV = 2;
export const SKIP_COMPONENTS4_NV = 3;
export const SKIP_COMPONENTS3_NV = 4;
export const SKIP_COMPONENTS2_NV = 5;
export const SKIP_COMPONENTS1_NV = 6;

/// Commands

Expand Down
15 changes: 14 additions & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
{
"name": "@gfx/gl",
"version": "0.1.8",
"exports": {
".": "./mod.ts",
"./webgl": "./src/webgl/mod.ts",
"./ext/babylon": "./ext/babylon.ts",
"./gles23.2": "./api/gles23.2.ts"
},
"tasks": {
"parse-xml": "deno run -A --unstable ./scripts/parse_xml.ts",
"gen": "deno run -A --unstable ./scripts/emitter.ts"
"gen": "deno run -A --unstable ./scripts/emitter.ts",
"example:babylon" : "deno run -A --unstable-ffi ./examples/babylon.ts",
"example:babylon2" : "deno run -A --unstable-ffi ./examples/babylon2.ts",
"example:three" : "deno run -A --unstable-ffi ./examples/three.ts",
"example:triangle" : "deno run -A --unstable-ffi ./examples/triangle.ts",
"example:webgl" : "deno run -A --unstable-ffi ./examples/webgl.ts"
},
"fmt": {
"files": {
Expand Down
2 changes: 1 addition & 1 deletion ext/babylon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import "https://preview.babylonjs.com/proceduralTexturesLibrary/babylonjs.proced
import "https://preview.babylonjs.com/postProcessesLibrary/babylonjs.postProcess.min.js";
import "https://preview.babylonjs.com/loaders/babylonjs.loaders.js";
import "https://preview.babylonjs.com/serializers/babylonjs.serializers.min.js";
import { CreateWindowOptions } from "../src/webgl/deps.ts";
import type { CreateWindowOptions } from "../src/webgl/deps.ts";

BABYLON.SceneLoader.ShowLoadingScreen = false;

Expand Down
2 changes: 1 addition & 1 deletion src/webgl/deps.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/x/[email protected].5/mod.ts";
export * from "https://deno.land/x/[email protected].6/mod.ts";

0 comments on commit b8e7bc8

Please sign in to comment.