pub struct DrawBillboardParams {
pub source: Option<Rectangle>,
pub up: Vector3,
pub origin: Vector2,
pub rotation: f32,
pub tint: Color,
}
Expand description
A struct containing the info for drawing billboard textures.
Fields§
§source: Option<Rectangle>
Part of texture to draw. If None - draw the whole texture. Default: None
up: Vector3
Default: (0, 1, 0) - Y axis
origin: Vector2
Rotate the texture around this point. Default: (0, 0)
rotation: f32
Default: 0.0
tint: Color
Default: white.
Trait Implementations§
Source§impl Clone for DrawBillboardParams
impl Clone for DrawBillboardParams
Source§fn clone(&self) -> DrawBillboardParams
fn clone(&self) -> DrawBillboardParams
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DrawBillboardParams
impl Debug for DrawBillboardParams
Auto Trait Implementations§
impl Freeze for DrawBillboardParams
impl RefUnwindSafe for DrawBillboardParams
impl Send for DrawBillboardParams
impl Sync for DrawBillboardParams
impl Unpin for DrawBillboardParams
impl UnwindSafe for DrawBillboardParams
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