Hello, so I tried to write SFML programs with multiple files and when I use a window defined elsewhere it cannot find it. Is their some way of creating Global windows?
It is local to the function it was defined in, however if were to make a global variable out of every variable we needed access to outside of the function it was defined in, we would be quickly overwhelmed with global variables. Consider, instead, passing it by reference to the code that needs it.