Help with external library inclusion

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.
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: Help with external library inclusion

Post by coffee »

T-Bone wrote:I've never heard of universal dll:s. What are they compiled into? They can't be real binaries, can they?
I'm not sure if PureBasic does really one file universal library but it can compile DLL's to all platforms. About the accuracy of that technical details to be consider real binaries or not. But you can do a quick look here
http://www.purebasic.com/documentation/ ... e/dll.html
http://forum.purebasic.com/english/view ... =7&t=50871
User avatar
Inny
Party member
Posts: 652
Joined: Fri Jan 30, 2009 3:41 am
Location: New York

Re: Help with external library inclusion

Post by Inny »

iconmaster wrote:
Inny wrote:I'm assuming gd.dll is this: http://gnuwin32.sourceforge.net/packages/gd.htm

In which case, can I ask why this would be helpful? Maybe we can have a little discussion and get around even needing the dll in the first place, and keeping your game portable across every platform love supports.
I'm using the GD library that came with my Lua distribution, which I believe is what you say, yes. I am using it so I can combine and manipulate multiple images together and then save them as a temporary tileset for a SpriteBatch. I am assuming it's probably is a poor tool for my job. I was looking just for a library to manipluate image files directly.
I don't know if this would replace what you're using gd for, but Love's image library has some features for merging multiple images together: https://love2d.org/wiki/ImageData

In one older project I have, I take a single image that my artist made with weird dimensions, load it into an ImageData, and then paste from it into another imageData that fits the PowerOfTwo requirement for textures. If that's enough for you, and you don't do any other special things to the image, then you can ditch the gd requirement altogether and not have to worry about including .dll's or .so's for every platform you want to support.

Side Note: the ImageData:mapPixel function might be neat to play with if you do any special manipulation of images.
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: Help with external library inclusion

Post by Positive07 »

T-Bone wrote:I've never heard of universal dll:s. What are they compiled into? They can't be real binaries, can they?
Its an .EXE file that isnt an executabe file itself but a library (just like a lua library, but compiled into machine code)
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests