SFML community forums

Help => General => Topic started by: barnack on July 27, 2018, 08:30:36 pm

Title: switch console mode-window mode
Post by: barnack on July 27, 2018, 08:30:36 pm
I'm planning to have my program be able to switch between two modes;
in console mode (already mostly done) it can be used as any command line program. Then a "window mode" command would open the sfml window, use fancy graphics etcc, and a button in the window would switch back to console mode. Now, i can perfectly do all that keeping the window back but blocked while the program is stuck in the window's main loop. But can i hide the console for the time the program is in window mode in a non-platform specific way?
Title: Re: switch console mode-window mode
Post by: Mario on July 27, 2018, 09:25:35 pm
Since the console windows are platform specific, no, there's no way to do so, unless you create two separated programs and run one or the other.