author | Wuzzy <Wuzzy2@mail.ru> |
Tue, 07 May 2019 18:45:14 +0200 | |
changeset 14904 | 4d5df8d35a95 |
parent 14734 | 6aa8080b3b39 |
child 15125 | febccab419b1 |
permissions | -rw-r--r-- |
14734 | 1 |
use super::atlas::AtlasCollection; |
2 |
use integral_geometry::Size; |
|
3 |
||
4 |
struct GearRenderer { |
|
5 |
atlas: AtlasCollection, |
|
6 |
} |
|
7 |
||
8 |
const ATLAS_SIZE: Size = Size::square(2048); |
|
9 |
||
10 |
impl GearRenderer { |
|
11 |
pub fn new() -> Self { |
|
12 |
let atlas = AtlasCollection::new(ATLAS_SIZE); |
|
13 |
Self { atlas } |
|
14 |
} |
|
15 |
} |