rust/lib-hedgewars-engine/src/lib.rs
branchtransitional_engine
changeset 16022 2003b466b279
parent 15924 9502611bffc1
parent 16017 e8afb1bf2779
--- a/rust/lib-hedgewars-engine/src/lib.rs	Wed Aug 28 15:31:51 2024 +0200
+++ b/rust/lib-hedgewars-engine/src/lib.rs	Wed Aug 28 15:34:49 2024 +0200
@@ -62,7 +62,9 @@
 }
 
 #[no_mangle]
-pub extern "C" fn simple_event(engine_state: &mut EngineInstance, event_type: SimpleEventType) {}
+pub extern "C" fn simple_event(engine_state: &mut EngineInstance, event_type: SimpleEventType) {
+    println!("{:?}", event_type);
+}
 
 #[no_mangle]
 pub extern "C" fn long_event(
@@ -152,6 +154,7 @@
         gl::Viewport(0, 0, width as i32, height as i32);
     }
     engine_state.world.create_renderer(width, height);
+    engine_state.world.init_renderer();
 }
 
 #[no_mangle]