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

Author Topic: How to check if sf::RenderWindow is fullscreen?  (Read 188 times)

0 Members and 1 Guest are viewing this topic.

DasOhmoff San

  • Newbie
  • *
  • Posts: 20
    • View Profile
How to check if sf::RenderWindow is fullscreen?
« on: June 12, 2019, 11:42:12 pm »
Hello, I have a very small question.
If I have a sf::RenderWindow, how can I check whether it is fullscreen or not?

G.

  • Hero Member
  • *****
  • Posts: 1380
    • View Profile
Re: How to check if sf::RenderWindow is fullscreen?
« Reply #1 on: June 13, 2019, 12:30:59 am »
Hi.
You have to save what style you used at the window creation yourself.

DasOhmoff San

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: How to check if sf::RenderWindow is fullscreen?
« Reply #2 on: June 13, 2019, 11:12:42 am »
Oh, ok, is there no some kind of get function for that?
For example getStyle() or so?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9239
    • View Profile
    • development blog
    • Email
Re: How to check if sf::RenderWindow is fullscreen?
« Reply #3 on: June 13, 2019, 12:43:50 pm »
Not yet, no. :)
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

DasOhmoff San

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: How to check if sf::RenderWindow is fullscreen?
« Reply #4 on: June 13, 2019, 10:13:19 pm »
Ah ok thx.

 

anything