adobe / svg-native-viewer

SVG Native viewer is a library that parses and renders SVG Native documents
Apache License 2.0
153 stars 37 forks source link

Add D2D renderer #61

Open be5invis opened 4 years ago

be5invis commented 4 years ago

GDI+ is really considered obsolete, and many libs/ui frameworks is moving to d2d.

mpsuzuki commented 4 years ago

Indeed, we should add D2D port. Dirk had once worked for WinDrawLib port, I guess it was a next step after GDI+ port. I want to hear his comment whether he found any critical problem and abandoned the port, or he moved to another port calling D2D directory.

BTW, I'm really newbie about D2D programming. Is there any nice tutorial?

dirkschulze commented 4 years ago

@mpsuzuki If you used GDI+ before it is not hard to get into D2D. The basic idea of rendering is similar. Would you be interested in working on the D2D port? I could try to get someone in my team interested but that will take a couple of weeks at least.

mpsuzuki commented 4 years ago

I think the request of the migration to D2D is reasonable, but I've never experienced with GDI+ programming. Maybe a couple of weeks is to short for me to learn D2D. I want to hear whether any experts from your team would be interested in this issue. If nobody would work (that's really OK, no problem), and there is no technical barrier, I should work for this.

dirkschulze commented 4 years ago

@mpsuzuki No problem :)

dirkschulze commented 3 years ago

An early prototype can be found here: https://github.com/dirkschulze/svg-native-viewer/tree/d2d-port (crashing after drawing currently).