|
|
D3DPRESENT_PARAMETERS d3dpp;
ZeroMemory(&d3dpp, sizeof(d3dpp));
//d3dpp.EnableAutoDepthStencil = TRUE;//For 3D
d3dpp.EnableAutoDepthStencil = FALSE;//For 2D
If this value is TRUE, Direct3D will manage depth buffers for the application.
?表示2D不用depth buffer??
如果我同?r要?3D?2D的?D形的?,要重?d3dpp.EnableAutoDepthStencil??
?是在切?Q3D?2D?r,?定不同的FVF就可以了,??rd3dpp.EnableAutoDepthStencil要?定??ALSE或TRUE? |
|