| Crates.io | wasm-bus-webgl |
| lib.rs | wasm-bus-webgl |
| version | 1.0.3 |
| created_at | 2022-03-26 21:24:28.188924+00 |
| updated_at | 2022-03-26 23:03:43.891175+00 |
| description | WebAssembly WebGL Interface |
| homepage | |
| repository | https://github.com/john-sharratt/ate |
| max_upload_size | |
| id | 556976 |
| size | 56,635 |
The WASM Bus for using WebGL on tokera.sh
use wasm_bus_webgl::prelude::*;
fn main() -> Result<(), WebGlError> {
let context = WebGl::new()?;
context.clear_color(0.0, 0.0, 0.4, 1.0);
context.clear(BufferBit::Color);
std::thread::sleep(std::time::Duration::from_secs(4));
Ok(())
}
You can test your WASI program by uploading it to wapm.io and then heading over to the Tokera Shell