PS: i'm not using SFML, i will start use it tomorrow maybe.
Btw, can you use a global view? Or give a reference of that view to your function?
Not sure what you mean by global view(EDIT:Oh, I think you mean making it a global variable. Thanks, I've thought of that too, but I'd like to try and get my current situation to work
), and yes I could probably give the view as a reference to the function but I'd like to keep it simple. Since the RenderWindow "App" is already a parameter, I'd rather be able to use one of it's methods or properties to reach the view.
Also, here's some example code. This is all in my main.cpp file for simplification:
App.GetView().Move(3,4);
I'd like this to work, but I get an error that says the object has type qualifiers that prevent a match and that there are too many arguments in the function call, yet if I use the view directly and say gameView.Move(3, 4), it will work.
const sf::View& view = App.GetView();
view.Move(3,4);
I tried this too, didn't really expect it to work...which it didn't.