Drawing on a foreign D3DDevice's surface

Started by
0 comments, last by kovacsp 19 years, 6 months ago
Hi, all! In my application I got a surface created with an instance of IDirect3DDevice9 and I want to draw something on this surface. However, I should not use this device directly because it has been created and is managed by another DLL, so I can't be sure about its state. I have created another instance of D3DDevice and tried to use D3DXRenderToSurface but it does not seem to work. Is it possible to draw with device B on a surface created by device A? How? Taras
Advertisement
I think you should see the thread called "Accessing existing D3D Device" on the directxdev mailing list. (august week 4 and 5).
Here are the archives: discuss.microsoft.com/archives/DIRECTXDEV.html
Maybe this is not what you are looking for, sorry then.

Peter
------------------------------------------------------------Neo, the Matrix should be 16-byte aligned for better performance!

This topic is closed to new replies.

Advertisement