Get the current screen translation?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Plu
Inner party member
Posts: 722
Joined: Fri Mar 15, 2013 9:36 pm

Get the current screen translation?

Post 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?
User avatar
zorg
Party member
Posts: 3449
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Get the current screen translation?

Post by zorg »

I do believe you'd have to keep track of the calculations; i only know of a function that could reset it.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests