c++ - Mirroring the Y axis in SFML -


hey i'm integrating box2d , sfml, , box2d has same odd, mirrored y-axis coordinate system sfml, meaning rendered upside down. there kind of function or short amount of code can put mirrors window's render contents?

i'm thinking can put in sf::view this...

how can flip y-axis easily, rendering purposes, not effecting bodies dimensions/locations?

i don't know box2d when wanted flip y axis using opengl, applied negative scaling factor projection matrix, like:

glmatrixmode(gl_projection); glloadidentity(); glscalef(1.0f, -1.0f, 1.0f); 

if want independent of opengl apply sf::view negative x value.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -