matrix:scale

I’m struggling to get the current matrix in order to invert its y-coordinates. I need to have my origin [0, 0] at the [Top, Left] of the iPad screen! Can anyone give a quick hint?

any ideas? maybe @Simeon?

Write a function

f(y)= HEIGHT - y end

and use f(y) in your code in place of y?

want to do that on matrix base, because i can popMatrix() and later pushMatrix()! this seems to me more flexible when i decide to mix up inverted view and normal codeas behaviour…

i have this already:

modelMatrix():scale(1, -1)

but how to make the changes see?

Why don’t you:

translate(0, HEIGHT)
scale(1, -1)

This should invert the screen

BEST! This solves it! Thank you very much