Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SVG Images  (Read 5412 times)

0 Members and 1 Guest are viewing this topic.

Aldasa

  • Newbie
  • *
  • Posts: 1
    • View Profile
SVG Images
« on: April 22, 2012, 12:46:32 am »
How can I load use SVG images with sfml?

Ive tried the snippet in the WIKI, using cairo, but I get a lot of linking errors.

Has anybody tried loading SVG images recently? Whats the best way to go about it?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SVG Images
« Reply #1 on: April 22, 2012, 08:35:30 am »
SFML doesn't support the SVG format, so using another library is the only solution.
Laurent Gomila - SFML developer

fer_t

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • Email
Re: SVG Images
« Reply #2 on: October 09, 2015, 06:32:49 pm »
But it would be a nice feature, because it would save a lot of diskspace.
If I only need one SVG (which is also very easy to compress) instead of a lot of png files or one big and scale it.
But I think this is a lot of work.

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: SVG Images
« Reply #3 on: October 09, 2015, 06:55:16 pm »
Parsing svg files is quite difficult and it has been asked many times on here. Yes it would be handy and it IS technically in the realm of multimedia but as I mentioned I don't believe it's as simple as JPEG/png support.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SVG Images
« Reply #4 on: October 09, 2015, 08:21:05 pm »
Parsing the SVG format is one thing, rendering vector graphics is another story...
Laurent Gomila - SFML developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: SVG Images
« Reply #5 on: October 09, 2015, 08:33:11 pm »
But it would be a nice feature, because it would save a lot of diskspace.
Besides disk space not being a critical resource nowadays, I don't think game graphics are a good example of a format that would benefit of vector graphics. With their extreme detail and heavy use of colors, shades, gradients etc., game graphics are usually better represented as raster graphics.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything