Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: switch console mode-window mode  (Read 2368 times)

0 Members and 1 Guest are viewing this topic.

barnack

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
switch console mode-window mode
« 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?

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 878
    • View Profile
Re: switch console mode-window mode
« Reply #1 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.