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:
1 parent
337e876571
commit
cc6de120f2
27 files changed
+803
-876
No files matched your search
@@ -68,6 +68,7 @@ impl BatchBuilder {
|
||||
pub fn build_render_job(
|
||||
commands: &[DrawCommand],
|
||||
textures_delta: TexturesDelta,
|
||||
scale_factor: f32,
|
||||
max_slots: u32,
|
||||
) -> RenderJob {
|
||||
profiling::scope!("build_render_job");
|
||||
@@ -83,6 +84,7 @@ pub fn build_render_job(
|
||||
indices,
|
||||
batches,
|
||||
textures_delta,
|
||||
scale_factor,
|
||||
};
|
||||
};
|
||||
|
||||
@@ -159,5 +161,6 @@ pub fn build_render_job(
|
||||
indices,
|
||||
batches,
|
||||
textures_delta,
|
||||
scale_factor,
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user