segunda-feira, 21 de setembro de 2009

SVG on C#

I've seen a lot of hits from my other blog, CorporateDrones regarding SVG rendering on C#. I've decided to post here my little implementation (poor's man SVG implementation) from the Global Game Jam 2009.

It is actually a port from the SVG module of project BZK (my pet project, http://www.sf.net/projects/bzk , there, you can find a simple version in C++), but using C# (Mono) and GTK#. BTW, differently from BZK, Im using C# internal XML parser (interesting that I didnt remember doing that. I was propably high on Coca-Cola). It should be easy to port to other rendering backends/VMs.

Whats supported? Rect and Paths. No fancy Path stuff, but only straight lines. Impossible to do good stuff? Look again!

Note: This code has never been touched again since it has been written in short 2 hours sprint. It probably contain a few bugs (none that I know of) , but in general, Im very pleased with the quality of the port.

The license is GPLv3.

With no further stalling: testeSVG.zip

0 comentários:

Postar um comentário