pub struct Image3DByAxes<'a, T: Into<TextureRef> + Copy> {
pub label: &'a str,
pub tex: T,
pub center: [f32; 3],
pub axis_u: [f32; 3],
pub axis_v: [f32; 3],
pub uv0: [f32; 2],
pub uv1: [f32; 2],
pub tint: [f32; 4],
pub flags: Image3DFlags,
}Fields§
§label: &'a str§tex: T§center: [f32; 3]§axis_u: [f32; 3]§axis_v: [f32; 3]§uv0: [f32; 2]§uv1: [f32; 2]§tint: [f32; 4]§flags: Image3DFlagsImplementations§
Source§impl<'a, T: Into<TextureRef> + Copy> Image3DByAxes<'a, T>
impl<'a, T: Into<TextureRef> + Copy> Image3DByAxes<'a, T>
pub fn new( label: &'a str, tex: T, center: [f32; 3], axis_u: [f32; 3], axis_v: [f32; 3], ) -> Self
pub fn uv(self, uv0: [f32; 2], uv1: [f32; 2]) -> Self
pub fn tint(self, col: [f32; 4]) -> Self
pub fn flags(self, flags: Image3DFlags) -> Self
pub fn alpha(self, a: f32) -> Self
pub fn uv_rect(self, u0: f32, v0: f32, u1: f32, v1: f32) -> Self
pub fn flip_v(self) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Image3DByAxes<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Image3DByAxes<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Image3DByAxes<'a, T>where
T: Send,
impl<'a, T> Sync for Image3DByAxes<'a, T>where
T: Sync,
impl<'a, T> Unpin for Image3DByAxes<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for Image3DByAxes<'a, T>where
T: UnwindSafe,
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