Struct storm::TextureSection [−][src]
Expand description
Token to reference a texture with. Has basic configuration settings.
Tuple Fields
0: Vector4<u16>
Implementations
pub fn from_texture<T: ColorDescription>(
texture: &Texture<T>,
left: u32,
right: u32,
top: u32,
bottom: u32
) -> TextureSection
pub fn from_texture<T: ColorDescription>(
texture: &Texture<T>,
left: u32,
right: u32,
top: u32,
bottom: u32
) -> TextureSection
Coordinates relative to the top left corner of the texture. (0, 0) is the top left of the texture, and (width, height) is the bottom right of the texture.
Creates a texture section that encompases the whole texture.
Mirrors the texture along the Y axis. Creates a new texture.
Mirrors the texture along the X axis. Creates a new texture.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TextureSection
impl Send for TextureSection
impl Sync for TextureSection
impl Unpin for TextureSection
impl UnwindSafe for TextureSection
Blanket Implementations
Mutably borrows from an owned value. Read more