pub struct Helper { /* private fields */ }
Implementations§
Source§impl Helper
impl Helper
pub fn new(ugli: &Ugli, antialias: bool) -> Self
pub fn ugli(&self) -> &Ugli
pub fn draw2d( &self, framebuffer: &mut Framebuffer<'_>, camera: &dyn AbstractCamera2d, drawable: &impl Draw2d, )
pub fn draw2d_transformed( &self, framebuffer: &mut Framebuffer<'_>, camera: &dyn AbstractCamera2d, drawable: &impl Draw2d, transform: mat3<f32>, )
pub fn draw<V>( &self, framebuffer: &mut Framebuffer<'_>, camera: &impl AbstractCamera2d, vertices: &[V], color: Rgba<f32>, mode: DrawMode, )
pub fn draw_textured<V>( &self, framebuffer: &mut Framebuffer<'_>, camera: &impl AbstractCamera2d, vertices: &[V], texture: &Texture, color: Rgba<f32>, mode: DrawMode, )
pub fn quad( &self, framebuffer: &mut Framebuffer<'_>, camera: &impl AbstractCamera2d, position: Aabb2<f32>, color: Rgba<f32>, )
pub fn textured_quad( &self, framebuffer: &mut Framebuffer<'_>, camera: &impl AbstractCamera2d, position: Aabb2<f32>, texture: &Texture, color: Rgba<f32>, )
pub fn ellipse_with_cut( &self, framebuffer: &mut Framebuffer<'_>, camera: &impl AbstractCamera2d, position: vec2<f32>, radius: vec2<f32>, inner_cut: f32, color: Rgba<f32>, )
pub fn ellipse( &self, framebuffer: &mut Framebuffer<'_>, camera: &impl AbstractCamera2d, position: vec2<f32>, radius: vec2<f32>, color: Rgba<f32>, )
pub fn circle_with_cut( &self, framebuffer: &mut Framebuffer<'_>, camera: &impl AbstractCamera2d, position: vec2<f32>, inner_radius: f32, outer_radius: f32, color: Rgba<f32>, )
pub fn circle( &self, framebuffer: &mut Framebuffer<'_>, camera: &impl AbstractCamera2d, position: vec2<f32>, radius: f32, color: Rgba<f32>, )
Auto Trait Implementations§
impl !Freeze for Helper
impl !RefUnwindSafe for Helper
impl !Send for Helper
impl !Sync for Helper
impl Unpin for Helper
impl UnwindSafe for Helper
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