Skip to content

xigh/winit-up-to-date-simple-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple (at least I tried) Rust winit example "0.29.15"

This simple example only create windows and manage windows list.

The ZxWindow structure is an abstration to a Window. You can put everything in here. For the moment, it only implements :

pub fn on_key_input(&mut self, code: KeyCode, pressed: bool, queue: &Rc<CmdQueue>)

Where CmdQueue allows the method to communicate with the event_loop, by example, in order to create new windows (you can add other commands).

And the event_loop handles ZxWindow list. If this list is empty, the application exists.

next steps :

  • add wgpu stuff
  • implements other events
  • add async ops (threads, update cmdqueue)
  • add fullscreen support
  • add system tray icons

About

Simple (at least I tried) Rust winit example

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages