pub trait SubTexture: Texture {
fn parent(&self) -> Option<Box<dyn Texture>>;
fn x(&self) -> i32;
fn y(&self) -> i32;
}
Expand description
A sub-region of a texture atlas, created by Texture.subTexture
.
Required Methods
The original texture that this sub-texture is a part of.