Love and SVG files?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
ZauberParacelsus
Prole
Posts: 6
Joined: Wed Apr 18, 2012 3:39 am

Love and SVG files?

Post by ZauberParacelsus »

Has anyone written any code for loading SVG files with Love2D? Or is this something supported natively by Love2D with the image loader? The wiki doesn't specify which image formats are supported.
User avatar
Ensayia
Party member
Posts: 399
Joined: Sat Jun 12, 2010 7:57 pm

Re: Love and SVG files?

Post by Ensayia »

Hmm.. taking a look I can't seem to find what specific file formats are supported either. I do believe I've heard that vector formats are not supported though, so no SVG.
User avatar
pk
Citizen
Posts: 67
Joined: Wed Dec 14, 2011 2:13 am
Location: Texas, United States
Contact:

Re: Love and SVG files?

Post by pk »

It's called LÖVE, not Love2D.

LÖVE uses DevIL for loading/saving raster images only. Vector support would be nice, but then you need extra Lua API to adjust points, curves, fills, etc, etc. I'm not sure if there's much demand for such machinery.
Last edited by pk on Sun Apr 29, 2012 9:08 am, edited 1 time in total.
ALL CREATURE WILL DIE AND ALL THE THINGS WILL BE BROKEN. THAT'S THE LAW OF SAMURAI.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Love and SVG files?

Post by Robin »

There is a PHP-script that can convert simple SVG images to Lua tables.

Here: https://github.com/gvx/space/blob/maste ... r.php#L162

Note: I didn't write it, although it was for a project of mine. The author was CyaNox, from who I haven't heard in a long time.
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests