vpr: Enable graphics animation using ezgl
Using new ezgl support, we now re-draw the screen whenever update_screen()
is called. This update the user interface based on the current
implementation state (e.g. placement/routing). This is similar to how
the old easygl graphics operated.
However with ezgl we now also support user interaction between
update_screen() calls, allowing users to click/highlight/toggle features
even during minor screen updates (which don't pause VPR by going into
the graphics event loop by default).
diff --git a/vpr/src/draw/draw.cpp b/vpr/src/draw/draw.cpp
index 23aad97..7fee2b3 100644
--- a/vpr/src/draw/draw.cpp
+++ b/vpr/src/draw/draw.cpp
@@ -492,6 +492,13 @@
}
}
}
+
+ if (draw_state->show_graphics) {
+ application.update_message(msg);
+ application.refresh_drawing();
+ application.flush_drawing();
+ }
+
#else
(void)setup_timing_info;
(void)priority;