pub struct TexturedDraw {
pub verts: Vec<TexVertex>,
pub image: ImageData,
pub filter: ImageFilter,
pub scissor: Option<[u32; 4]>,
}Expand description
One textured draw call: a vertex list plus the source image and draw state.
Built during build_geometry and consumed in the textured pass of
execute().
Fields§
§verts: Vec<TexVertex>Pre-built vertices (2 triangles per quad, 9 × 6 for nine-slice).
image: ImageDataOwned copy of the source image.
filter: ImageFilterTexture filter to apply when uploading and sampling.
scissor: Option<[u32; 4]>Optional hardware scissor rect [x, y, w, h] in physical pixels.
Auto Trait Implementations§
impl Freeze for TexturedDraw
impl RefUnwindSafe for TexturedDraw
impl Send for TexturedDraw
impl Sync for TexturedDraw
impl Unpin for TexturedDraw
impl UnsafeUnpin for TexturedDraw
impl UnwindSafe for TexturedDraw
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