summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-03-03 19:17:47 -0500
committerLLLL Colonq <llll@colonq>2025-03-03 19:17:55 -0500
commit901fe3013ea86242f403d6dc867dd45f12700b7a (patch)
treecced23ca909ee3bf71bb3054c99d9927dd5b49a7 /examples
parent0200a960c0266abfa3be29792e9b28eab8805dbb (diff)
Update
Diffstat (limited to 'examples')
-rw-r--r--examples/fox.rs8
1 files changed, 4 insertions, 4 deletions
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(())
}
}