fix resize

This commit is contained in:
2026-02-18 07:20:40 -08:00
parent 7882a92059
commit 89386f12a0
4 changed files with 19 additions and 11 deletions

View File

@@ -38,6 +38,10 @@ impl Graphics{
let (pos,angles)=head.head.get_position_angles(&bot.bot,time);
self.graphics.send(&self.surface,strafesnet_roblox_bot_player::graphics::Instruction::Render{pos,angles});
}
#[wasm_bindgen]
pub fn resize(&mut self,width:u32,height:u32){
self.graphics.send(&self.surface,strafesnet_roblox_bot_player::graphics::Instruction::Resize([width,height].into()));
}
}
#[wasm_bindgen]