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

Author Topic: Opening A web brower  (Read 1211 times)

0 Members and 1 Guest are viewing this topic.

sammy2022

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Opening A web brower
« on: October 14, 2022, 04:18:23 pm »
I will like to open up the web browser to a particular address when the user clicks a button, how can I achieve this with sfml?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Re: Opening A web brower
« Reply #1 on: October 14, 2022, 04:30:04 pm »
SFML doesn't offer such a functionality.
You'll probably have to call some OS specific function, see here for example: https://stackoverflow.com/questions/17347950/how-do-i-open-a-url-from-c
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything