Refactor draw command recording.

Remove distinct draw primitives and unify them into one shared form.
This commit is contained in:
meehl committed 2026-08-15 19:19:55 +02:00
1 parent a6d18a320c
commit 3fc87339ca
17 files changed
+397 -638

No files matched your search

+2 -4
View File
@@ -1,6 +1,4 @@
use crate::{
app::AppState, installer::InstallMode, pob::PoBMode, renderer::primitives::ClippedPrimitive,
};
use crate::{app::AppState, draw_commands::DrawCommand, installer::InstallMode, pob::PoBMode};
use winit::{event::MouseButton, keyboard::Key};
pub enum AppEvent {
@@ -32,7 +30,7 @@ pub enum ModeTransition {
}
pub struct ModeFrameOutput {
pub primitives: Box<dyn Iterator<Item = ClippedPrimitive>>,
pub draw_commands: Vec<DrawCommand>,
pub can_elide: bool,
/// Indicates that this should be redrawn again next frame even if user is not interacting with
/// window