Hello, I have a little poblem with zooming and moving the view.
Normally I would do the following:
sf::View CustomView;
App.SetView(CustomView);
CustomView.Zoom(1.5f);
But what if the current Class don´t knows the view?
Do i have to inject it?
I looked into RenderWindow and found the following:
GetView()
So I tried the following:
App->GetView().Zoom(1.5f);
But this gave me an error.
I also tried some casting:
((sf::View) App->GetView()).Zoom(1.5f);
This doesn´t produce a compiler error, but at runtime nothing happens.
Is there a way to get and change the current View?
Thanks in Advance,
Simon[/code]