Jump to content

View more

Image of the Day

Adding some finishing touches...
Follow us for more
#screenshotsaturday #indiedev... by #MakeGoodGames https://t.co/Otbwywbm3a
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

DirectX9 and WPF D3DImage

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 tupeltaja   Members   

105
Like
0Likes
Like

Posted 25 June 2012 - 07:01 AM

Morning all,

I have a simple question and couldn't find certain answer. FYI, I could get SlimDX example using mixture of DirectX9 & DirectX10 and WPF D3DImage class working fine.

Is it possible to use pure DirectX9 to render to D3DImage surface?

Using DX10 would require too much rewriting, so it's not an option at this time.

Thank you very much.

#2 Nik02   Members   

4312
Like
0Likes
Like

Posted 25 June 2012 - 08:03 AM

The D3DImage::SetBackBuffer method specifically accepts an IDirect3DSurface9 pointer. The common scenario is that a native dll (which does your native D3D stuff) provides this pointer to WPF via interop.

Niko Suni





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.