Graphics Reference
In-Depth Information
Tutorial 8.4 : Model.cpp: working with the Rotation opeartor
void SetUpRotateMatrix( float angle _ radians) {
LPDIRECT3DDEVICE9 pDevice = UWBD3D _ GraphicsSystem::GetSystem().GetD3DDevice();
D3DXMATRIX rotate _ matrix;
B: D3DXMatrixRotationZ(&rotate _ matrix, angle _ radians);
pDevice->SetTransform( D3DTS _ WORLD , &rotate _ matrix );
}
Listing 8.6. (cont.)
Search WWH ::




Custom Search