Refactor context handling and redraw requests

Remove unsafe pointer shenanigans and give Lua instance ownership over
`Context`. Event handlers now directly mutate Context instead of using a
shared app state which is then hooked up to Context via unsafe pointers.
The removal of a shared state means stages (previously called "modes")
are now responsible for keeping their own internal state.

Additionally, clean up draw request handling and module hierarchy.
This commit is contained in:
meehl committed 2026-08-23 23:55:43 +02:00
1 parent 337e876571
commit cc6de120f2
27 files changed
+803 -876

No files matched your search

+1 -4
View File
@@ -3,7 +3,6 @@ use clap::Parser;
use std::path::{Path, PathBuf};
use winit::event_loop::EventLoop;
mod api;
mod app;
mod args;
mod batcher;
@@ -15,12 +14,10 @@ mod fonts;
mod gfx;
mod input;
mod installer;
mod lua;
mod math;
mod mode;
mod pob;
mod renderer;
mod subscript;
mod stage;
mod util;
mod window;
mod worker_pool;