Microsoft DirectX 8.0 (C++) |
To determine if Microsoft® Direct3D® supports vertex tweening, check for the D3DVTXPCAPS_TWEENING flag in the VertexProcessingCaps member of the D3DCAPS8 structure. The following code example uses the IDirect3DDevice8::GetDeviceCaps method to determine if tweening is supported.
// // This example assumes that m_d3dDevice is // a valid pointer to a IDirect3DDevice8 interface. // D3DCAPS8 d3dCaps; m_d3dDevice->GetDeviceCaps( &d3dCaps ); if( 0 != d3dCaps.VertexProcessingCaps & D3DVTXPCAPS_TWEENING ) //Vertex tweening is supported.