Using D3DImage in C++ .net
I think this is an easy question, sorry I am not really familiar with C++. I am using D3DImage in C++.Net project which is using it's SetBackBuffer method,开发者_StackOverflow and I am also using DX Surface. I don't know how to convert IDirect3DSurface9 to IntPtr as parameter in SetBackBuffer method. Anyone knows? please help.
If you are using C++ with the IDirect3DSurface9, the surface is a pointer. For example:
IDirect3DSurface9 * pSurface;
/* ... */
IntPtr backBuffer = IntPtr(pSurface);
I would also suggest using SlimDX as it is a thin .NET layer on top of D3D.
精彩评论