render_plugin: Begin add window plugin
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 3m7s

This commit is contained in:
Florian RICHER 2025-05-18 19:28:34 +02:00
parent 0ee29a3649
commit ae0a2be097
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
8 changed files with 134 additions and 48 deletions

View file

@ -1,6 +1,6 @@
use bevy_app::{App, AppExit, Plugin, PluginsState};
use config::WindowConfig;
use raw_handle::{DisplayHandleWrapper, EventLoopProxyWrapper};
use raw_handle::{DisplayHandleWrapper, EventLoopProxyWrapper, WindowWrapper};
use state::WindowState;
use winit::event_loop::EventLoop;

View file

@ -16,8 +16,8 @@ impl<T: 'static> EventLoopProxyWrapper<T> {
}
}
#[derive(Resource)]
#[derive(Resource, Clone)]
pub struct DisplayHandleWrapper(pub winit::event_loop::OwnedDisplayHandle);
#[derive(Resource)]
#[derive(Resource, Clone)]
pub struct WindowWrapper(pub Arc<Window>);