pub struct NoopRenderer;Trait Implementations§
Source§impl Debug for NoopRenderer
impl Debug for NoopRenderer
Source§impl Default for NoopRenderer
impl Default for NoopRenderer
Source§impl Renderer2D for NoopRenderer
impl Renderer2D for NoopRenderer
fn begin_frame(&mut self) -> Result<()>
fn draw_sprite( &mut self, _texture: &str, _x: f64, _y: f64, _rotation: f64, ) -> Result<()>
fn draw_text( &mut self, _text: &str, _x: f64, _y: f64, _size: f32, _color: [u8; 4], ) -> Result<()>
fn draw_rect( &mut self, _x: f64, _y: f64, _w: f64, _h: f64, _color: [u8; 4], ) -> Result<()>
fn end_frame(&mut self) -> Result<()>
fn reload_asset(&mut self, _path: &str)
fn clear_asset_cache(&mut self)
Source§fn draw_sprite_frame(
&mut self,
texture: &str,
frame: Option<&str>,
x: f64,
y: f64,
rotation: f64,
) -> Result<()>
fn draw_sprite_frame( &mut self, texture: &str, frame: Option<&str>, x: f64, y: f64, rotation: f64, ) -> Result<()>
Draw
texture, optionally from one named atlas frame, rotated by
rotation radians around the sprite center. The default impl
forwards to draw_sprite, so impls without atlas support stay
correct.fn set_camera(&mut self, _x: f64, _y: f64, _zoom: f64)
Auto Trait Implementations§
impl Forget for NoopRenderer
impl Freeze for NoopRenderer
impl Move for NoopRenderer
impl RefUnwindSafe for NoopRenderer
impl Send for NoopRenderer
impl Sync for NoopRenderer
impl Unpin for NoopRenderer
impl UnsafeUnpin for NoopRenderer
impl UnwindSafe for NoopRenderer
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