From 901fe3013ea86242f403d6dc867dd45f12700b7a Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Mon, 3 Mar 2025 19:17:47 -0500 Subject: Update --- examples/fox.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/fox.rs b/examples/fox.rs index 33df561..bfa97f0 100644 --- a/examples/fox.rs +++ b/examples/fox.rs @@ -26,16 +26,16 @@ impl TestGame { } impl state::Game for TestGame { - fn update(&mut self, ctx: &context::Context, st: &mut state::State) -> Option<()> { + fn update(&mut self, ctx: &context::Context, st: &mut state::State) -> Erm<()> { st.move_camera( ctx, &glam::Vec3::new(0.0, 0.0, -1.0), &glam::Vec3::new(0.0, 0.0, 1.0), &glam::Vec3::new(0.0, 1.0, 0.0), ); - Some(()) + Ok(()) } - fn render(&mut self, ctx: &context::Context, st: &mut state::State) -> Option<()> { + fn render(&mut self, ctx: &context::Context, st: &mut state::State) -> Erm<()> { // if let Some(n) = self.fox.nodes_by_name.get("J_Bip_C_Neck").and_then(|i| self.fox.nodes.get_mut(*i)) { // n.transform *= glam::Mat4::from_rotation_z(0.05); // } @@ -62,7 +62,7 @@ impl state::Game for TestGame { glam::Vec3::new(0.0, 1.0, 0.0), ], ); - Some(()) + Ok(()) } } -- cgit v1.2.3