pub struct Draw2D { /* private fields */ }
Implementations§
Source§impl Draw2D
impl Draw2D
pub fn draw<V>( &self, framebuffer: &mut Framebuffer<'_>, vertices: &[V], color: Color<f32>, mode: DrawMode, )
pub fn quad( &self, framebuffer: &mut Framebuffer<'_>, position: AABB<f32>, color: Color<f32>, )
pub fn textured<V>( &self, framebuffer: &mut Framebuffer<'_>, vertices: &[V], texture: &Texture, color: Color<f32>, mode: DrawMode, )
pub fn textured_quad( &self, framebuffer: &mut Framebuffer<'_>, position: AABB<f32>, texture: &Texture, color: Color<f32>, )
pub fn ellipse( &self, framebuffer: &mut Framebuffer<'_>, position: Vec2<f32>, radius: Vec2<f32>, color: Color<f32>, )
pub fn circle( &self, framebuffer: &mut Framebuffer<'_>, position: Vec2<f32>, radius: f32, color: Color<f32>, )
Auto Trait Implementations§
impl !Freeze for Draw2D
impl !RefUnwindSafe for Draw2D
impl !Send for Draw2D
impl !Sync for Draw2D
impl Unpin for Draw2D
impl !UnwindSafe for Draw2D
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more