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

Author Topic: update loop independent from main  (Read 2073 times)

0 Members and 1 Guest are viewing this topic.

I_Am_A_Dolphin

  • Newbie
  • *
  • Posts: 1
    • View Profile
update loop independent from main
« on: April 21, 2018, 01:50:14 pm »
Hey i'm pretty new to sfml and i come from unity. I wanted to ask how you can make unity-like update method not calling it in int main. I know that in smaller projects it's unnecessary but in bigger projects i can't imagine calling every object loop in main.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11046
    • View Profile
    • development blog
    • Email
Re: update loop independent from main
« Reply #1 on: April 21, 2018, 03:47:19 pm »
By making use of classes.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

sjaustirni

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
Re: update loop independent from main
« Reply #2 on: April 22, 2018, 10:38:56 pm »
SFML doesn't have an ECS built-in as Unity does (for obvious reasons). Maybe you want to implement it.