摘要:
D3DXVECTOR3 look_position(0.0f,20.0f,50.0f); D3DXVECTOR3 look_targetpoint(0.0f,0.0f,00.0f); D3DXVECTOR3 look_worldup(0.0f,1.0f,0.0f); D3DXMatrixLookAtLH(&lookAt,&look_position,&look_targetpoint,&look_worldup); Device->SetTransform(D3DTS_VIEW,&lookAt);这段代码是设置视图空间的标准写法,需要注意的是loo 阅读全文