pub struct TextureDraw {
pub id: ImageId,
pub uv: [u32; 4],
}Expand description
What a QuadKind::Texture quad points at: which registered image,
and the texel rect of it to show (the whole image, or the crop a
fit="cover" made). Beside the quads for the reason FragmentDraw
is: a handle and a rect on every quad would be paid by the 20,000 that
are not one. A frame that draws no texture-backed image leaves the
vector empty.
Fields§
§id: ImageId§uv: [u32; 4][x, y, w, h] in the texture’s own texels.
Trait Implementations§
Source§impl Clone for TextureDraw
impl Clone for TextureDraw
impl Copy for TextureDraw
Source§impl Debug for TextureDraw
impl Debug for TextureDraw
impl Eq for TextureDraw
Source§impl PartialEq for TextureDraw
impl PartialEq for TextureDraw
impl StructuralPartialEq for TextureDraw
Auto Trait Implementations§
impl Freeze for TextureDraw
impl RefUnwindSafe for TextureDraw
impl Send for TextureDraw
impl Sync for TextureDraw
impl Unpin for TextureDraw
impl UnsafeUnpin for TextureDraw
impl UnwindSafe for TextureDraw
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.