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.

91 lines
3.0 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: d3d7obj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3dObj.h : Declaration of the C_dxj_Direct3dObject
  11. #include "resource.h" // main symbols
  12. #define typedef__dxj_Direct3d7 LPDIRECT3D7
  13. /////////////////////////////////////////////////////////////////////////////
  14. // Direct
  15. //REVIEW -- using pointers to ID's is necessary because some compilers don't like
  16. //references as template arguments.
  17. class C_dxj_Direct3d7Object :
  18. public I_dxj_Direct3d7,
  19. //public CComCoClass<C_dxj_Direct3d7Object, &CLSID__dxj_Direct3d7>,
  20. public CComObjectRoot
  21. {
  22. public:
  23. C_dxj_Direct3d7Object() ;
  24. virtual ~C_dxj_Direct3d7Object() ;
  25. DWORD InternalAddRef();
  26. DWORD InternalRelease();
  27. BEGIN_COM_MAP(C_dxj_Direct3d7Object)
  28. COM_INTERFACE_ENTRY(I_dxj_Direct3d7)
  29. END_COM_MAP()
  30. // DECLARE_REGISTRY(CLSID__dxj_Direct3d7, "DIRECT.Direct3d.3", "DIRECT.Direct3d7.3", IDS_D3D_DESC, THREADFLAGS_BOTH)
  31. DECLARE_AGGREGATABLE(C_dxj_Direct3d7Object)
  32. // I_dxj_Direct3d
  33. public:
  34. //UPDATED
  35. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalSetObject(
  36. /* [in] */ IUnknown __RPC_FAR *lpdd);
  37. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalGetObject(
  38. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *lpdd);
  39. HRESULT STDMETHODCALLTYPE createDevice(
  40. /* [in] */ BSTR guid,
  41. I_dxj_DirectDrawSurface7 __RPC_FAR *surf,
  42. /* [retval][out] */ I_dxj_Direct3dDevice7 __RPC_FAR *__RPC_FAR *ret);
  43. // HRESULT STDMETHODCALLTYPE createTexture(
  44. // /* [in] */ I_dxj_DirectDrawSurface7 __RPC_FAR *dds,
  45. // /* [retval][out] */ I_dxj_Direct3dTexture7 __RPC_FAR *__RPC_FAR *ret);
  46. HRESULT STDMETHODCALLTYPE createVertexBuffer(
  47. /* [in] */ D3dVertexBufferDesc __RPC_FAR *desc,
  48. /* [in] */ long flags,
  49. /* [retval][out] */ I_dxj_Direct3dVertexBuffer7 __RPC_FAR *__RPC_FAR *f);
  50. HRESULT STDMETHODCALLTYPE evictManagedTextures( void);
  51. // HRESULT STDMETHODCALLTYPE findDevice(
  52. // /* [in] */ D3dFindDeviceSearch __RPC_FAR *ds,
  53. // /* [out][in] */ D3dFindDeviceResult7 __RPC_FAR *findresult);
  54. HRESULT STDMETHODCALLTYPE getDevicesEnum(
  55. /* [retval][out] */ I_dxj_Direct3DEnumDevices __RPC_FAR *__RPC_FAR *retv);
  56. HRESULT STDMETHODCALLTYPE getDirectDraw(
  57. /* [retval][out] */ I_dxj_DirectDraw7 __RPC_FAR *__RPC_FAR *retv);
  58. HRESULT STDMETHODCALLTYPE getEnumZBufferFormats(
  59. /* [in] */ BSTR guid,
  60. /* [retval][out] */ I_dxj_Direct3DEnumPixelFormats __RPC_FAR *__RPC_FAR *retv);
  61. private:
  62. DECL_VARIABLE(_dxj_Direct3d7);
  63. public:
  64. DX3J_GLOBAL_LINKS( _dxj_Direct3d7 )
  65. };