Hello there.
Writing on SFML.NET. When i use the view.Viewport.Top or view.Viewport.Left, it's results in 0, although it should be -100 in my case. What's the problem? How can i get the position of my camera?
static void Main
() { RenderWindow window
= new RenderWindow
(new Window
.VideoMode(500,
300),
"test"); View view
= new View
(new Vector2f
(-100,
-100), window
.GetView().Size); window
.Closed += (o, a
) => window
.Close(); CircleShape circle
= new CircleShape
(20); while (window
.IsOpen()) { Console
.WriteLine(view
.Viewport.Top); window
.SetView(view
); window
.Draw(circle
); window
.DispatchEvents(); window
.Display(); window
.Clear(); } }