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.

44 lines
1.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: d3drmframearrayobj.cpp
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmFrameArrayObj.cpp : Implementation of CDirectApp and DLL registration.
  11. #include "stdafx.h"
  12. #include "Direct.h"
  13. #include "dms.h"
  14. #include "d3drmFrameArrayObj.h"
  15. #include "d3drmFrame3Obj.h"
  16. CONSTRUCTOR(_dxj_Direct3dRMFrameArray, {});
  17. DESTRUCTOR(_dxj_Direct3dRMFrameArray, {});
  18. GETSET_OBJECT(_dxj_Direct3dRMFrameArray);
  19. GET_DIRECT_R(_dxj_Direct3dRMFrameArray,getSize, GetSize, long)
  20. HRESULT C_dxj_Direct3dRMFrameArrayObject::getElement(long i, I_dxj_Direct3dRMFrame3 **frame){
  21. HRESULT hr;
  22. IDirect3DRMFrame *realframe=NULL;
  23. IDirect3DRMFrame3 *realframe3=NULL;
  24. hr=m__dxj_Direct3dRMFrameArray->GetElement((DWORD)i,&realframe);
  25. if FAILED(hr) return hr;
  26. hr=realframe->QueryInterface(IID_IDirect3DRMFrame3,(void**)&realframe3);
  27. realframe->Release();
  28. if FAILED(hr) return hr;
  29. INTERNAL_CREATE(_dxj_Direct3dRMFrame3,(IDirect3DRMFrame3*)realframe3,frame);
  30. return hr;
  31. }