put window stuff in here

This commit is contained in:
Quaternions 2023-10-19 19:36:54 -07:00
parent 0bf253aa11
commit eb376c1e68
3 changed files with 10 additions and 5 deletions

View File

@ -39,11 +39,6 @@ pub trait Example: 'static + Sized {
fn required_limits() -> wgpu::Limits {
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 {

View File

@ -18,6 +18,7 @@ mod primitives;
mod instruction;
mod load_roblox;
mod render_thread;
mod window;
pub struct GlobalState{

9
src/window.rs Normal file
View 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);
}