Struct geng_draw2d::Chain
source · pub struct Chain {
pub transform: mat3<f32>,
pub vertices: Vec<ColoredVertex>,
}
Fields§
§transform: mat3<f32>
§vertices: Vec<ColoredVertex>
Implementations§
Trait Implementations§
source§impl Draw2d for Chain
impl Draw2d for Chain
fn draw2d_transformed( &self, helper: &Helper, framebuffer: &mut Framebuffer<'_>, camera: &dyn AbstractCamera2d, transform: mat3<f32> )
fn draw2d( &self, helper: &Helper, framebuffer: &mut Framebuffer<'_>, camera: &dyn AbstractCamera2d )
Auto Trait Implementations§
impl RefUnwindSafe for Chain
impl Send for Chain
impl Sync for Chain
impl Unpin for Chain
impl UnwindSafe for Chain
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<T> Pointable for T
impl<T> Pointable for T
source§impl<F, T> Transform2dExt<F> for Twhere
F: Float,
T: Transform2d<F> + ?Sized,
impl<F, T> Transform2dExt<F> for Twhere
F: Float,
T: Transform2d<F> + ?Sized,
source§fn transform(self, transform: mat3<F>) -> Selfwhere
Self: Sized,
fn transform(self, transform: mat3<F>) -> Selfwhere
Self: Sized,
Apply transformation to the object, returning a modified value to allow chaining methods
source§fn align_bounding_box(self, alignment: vec2<F>) -> Selfwhere
Self: Sized,
fn align_bounding_box(self, alignment: vec2<F>) -> Selfwhere
Self: Sized,
Align bounding box of this object, making its origin located at (0, 0) Read more
source§fn rotate(self, angle: Angle<F>) -> Selfwhere
Self: Sized,
fn rotate(self, angle: Angle<F>) -> Selfwhere
Self: Sized,
Rotate object around (0, 0) by given angle
source§fn scale(self, factor: vec2<F>) -> Selfwhere
Self: Sized,
fn scale(self, factor: vec2<F>) -> Selfwhere
Self: Sized,
Scale object around (0, 0) by given factor
source§fn scale_uniform(self, factor: F) -> Selfwhere
Self: Sized,
fn scale_uniform(self, factor: F) -> Selfwhere
Self: Sized,
Scale object around (0, 0) by given factor uniformly along both axis
source§fn transformed(&self) -> Transformed2d<'_, F, Self>
fn transformed(&self) -> Transformed2d<'_, F, Self>
Create a reference to this object with additional transformation applied