diff options
| author | LLLL Colonq <llll@colonq> | 2025-02-17 22:42:26 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-02-17 22:42:26 -0500 |
| commit | 80ae56c9e28454cb351b0ad3217adc2484e67107 (patch) | |
| tree | 4f5c7852da76911dd02ea1f2977e860adff101b9 /crates/throwshade | |
| parent | e6b4946b1038015df40493ec4738245277e34b68 (diff) | |
Add set_shader
Diffstat (limited to 'crates/throwshade')
| -rw-r--r-- | crates/throwshade/src/lib.rs | 6 |
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); + }); + } } } |
