开发者

Using D3DImage in C++ .net

开发者 https://www.devze.com 2023-01-10 20:00 出处:网络
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

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

精彩评论

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

关注公众号