Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: d3drmanimationarrayobj.cpp
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmAnimationArrayObj.cpp : Implementation of CDirectApp and DLL registration.
  11. #include "stdafx.h"
  12. #include "Direct.h"
  13. #include "dms.h"
  14. #include "d3drmAnimationArrayObj.h"
  15. #include "d3drmAnimation2Obj.h"
  16. extern void *g_dxj_Direct3dRMAnimationArray;
  17. CONSTRUCTOR(_dxj_Direct3dRMAnimationArray, {});
  18. DESTRUCTOR(_dxj_Direct3dRMAnimationArray, {});
  19. GETSET_OBJECT(_dxj_Direct3dRMAnimationArray);
  20. GET_DIRECT_R(_dxj_Direct3dRMAnimationArray,getSize, GetSize, long)
  21. HRESULT C_dxj_Direct3dRMAnimationArrayObject::getElement(long i, I_dxj_Direct3dRMAnimation2 **Animation){
  22. HRESULT hr;
  23. IDirect3DRMAnimation2 *realAnimation2=NULL;
  24. hr=m__dxj_Direct3dRMAnimationArray->GetElement((DWORD)i,&realAnimation2);
  25. if FAILED(hr) return hr;
  26. INTERNAL_CREATE(_dxj_Direct3dRMAnimation2,(IDirect3DRMAnimation2*)realAnimation2,Animation);
  27. return hr;
  28. }