#[repr(C, align(4))]pub struct QuadTextured {
pub tag: u32,
pub color_cmd: u32,
pub v0: u32,
pub uv0_clut: u32,
pub v1: u32,
pub uv1_tpage: u32,
pub v2: u32,
pub uv2: u32,
pub v3: u32,
pub uv3: u32,
}Expand description
Textured quad with a single flat tint. 10 words (tag + 9 data).
Same CLUT + tpage embedding as TriTextured, extended by
one vertex. Vertex order: TL, TR, BL, BR.
Fields§
§tag: u32OT linkage.
color_cmd: u320x2C000000 | tint header.
v0: u32V0 position.
uv0_clut: u32(u0, v0, clut).
v1: u32V1 position.
uv1_tpage: u32(u1, v1, tpage).
v2: u32V2 position.
uv2: u32(u2, v2, 0).
v3: u32V3 position.
uv3: u32(u3, v3, 0).
Implementations§
Source§impl QuadTextured
impl QuadTextured
Sourcepub const fn new(
verts: [(i16, i16); 4],
uvs: [(u8, u8); 4],
clut: u16,
tpage: u16,
tint: (u8, u8, u8),
) -> Self
pub const fn new( verts: [(i16, i16); 4], uvs: [(u8, u8); 4], clut: u16, tpage: u16, tint: (u8, u8, u8), ) -> Self
Build a textured quad.
Sourcepub const fn with_material(
verts: [(i16, i16); 4],
uvs: [(u8, u8); 4],
material: TextureMaterial,
) -> Self
pub const fn with_material( verts: [(i16, i16); 4], uvs: [(u8, u8); 4], material: TextureMaterial, ) -> Self
Build a textured quad using a TextureMaterial.
Trait Implementations§
Source§impl Clone for QuadTextured
impl Clone for QuadTextured
Source§fn clone(&self) -> QuadTextured
fn clone(&self) -> QuadTextured
Returns a duplicate 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 moreSource§impl Debug for QuadTextured
impl Debug for QuadTextured
Source§impl GpuPacket for QuadTextured
impl GpuPacket for QuadTextured
Source§impl Hash for QuadTextured
impl Hash for QuadTextured
Source§impl PartialEq for QuadTextured
impl PartialEq for QuadTextured
impl Copy for QuadTextured
impl Eq for QuadTextured
impl StructuralPartialEq for QuadTextured
Auto Trait Implementations§
impl Freeze for QuadTextured
impl RefUnwindSafe for QuadTextured
impl Send for QuadTextured
impl Sync for QuadTextured
impl Unpin for QuadTextured
impl UnsafeUnpin for QuadTextured
impl UnwindSafe for QuadTextured
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)