How to convert ID3DXAnimationSet to ID3DXKeyframedAnimationSet ?

Started by
3 comments, last by JoystickX 16 years, 10 months ago
...is it possible? [Edited by - JoystickX on June 2, 2007 12:35:12 PM]
Advertisement
If I use QueryInterface than program crashes on calling UnregisterAnimation() with animation index higher than 0


if (SUCCEEDED (pAnimController->GetAnimationSetByName (szAnimSetName, &pAnimSet))){	if (SUCCEEDED(pAnimSet->QueryInterface (IID_ID3DXKeyframedAnimationSet, (LPVOID*)&pKeyFramedAnimSet)))	{		UINT dwNumAnimations = pKeyFramedAnimSet->GetNumAnimations ();		for (UINT i=0; i<dwNumAnimations; i++)			HRESULT hr = pKeyFramedAnimSet->UnregisterAnimation (i);	}	pAnimSet->Release ();}
bump
bump
bump

This topic is closed to new replies.

Advertisement