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

Author Topic: I need to migrate (bad on english warning)  (Read 22 times)

0 Members and 1 Guest are viewing this topic.

MegaGamer69

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
I need to migrate (bad on english warning)
« on: May 13, 2025, 02:25:04 pm »
Im creating a Clash Royale-like game in CSFML, i use the 2.1 but i want to use the 3, can someone give me tips to migrate?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11201
    • View Profile
    • development blog
    • Email
Re: I need to migrate (bad on english warning)
« Reply #1 on: May 13, 2025, 02:38:39 pm »
The CSFML 2.x to CSFML 3.x migration should be easier than if you'd do it in C++ land, since more APIs remained the same and some of C++ language changes, didn't transfer/translate into the C API itself.

I personally would make sure that the code is under source control. Then I'd swap out CSFML 2 with CSFML 3 and slowly work myself through the compiler errors.

The migration guide is a good resource, though it's written for C++, so many changes won't directly apply: https://www.sfml-dev.org/tutorials/3.0/getting-started/migrate/
Additionally, I'd build the CSFML documentation with doxygen, so that I could look up the available functions/APIs.
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything