rust/lib-hedgewars-engine/src/render/gear.rs
author Wuzzy <Wuzzy2@mail.ru>
Wed, 15 May 2019 03:56:00 +0200
changeset 14973 8e4e508d153c
parent 14750 6aa8080b3b39
child 15141 febccab419b1
permissions -rw-r--r--
Use HaltFatalError for all VideoRec failures

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