Struct geng_draw2d::Helper
source · 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 !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