开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜