Microsoft DirectX 8.0 (Visual Basic) |
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 Direct3DDevice8.GetDeviceCaps method to determine if tweening is supported.
' ' This example assumes that d3dDevice ' is a valid Direct3DDevice object. ' Dim d3dCaps As D3DCAPS8 d3dDevice.GetDeviceCaps d3dCaps If 0 <> (d3dCaps.VertexProcessingCaps & D3DVTXPCAPS_TWEENING) Then //Vertex tweening is supported. End If