pub struct TexQuadParams {
pub x: f32,
pub y: f32,
pub w: f32,
pub h: f32,
pub u0: f32,
pub v0: f32,
pub u1: f32,
pub v1: f32,
pub tint: [f32; 4],
}Expand description
Parameters for a textured quad.
Fields§
§x: f32Quad x position (pixel space).
y: f32Quad y position (pixel space).
w: f32Quad width (pixel space).
h: f32Quad height (pixel space).
u0: f32UV left edge.
v0: f32UV top edge.
u1: f32UV right edge.
v1: f32UV bottom edge.
tint: [f32; 4]RGBA tint multiplier (component-wise; use [1,1,1,1] for no tint).
Auto Trait Implementations§
impl Freeze for TexQuadParams
impl RefUnwindSafe for TexQuadParams
impl Send for TexQuadParams
impl Sync for TexQuadParams
impl Unpin for TexQuadParams
impl UnsafeUnpin for TexQuadParams
impl UnwindSafe for TexQuadParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more