The renderer could benefit from a Screen trait that has some draw_all() method implemented. This would allow the renderer to hold some Box<Screen> and allow the game to swap such screens in and out. This would allow for things such as UI screens, a main game screen, etc that could be modularly hot swapped on a button press.
The renderer could benefit from a
Screen
trait that has somedraw_all()
method implemented. This would allow the renderer to hold someBox<Screen>
and allow the game to swap such screens in and out. This would allow for things such as UI screens, a main game screen, etc that could be modularly hot swapped on a button press.