18 lines
265 B
Rust
18 lines
265 B
Rust
|
|
use crate::texture::atlas::Allocator;
|
||
|
|
|
||
|
|
#[derive(Debug)]
|
||
|
|
pub enum Layer {
|
||
|
|
Empty,
|
||
|
|
Busy(Allocator),
|
||
|
|
Full,
|
||
|
|
}
|
||
|
|
|
||
|
|
impl Layer {
|
||
|
|
pub fn is_empty(&self) -> bool {
|
||
|
|
match self {
|
||
|
|
Layer::Empty => true,
|
||
|
|
_ => false,
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|