ASWebGLue
ASWebGLue copied to clipboard
WIP changes for use in Node with webgl-raub
@ZoeDreams
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.
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.
i was able to reproduce your behavior on this, got the window but getString crashed.