Source code of Windows XP (NT5)
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.

43 lines
1.1 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: d3drmvisualarrayobj.cpp
  8. //
  9. //--------------------------------------------------------------------------
  10. // _dxj_Direct3dRMVisualArrayObj.cpp : Implementation of CDirectApp and DLL registration.
  11. #include "stdafx.h"
  12. #include "Direct.h"
  13. #include "dms.h"
  14. #include "d3drmVisualArrayObj.h"
  15. #include "d3drmFrame3Obj.h"
  16. #include "d3drmMeshbuilder3Obj.h"
  17. #include "d3drmTexture3Obj.h"
  18. #include "d3drmShadow2Obj.h"
  19. #include "d3drmMeshObj.h"
  20. #include "d3drmUserVisualObj.h"
  21. CONSTRUCTOR(_dxj_Direct3dRMVisualArray, {});
  22. DESTRUCTOR(_dxj_Direct3dRMVisualArray, {});
  23. GETSET_OBJECT(_dxj_Direct3dRMVisualArray);
  24. GET_DIRECT_R(_dxj_Direct3dRMVisualArray, getSize, GetSize, long);
  25. STDMETHODIMP C_dxj_Direct3dRMVisualArrayObject::getElement(long i,I_dxj_Direct3dRMVisual **ret){
  26. HRESULT hr;
  27. LPDIRECT3DRMVISUAL lp=NULL;
  28. hr=m__dxj_Direct3dRMVisualArray->GetElement((DWORD)i,&lp);
  29. if FAILED(hr) return hr;
  30. hr=CreateCoverVisual(lp,ret);
  31. return hr;
  32. }