File tree 6 files changed +28
-16
lines changed
6 files changed +28
-16
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ callback ([DWM](https://github.com/deno-windowing/dwm) handles both).
23
23
24
24
``` ts
25
25
// 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" ;
27
27
28
28
// Initialize function pointers
29
29
gl .load (yourGetProcAddress );
@@ -38,11 +38,10 @@ context creation.
38
38
39
39
Check [ ./examples] ( ./examples/ ) for some usage examples.
40
40
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 ` .
43
42
44
43
``` sh
45
- deno run --unstable --allow -ffi < file>
44
+ deno run -A --unstable -ffi < file>
46
45
```
47
46
48
47
Extensions:
Original file line number Diff line number Diff line change @@ -312,15 +312,15 @@ let fn_glSwizzleEXT!: Deno.UnsafeFnPointer<typeof def_glSwizzleEXT>;
312
312
313
313
export function SwizzleEXT (
314
314
res : GLuint ,
315
- in : GLuint ,
315
+ inn : GLuint ,
316
316
outX : GLenum ,
317
317
outY : GLenum ,
318
318
outZ : GLenum ,
319
319
outW : GLenum ,
320
320
) : void {
321
321
fn_glSwizzleEXT . call (
322
322
res ,
323
- in ,
323
+ inn ,
324
324
outX ,
325
325
outY ,
326
326
outZ ,
@@ -337,15 +337,15 @@ let fn_glWriteMaskEXT!: Deno.UnsafeFnPointer<typeof def_glWriteMaskEXT>;
337
337
338
338
export function WriteMaskEXT (
339
339
res : GLuint ,
340
- in : GLuint ,
340
+ inn : GLuint ,
341
341
outX : GLenum ,
342
342
outY : GLenum ,
343
343
outZ : GLenum ,
344
344
outW : GLenum ,
345
345
) : void {
346
346
fn_glWriteMaskEXT . call (
347
347
res ,
348
- in ,
348
+ inn ,
349
349
outX ,
350
350
outY ,
351
351
outZ ,
Original file line number Diff line number Diff line change @@ -86,11 +86,11 @@ export const SEPARATE_ATTRIBS_NV = 0x8c8d;
86
86
export const TRANSFORM_FEEDBACK_BUFFER_NV = 0x8c8e ;
87
87
export const TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8c8f ;
88
88
export const LAYER_NV = 0x8daa ;
89
- export const NEXT_BUFFER_NV = 0 x - 2 ;
90
- export const SKIP_COMPONENTS4_NV = 0 x - 3 ;
91
- export const SKIP_COMPONENTS3_NV = 0 x - 4 ;
92
- export const SKIP_COMPONENTS2_NV = 0 x - 5 ;
93
- export const SKIP_COMPONENTS1_NV = 0 x - 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 ;
94
94
95
95
/// Commands
96
96
Original file line number Diff line number Diff line change 1
1
{
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
+ },
2
10
"tasks" : {
3
11
"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"
5
18
},
6
19
"fmt" : {
7
20
"files" : {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import "https://preview.babylonjs.com/proceduralTexturesLibrary/babylonjs.proced
11
11
import "https://preview.babylonjs.com/postProcessesLibrary/babylonjs.postProcess.min.js" ;
12
12
import "https://preview.babylonjs.com/loaders/babylonjs.loaders.js" ;
13
13
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" ;
15
15
16
16
BABYLON . SceneLoader . ShowLoadingScreen = false ;
17
17
Original file line number Diff line number Diff line change 1
- export * from "https://deno.land/x/[email protected] .5 /mod.ts" ;
1
+ export * from "https://deno.land/x/[email protected] .6 /mod.ts" ;
You can’t perform that action at this time.
0 commit comments