What of Love's API uses DPI independent coords?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Googlebot42
Prole
Posts: 1
Joined: Mon Apr 15, 2019 1:06 am

What of Love's API uses DPI independent coords?

Post by Googlebot42 » Mon Apr 15, 2019 1:43 am

Apologies if this question has been answered before. Didn't find anything else surprisingly. Last time a used Love was 0.8.0 so I am figuring out what has changed since then. Quite a bit which is very nice to see. :awesome: Looking at the changelog, one of these things is almost transparent DPI but almost nothing is said about it.

From 11.0 changelog
Changed high-dpi functionality to require much less code (often none at all) for graphics to appear at the correct sizes and positions.
From 0.9.1 changelog
Added high-dpi window support for Retina displays in OS X, via the 'highdpi' window flag.
Looking at the API, there is now DPI independent coords and pixel coords. The question I have is, what class of functions use pixel coords and which use DPI independent coords? I figure that all drawing operations (except things for pixel shaders) are done in DPI independent coords. The rest isn't clear to me. Thank you.

User avatar
pgimeno
Party member
Posts: 1769
Joined: Sun Oct 18, 2015 2:58 pm

Re: What of Love's API uses DPI independent coords?

Post by pgimeno » Tue Apr 16, 2019 2:19 pm

ImageData works with pixels. Right off the bat I don't remember any others.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests