forked from StrafesNET/strafe-client
put window stuff in here
This commit is contained in:
parent
0bf253aa11
commit
eb376c1e68
@ -39,11 +39,6 @@ pub trait Example: 'static + Sized {
|
|||||||
fn required_limits() -> wgpu::Limits {
|
fn required_limits() -> wgpu::Limits {
|
||||||
wgpu::Limits::downlevel_webgl2_defaults() // These downlevel limits will allow the code to run on all possible hardware
|
wgpu::Limits::downlevel_webgl2_defaults() // These downlevel limits will allow the code to run on all possible hardware
|
||||||
}
|
}
|
||||||
fn init() -> Self;
|
|
||||||
fn resize(&mut self);
|
|
||||||
fn update(&mut self, window: &winit::window::Window, event: WindowEvent);
|
|
||||||
fn device_event(&mut self, window: &winit::window::Window, event: DeviceEvent);
|
|
||||||
fn render(&self);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Setup {
|
struct Setup {
|
||||||
|
@ -18,6 +18,7 @@ mod primitives;
|
|||||||
mod instruction;
|
mod instruction;
|
||||||
mod load_roblox;
|
mod load_roblox;
|
||||||
mod render_thread;
|
mod render_thread;
|
||||||
|
mod window;
|
||||||
|
|
||||||
|
|
||||||
pub struct GlobalState{
|
pub struct GlobalState{
|
||||||
|
9
src/window.rs
Normal file
9
src/window.rs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
struct WindowState{
|
||||||
|
//ok
|
||||||
|
}
|
||||||
|
impl WindowState{
|
||||||
|
fn resize(&mut self);
|
||||||
|
fn update(&mut self, window: &winit::window::Window, event: WindowEvent);
|
||||||
|
fn device_event(&mut self, window: &winit::window::Window, event: DeviceEvent);
|
||||||
|
fn render(&self);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user