-
Notifications
You must be signed in to change notification settings - Fork 5
Static WebGL image. #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good, the raw WASM approach wasn't nearly as arduous as I thought it'd be.
|
||
```html | ||
<html> | ||
<canvas width="800" height="600" id="my_canvas"></canvas> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The canvas
should go in the body
, ideally. Web browsers are fairly generous about what weird and wonderful HTML they'll accept, though, so it wouldn't surprise me if this still worked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yeah, "it works on my machine", and that's just how it was in the example i followed.
But we can move it into the body.
Part of #8
Doesn't do user interaction, that'll be a separate page.
TODO:
canvas
into the body tag.i64
note". Wasm is okay withi64
, but the problem is that the FFI layer doesn't support it properly.