SFML community forums
Help => Graphics => Topic started by: Putarda on June 04, 2017, 09:26:14 am
-
So I found that SFML is using conventional coordinate system where -Y goes up and +X goes right. But since my game engine classes are based on normal coordinate system (conventional mathematical coordinate system), the reverted Y axis is breaking them. Should I reverse Y axis, and is this idea wrong? And how can I reverse it. Thanks :).
-
Use a "math" layer where you do all the calculation you need, then have a conversion layer that translates your calculated information into the graphics layer that then renders your results to the screen.
That way all you need to do is flip the Y axis inside the conversion layer.