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

Author Topic: Change style of sf::RenderWindow.  (Read 2995 times)

0 Members and 1 Guest are viewing this topic.

jaay_

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
Change style of sf::RenderWindow.
« on: October 28, 2016, 08:21:49 pm »
I'm sorry but I'm not the best programmer and I'm kinda new to C++ but I was wondering if there is any way for me to change the style of a sf::RenderWindow from windowed to fullscreen. I saw a post on a way to fix it using some bodge but it only worked on Windows and I'm running Linux! Thanks in advance. Bye!

korczurekk

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • Email
Re: Change style of sf::RenderWindow.
« Reply #1 on: October 28, 2016, 08:28:11 pm »
Why won't you simply close and reopen window?

jaay_

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
Re: Change style of sf::RenderWindow.
« Reply #2 on: October 28, 2016, 08:30:39 pm »
I'm sorry, I'm new to this but how would I go about that? Is there a function for closing and reopening a window?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10818
    • View Profile
    • development blog
    • Email
AW: Change style of sf::RenderWindow.
« Reply #3 on: October 28, 2016, 08:33:22 pm »
Just call the create function on the window (again). :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

jaay_

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
Re: Change style of sf::RenderWindow.
« Reply #4 on: October 28, 2016, 08:35:55 pm »
Oh, silly me! Thank you very much!