add render module 🦔
authoralfadur
Wed, 28 Nov 2018 21:35:54 +0300
changeset 14356 97be4f6bf264
parent 14355 7ae81969330f
child 14357 9e8e64b2bb9e
add render module 🦔
rust/lib-hedgewars-engine/src/lib.rs
rust/lib-hedgewars-engine/src/render.rs
--- a/rust/lib-hedgewars-engine/src/lib.rs	Wed Nov 28 21:10:18 2018 +0300
+++ b/rust/lib-hedgewars-engine/src/lib.rs	Wed Nov 28 21:35:54 2018 +0300
@@ -1,5 +1,6 @@
 pub mod instance;
 mod ipc;
+mod render;
 mod world;
 
 use gfx::{format::Formatted, Encoder};
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rust/lib-hedgewars-engine/src/render.rs	Wed Nov 28 21:35:54 2018 +0300
@@ -0,0 +1,17 @@
+use gfx::{
+    format,
+    ConstantBuffer,
+    DepthTarget,
+    RenderTarget,
+    TextureSampler,
+    VertexBuffer,
+};
+
+struct Camera {
+    pos: [f32; 2]
+}
+
+fn render() {
+
+}
+