G
G
German2019-01-31 11:30:08
C++ / C#
German, 2019-01-31 11:30:08

How to change origin of coordinates in SFML?

How to make the SFML starting point not from the upper left corner, but from the center of the bottom of the window? So that SetPosition(0, 0) would set the shape not to the upper left corner, but to the bottom center of the window. So that with a window width of 800, the edges would be -400 and 400 pixels.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question