render_plugin: Begin add window plugin
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 3m7s
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 3m7s
This commit is contained in:
parent
0ee29a3649
commit
ae0a2be097
8 changed files with 134 additions and 48 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue