rust/lib-hedgewars-engine/src/render/gear.rs
changeset 14729 6aa8080b3b39
child 15120 febccab419b1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rust/lib-hedgewars-engine/src/render/gear.rs	Thu Mar 28 00:38:53 2019 +0300
@@ -0,0 +1,15 @@
+use super::atlas::AtlasCollection;
+use integral_geometry::Size;
+
+struct GearRenderer {
+    atlas: AtlasCollection,
+}
+
+const ATLAS_SIZE: Size = Size::square(2048);
+
+impl GearRenderer {
+    pub fn new() -> Self {
+        let atlas = AtlasCollection::new(ATLAS_SIZE);
+        Self { atlas }
+    }
+}