1
SFML projects / Re: Cellular automata with ImGui + SFML + Bazel
« on: November 02, 2020, 10:29:52 am »Without looking at all the files, the SFML parts I've seen look good, maybe you should call window.clear(); in runner.cpp unconditionally (not sure what IMGUI does).
The state checking looks messy, why not an enum with running/paused/stopped?
Also, try to avoid global/static variables, they're often not needed with good design.
Yeah, I had something in mind to do with enums, but this was a quick hack to have some simulation states. As for the global variables - I agree with you there also.
Thanks for the mini-review
Feel free to add more suggestions, they are more than welcome!