aboutsummaryrefslogtreecommitdiff
path: root/stockton-render/src/window.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:23 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:23 +0100
commit47a0c0317cc774c19b78582bec9b5b09d56f569a (patch)
treed03471ea4e084ace9b95a2c5b7febb780b45bb63 /stockton-render/src/window.rs
parentfb996488aa651cb2e7f46abc083c4318b47e77cd (diff)
feat(render): draw passes
Diffstat (limited to 'stockton-render/src/window.rs')
-rw-r--r--stockton-render/src/window.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/stockton-render/src/window.rs b/stockton-render/src/window.rs
index 6e6a0e1..62e43d3 100644
--- a/stockton-render/src/window.rs
+++ b/stockton-render/src/window.rs
@@ -1,8 +1,8 @@
-use crate::{error::full_error_display, Renderer, DrawPass};
+use crate::{error::full_error_display, DrawPass, Renderer};
use egui::{Modifiers, Rect, Vec2};
use legion::systems::Runnable;
use log::debug;
-use stockton_levels::prelude::MinRenderFeatures;
+
use egui::{CtxRef, Event, Output, Pos2, RawInput};
use epaint::ClippedShape;
@@ -93,7 +93,7 @@ impl UiState {
}
}
- pub fn populate_initial_state<T: MinRenderFeatures>(&mut self, renderer: &Renderer<T>) {
+ pub fn populate_initial_state<'a, T: DrawPass>(&mut self, renderer: &Renderer<T>) {
let props = &renderer.context.target_chain.properties;
self.set_dimensions(props.extent.width, props.extent.height);
self.set_pixels_per_point(Some(renderer.context.pixels_per_point));