rust_minifb/src/os
Emilio Moretti f42f516339
Wasm websys wip (#239)
* WIP on wasm support

Fix canvas not showing by actually placing it in the document
Also set the initial title
Use the js! macro to draw pixels
Draw to the canvas using ImageData
It doesn't work because an animation frame needs to be requested somehow

* Complete WASM work into a usable state.

This works on the previous commits and makes it usable.
There is a multi platform example about how to use it here:
https://github.com/dc740/minifb-async-examples

Co-authored-by: Thomas Versteeg <thomasversteeg@gmx.com>
2022-04-02 17:00:48 +02:00
..
macos Add getter for window position. (#276) 2022-02-03 10:01:00 +01:00
posix Use XkbSetDetectableAutoRepeat on x11 2022-03-26 20:45:00 +01:00
redox Add set_icon() method to set a window icon at runtime (#274) 2022-01-30 18:29:12 +01:00
wasm Wasm websys wip (#239) 2022-04-02 17:00:48 +02:00
windows Rustfmt 2022-03-14 16:05:25 +01:00
mod.rs Wasm websys wip (#239) 2022-04-02 17:00:48 +02:00