sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.7k stars 639 forks source link

SharpDX and Win2D interop #707

Open dejancrn opened 8 years ago

dejancrn commented 8 years ago

Is it possible? Any examples?

xoofx commented 8 years ago

I don't know much about the API exposed by Win2D, but I believe that they expose raw pointers of the COM objects they use, so it should be quite easy to instantiate a SharpDX.Direct2D1 COM object directly using constructor like new XXX(IntPtr comPtr).

There are no samples, but it should be trivial.