From 47a0c0317cc774c19b78582bec9b5b09d56f569a Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:23 +0100 Subject: feat(render): draw passes --- stockton-render/src/window.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stockton-render/src/window.rs') 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(&mut self, renderer: &Renderer) { + pub fn populate_initial_state<'a, T: DrawPass>(&mut self, renderer: &Renderer) { 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)); -- cgit v1.2.3