mirror of
https://github.com/lisk77/comet.git
synced 2025-12-15 18:18:50 +00:00
fix: removed the asynchronicity of the Renderer trait
This commit is contained in:
parent
fd8cf1f278
commit
45fffba528
4 changed files with 11 additions and 12 deletions
|
|
@ -4,7 +4,7 @@ use winit::window::Window;
|
|||
use comet_colors::Color;
|
||||
|
||||
pub trait Renderer: Sized + Send + Sync {
|
||||
async fn new(window: Arc<Window>, clear_color: Option<impl Color>) -> Self;
|
||||
fn new(window: Arc<Window>, clear_color: Option<impl Color>) -> Self;
|
||||
fn size(&self) -> PhysicalSize<u32>;
|
||||
fn resize(&mut self, new_size: winit::dpi::PhysicalSize<u32>);
|
||||
fn update(&mut self) -> f32;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue