| 56 | } |
| 57 | |
| 58 | HRESULT CUiAnimation::Init() |
| 59 | { |
| 60 | SASSERT(!getSingletonPtr()); |
| 61 | |
| 62 | // Create Animation Timer |
| 63 | SComPtr<IUIAnimationTimer> pAnimationTimer; |
| 64 | |
| 65 | HRESULT hr = CoCreateInstance( |
| 66 | __uuidof(UIAnimationTimer), |
| 67 | NULL, |
| 68 | CLSCTX_INPROC_SERVER, |
| 69 | IID_PPV_ARGS(&pAnimationTimer) |
| 70 | ); |
| 71 | if (SUCCEEDED(hr)) |
| 72 | { |
| 73 | //创建一个UIAnimation的单例 |
| 74 | new CUiAnimation(pAnimationTimer); |
| 75 | } |
| 76 | |
| 77 | return hr; |
| 78 | } |
| 79 | |
| 80 | void CUiAnimation::Free() |
| 81 | { |
no outgoing calls
no test coverage detected