Page 1 of 1

Get the current screen translation?

Posted: Wed Jul 13, 2016 3:01 pm
by Plu
Is there any way to obtain the graphics system's current translation?

Ie;

Code: Select all

love.graphics.translate(10, 5)
love.graphics.translate(25, 3)

x, y = someWellHiddenMethod() -- should return 35, 8

Or will I have to track the changes myself?

Re: Get the current screen translation?

Posted: Wed Jul 13, 2016 4:01 pm
by zorg
I do believe you'd have to keep track of the calculations; i only know of a function that could reset it.