Integrating ANGLE with WPF

311 views
Skip to first unread message

Thomas Sevaldrud

unread,
Jan 25, 2014, 6:05:23 PM1/25/14
to anglep...@googlegroups.com
Hi, 

I am working on a project where the GUI needs to be in WPF. This requirement is beyond my control, but my visualization code is in OpenGL, and I don't feel like porting all of it to Direct3D. It runs excellently under ANGLE, however, so hopefully I don't have to :-)

The one little unsolved detail is of course the integration between ANGLE's Direct3D surface and WPF. I was thinking about using a D3DImage, which I have used earlier with success when integrating native D3D code with WPF.

The big question is how (if at all possible) I can get the current IDirect3DSurface9 from ANGLE so that I can put it into my D3DImage.

Also, is there a way I can request a DX9 context specifically, instead of DX11 now that both are available in ANGLE?

Any insight into this would be greatly appreciated.

- Thomas

Thomas Sevaldrud

unread,
Feb 4, 2014, 8:35:14 AM2/4/14
to anglep...@googlegroups.com
This is a dulicate of a previsous discussion. I must have sent it twice to the moderators when I joined the group. Sorry about that!

Still interested in comments on the previous thread though :-)

- Thomas


--
You received this message because you are subscribed to the Google Groups "angleproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angleproject...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Nicolas Capens

unread,
Feb 6, 2014, 10:40:50 AM2/6/14
to tseva...@gmail.com, anglep...@googlegroups.com
Hi Thomas,

You can use the EGL_ANGLE_surface_d3d_texture_2d_share_handle extension to get access to the D3D texture ANGLE renders into. Alternatively you can use EGL_ANGLE_d3d_share_handle_client_buffer to create an EGL surface out of a D3D texture.

Cheers,
Nicolas


--
Reply all
Reply to author
Forward
0 new messages