rust/lib-hedgewars-engine/src/render/gear.rs
author Wuzzy <Wuzzy2@mail.ru>
Tue, 09 Apr 2019 00:45:14 +0200
changeset 14783 bbec6b28d072
parent 14734 6aa8080b3b39
child 15125 febccab419b1
permissions -rw-r--r--
Fix bugs when entering speech bubble commands during hog placement phase

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 }
    }
}