Struct geng_draw2d::TexturedQuad
source · pub struct TexturedQuad<T: Borrow<Texture>> { /* private fields */ }
Implementations§
source§impl<T: Borrow<Texture>> TexturedQuad<T>
impl<T: Borrow<Texture>> TexturedQuad<T>
Trait Implementations§
source§impl<T: Borrow<Texture>> Draw2d for TexturedQuad<T>
impl<T: Borrow<Texture>> Draw2d for TexturedQuad<T>
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 )
source§impl<T: Borrow<Texture>> Transform2d<f32> for TexturedQuad<T>
impl<T: Borrow<Texture>> Transform2d<f32> for TexturedQuad<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for TexturedQuad<T>where
T: RefUnwindSafe,
impl<T> Send for TexturedQuad<T>where
T: Send,
impl<T> Sync for TexturedQuad<T>where
T: Sync,
impl<T> Unpin for TexturedQuad<T>where
T: Unpin,
impl<T> UnwindSafe for TexturedQuad<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
§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