Trait components::engine::d2::display::SubTexture
source · [−]pub trait SubTexture: Texture {
fn parent(&self) -> Option<Box<dyn Texture + 'static, Global>>;
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.