DEV Community

Discussion on: GLAS = WebGL + Assembly Script(WASM);

Collapse
zoedreams profile image
☮️✝️☪️🕉☸️✡️☯️ Author

I forgot to mention that you can seamless convert wasm to run inside of a native VM of your choosing. Still not as fast as building directly with cpp but its super close.

Collapse
trusktr profile image
Joe Pea

And there are also tools like wasm2c and Lucet that can convert Wasm into native code. To make glas work with those, we'll need to write some OpenGL bindings similar to ASWebGLue for WebGL.

Collapse
zoedreams profile image
☮️✝️☪️🕉☸️✡️☯️ Author

Funny you mention that. I was actually looking into that today. I figures out how to create the binding classes for webglrenderingcontext. Ran into an issue with how the callback works for the requestanimation where as doesnt really have callbacks like how three handles it. Need to look into a callback system to manage the wasm.table register.