ASWebGLue icon indicating copy to clipboard operation
ASWebGLue copied to clipboard

WIP changes for use in Node with webgl-raub

Open trusktr opened this issue 4 years ago • 4 comments

trusktr avatar Feb 23 '21 06:02 trusktr

@ZoeDreams

trusktr avatar Feb 23 '21 07:02 trusktr

I added an example, but it isn't working. The getString function is not grabbing the string from the module properly. @battlelinegames Can you give it a try? Like this:

cd src/examples/CubeNodejs
npm install
npm start

This will try to run, you'll see a window briefly pop open, then the error output will show it crashes on reading the string pointer in WebGL.getString.

Looks like something changed since last time I tried this. But once we're passed that, then you should see the demo running in a window outside of a browser.

trusktr avatar Feb 23 '21 07:02 trusktr

Sidenote, we don't have to merge this, we can just keep this as a reference for how to run in Node with some small changes.

trusktr avatar Feb 28 '21 05:02 trusktr

i was able to reproduce your behavior on this, got the window but getString crashed.

p3nGu1nZz avatar Feb 28 '21 06:02 p3nGu1nZz