reeneble render from frontend
authoralfadur
Fri, 22 Mar 2019 20:38:50 +0300
changeset 14712 5237b4c44d11
parent 14711 88b0efba77b9
child 14713 19358c313ebb
reeneble render from frontend
rust/lib-hedgewars-engine/src/lib.rs
rust/lib-hedgewars-engine/src/render/gl.rs
--- a/rust/lib-hedgewars-engine/src/lib.rs	Fri Mar 22 20:37:21 2019 +0300
+++ b/rust/lib-hedgewars-engine/src/lib.rs	Fri Mar 22 20:38:50 2019 +0300
@@ -85,13 +85,15 @@
         let c_name = CString::new(name).unwrap();
         gl_loader(c_name.as_ptr())
     });
-    unsafe { gl::Viewport(0, 0, width as i32, height as i32); }
+    unsafe {
+        gl::Viewport(0, 0, width as i32, height as i32);
+    }
     engine_state.world.create_renderer(width, height);
 }
 
 #[no_mangle]
 pub extern "C" fn render_frame(engine_state: &mut EngineInstance) {
-    //engine_state.render()
+    engine_state.render()
 }
 
 #[no_mangle]
--- a/rust/lib-hedgewars-engine/src/render/gl.rs	Fri Mar 22 20:37:21 2019 +0300
+++ b/rust/lib-hedgewars-engine/src/render/gl.rs	Fri Mar 22 20:38:50 2019 +0300
@@ -1,4 +1,3 @@
-
 use integral_geometry::Rect;
 
 use std::{ffi, ffi::CString, mem, ptr, slice};