Struct citro3d_sys::Tex3DS_SubTexture
source · #[repr(C)]pub struct Tex3DS_SubTexture {
pub width: u16_,
pub height: u16_,
pub left: f32,
pub top: f32,
pub right: f32,
pub bottom: f32,
}
Expand description
Subtexture
Note: If top < bottom, the subtexture is rotated 1/4 revolution counter-clockwise
Fields§
§width: u16_
< Sub-texture width (pixels)
height: u16_
< Sub-texture height (pixels)
left: f32
< Left u-coordinate
top: f32
< Top v-coordinate
right: f32
< Right u-coordinate
bottom: f32
< Bottom v-coordinate
Trait Implementations§
source§impl Clone for Tex3DS_SubTexture
impl Clone for Tex3DS_SubTexture
source§fn clone(&self) -> Tex3DS_SubTexture
fn clone(&self) -> Tex3DS_SubTexture
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more