SFML community forums

Help => General => Topic started by: I_Am_A_Dolphin on April 21, 2018, 01:50:14 pm

Title: update loop independent from main
Post by: I_Am_A_Dolphin 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.
Title: Re: update loop independent from main
Post by: eXpl0it3r on April 21, 2018, 03:47:19 pm
By making use of classes.
Title: Re: update loop independent from main
Post by: sjaustirni on April 22, 2018, 10:38:56 pm
SFML doesn't have an ECS (https://en.wikipedia.org/wiki/Entity%E2%80%93component%E2%80%93system) built-in as Unity does (for obvious reasons). Maybe you want to implement it.