taika 0.7.0

Thin abstraction over wgpu and winit
Documentation
use async_trait::async_trait;
use std::sync::{Arc, Mutex};

use crate::window::TargetProperties;

#[async_trait]
pub trait EventHandler {
    fn window_close(&mut self);
    fn window_resize(
        &mut self,
        width: u32,
        height: u32,
        device: &wgpu::Device,
        queue: &wgpu::Queue,
    );
    fn window_focus(&mut self);
    fn window_unfocus(&mut self);
    fn window_frame(&mut self);
    fn window_after_frame(&mut self);
    fn device_init(
        &mut self,
        adapter: &wgpu::Adapter,
        device: Arc<Mutex<wgpu::Device>>,
        queue: Arc<Mutex<wgpu::Queue>>,
        target_properties: TargetProperties,
    );
    fn window_event(&mut self, event: &winit::event::WindowEvent);
}