|
发表于 2011-2-24 11:43:00
|
显示全部楼层
Re:使用IDirect3DDevice9::SetDialogBoxMode()时怎么一直返回失败?
If the method fails, the return value can be D3DERR_INVALIDCALL unless all of the following are true.
1.The application specified a back buffer format compatible with GDI, in other words, one of D3DFMT_X1R5G5B5, D3DFMT_R5G6B5, or D3DFMT_X8R8G8B8.
2.The application specified no multisampling.
3.The application specified D3DSWAPEFFECT_DISCARD.
4.The application specified D3DPRESENTFLAG_LOCKABLE_BACKBUFFER.
5.The application did not specify D3DCREATE_ADAPTERGROUP_DEVICE.
6.The application is not between BeginScene and EndScene.
符合以上6条才会成功。多看看文档吧。 |
|