Render SVG directly in memory and use as 2D Sprite?

Advanced game related topics
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 794
Joined: Fri Dec 04, 2015 9:26 pm

Render SVG directly in memory and use as 2D Sprite?

Post by skinkairewalker »

Hi everyone,

I have a question about working with SVG in PureBasic.
I’d like to know if there’s a way to:

Render an SVG file (or SVG string) directly into an image in memory, without creating temporary files like test.svg.

Use that in-memory rendered image to create/import it as a 2D sprite and draw it on screen.

The idea is to handle vector graphics directly inside the program, without having to convert them to PNG or other formats beforehand.

Has anyone tried something similar? Is there any library or workaround for this in PureBasic?

Thanks!
infratec
Always Here
Always Here
Posts: 7654
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Render SVG directly in memory and use as 2D Sprite?

Post by infratec »

User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 794
Joined: Fri Dec 04, 2015 9:26 pm

Re: Render SVG directly in memory and use as 2D Sprite?

Post by skinkairewalker »

Post Reply