'In Game Menu' problems |
hectorgrey
|
I can't know for sure, since I've never seen your code, but wouldn't you be able to pause the game (thus the majority will remain on the screen), then create a viewport in the middle? The background colour for the viewport could be cyan, which would make it transparent, and then load the menu options onto that viewport? Once you kill the viewport, the menu should disappear and then you unpause the game. Or, if you mean the menu itself should have a copy of what's on the screen, wouldn't SDL_RendererCopy() be able to do something similar?
|
|||||||||||
|
Nathaniel J Fries
|
on the frame immediately after the user tells the game to open the menu, draw the game to a render target the same size as the screen instead of directly to the screen.
or, simply redraw the game before the menu while preventing it from updating. |
|||||||||||
|