summaryrefslogtreecommitdiff
path: root/crates/throwshade/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/throwshade/src/lib.rs')
-rw-r--r--crates/throwshade/src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/throwshade/src/lib.rs b/crates/throwshade/src/lib.rs
index 531fd5f..c20b5fb 100644
--- a/crates/throwshade/src/lib.rs
+++ b/crates/throwshade/src/lib.rs
@@ -53,5 +53,11 @@ cfg_if::cfg_if! {
pub async fn main_js() {
teleia::run(480, 270, teleia::Options::NORESIZE, Game::new).await;
}
+ #[wasm_bindgen]
+ pub async fn set_shader(s: &str) {
+ contextualize(|ctx, st, g: &mut Game| {
+ log::info!("set shader: {}", s);
+ });
+ }
}
}