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

Author Topic: How to properly set icon to window?  (Read 2199 times)

0 Members and 1 Guest are viewing this topic.


  • Jr. Member
  • **
  • Posts: 56
    • View Profile
How to properly set icon to window?
« on: October 08, 2016, 12:38:46 am »
I searched on the internet for the answer, and all I found were topics older than 8 years. My question is what is the best and properly way to set icon to the render window? And also to .exe.


  • SFML Team
  • Hero Member
  • *****
  • Posts: 10914
    • View Profile
    • development blog
    • Email
AW: How to properly set icon to window?
« Reply #1 on: October 08, 2016, 01:28:36 am »
To set the window icon see the documentation: http://www.sfml-dev.org/documentation/2.4.0/classsf_1_1Window.php#a63af61e026fba08e3153fd013620bcc0

Setting thr icon of the executable is not something SFML does for you and it's platform specific. There are plenty of tutorials availabe online for Windows.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
Dev Blog: https://duerrenberger.dev/blog/