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.

168 lines
5.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: d3drmdevice3obj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmDevice3Obj.h : Declaration of the C_dxj_Direct3dRMDeviceObject
  11. #include "resource.h" // main symbols
  12. #include "d3drmObjectObj.h"
  13. #define typedef__dxj_Direct3dRMDevice3 LPDIRECT3DRMDEVICE3
  14. /////////////////////////////////////////////////////////////////////////////
  15. // Direct
  16. //REVIEW -- using pointers to ID's is necessary because some compilers don't like
  17. //references as template arguments.
  18. class C_dxj_Direct3dRMDevice3Object :
  19. public I_dxj_Direct3dRMDevice3,
  20. public I_dxj_Direct3dRMObject,
  21. //public CComCoClass<C_dxj_Direct3dRMDevice3Object, &CLSID__dxj_Direct3dRMDevice3>,
  22. public CComObjectRoot
  23. {
  24. public:
  25. C_dxj_Direct3dRMDevice3Object();
  26. virtual ~C_dxj_Direct3dRMDevice3Object();
  27. DWORD InternalAddRef();
  28. DWORD InternalRelease();
  29. BEGIN_COM_MAP(C_dxj_Direct3dRMDevice3Object)
  30. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMDevice3)
  31. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMObject)
  32. END_COM_MAP()
  33. // DECLARE_REGISTRY(CLSID__dxj_Direct3dRMDevice3, "DIRECT.Direct3dRMDevice3.5", "DIRECT.Direct3dRMDevice3.5", IDS_D3DRMDEVICE_DESC, THREADFLAGS_BOTH)
  34. DECLARE_AGGREGATABLE(C_dxj_Direct3dRMDevice3Object)
  35. // I_dxj_Direct3dRMDevice3
  36. public:
  37. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalSetObject(
  38. /* [in] */ IUnknown __RPC_FAR *lpdd);
  39. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalGetObject(
  40. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *lpdd);
  41. HRESULT STDMETHODCALLTYPE addDestroyCallback(
  42. /* [in] */ I_dxj_Direct3dRMCallback __RPC_FAR *fn,
  43. /* [in] */ IUnknown __RPC_FAR *arg);
  44. HRESULT STDMETHODCALLTYPE deleteDestroyCallback(
  45. /* [in] */ I_dxj_Direct3dRMCallback __RPC_FAR *fn,
  46. /* [in] */ IUnknown __RPC_FAR *args);
  47. HRESULT STDMETHODCALLTYPE clone(
  48. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *retv);
  49. HRESULT STDMETHODCALLTYPE setAppData(
  50. /* [in] */ long data);
  51. HRESULT STDMETHODCALLTYPE getAppData(
  52. /* [retval][out] */ long __RPC_FAR *data);
  53. HRESULT STDMETHODCALLTYPE setName(
  54. /* [in] */ BSTR name);
  55. HRESULT STDMETHODCALLTYPE getName(
  56. /* [retval][out] */ BSTR __RPC_FAR *name);
  57. HRESULT STDMETHODCALLTYPE getClassName(
  58. /* [retval][out] */ BSTR __RPC_FAR *name);
  59. HRESULT STDMETHODCALLTYPE addUpdateCallback(
  60. /* [in] */ I_dxj_Direct3dRMDeviceUpdateCallback3 __RPC_FAR *fn,
  61. /* [in] */ IUnknown __RPC_FAR *args);
  62. HRESULT STDMETHODCALLTYPE deleteUpdateCallback(
  63. /* [in] */ I_dxj_Direct3dRMDeviceUpdateCallback3 __RPC_FAR *fn,
  64. /* [in] */ IUnknown __RPC_FAR *args);
  65. HRESULT STDMETHODCALLTYPE findPreferredTextureFormat(
  66. /* [in] */ long bitDepth,
  67. /* [in] */ long flags,
  68. /* [out][in] */ DDPixelFormat __RPC_FAR *ddpf);
  69. HRESULT STDMETHODCALLTYPE getBufferCount(
  70. /* [retval][out] */ long __RPC_FAR *retv);
  71. HRESULT STDMETHODCALLTYPE getColorModel(
  72. /* [retval][out] */ d3dColorModel __RPC_FAR *retv);
  73. // HRESULT STDMETHODCALLTYPE getDirect3DDevice3(
  74. // /* [retval][out] */ I_dxj_Direct3dDevice3 __RPC_FAR *__RPC_FAR *retv);
  75. HRESULT STDMETHODCALLTYPE getDither(
  76. /* [retval][out] */ long __RPC_FAR *d);
  77. HRESULT STDMETHODCALLTYPE getHeight(
  78. /* [retval][out] */ int __RPC_FAR *w);
  79. HRESULT STDMETHODCALLTYPE getQuality(
  80. /* [retval][out] */ d3drmRenderQuality __RPC_FAR *retv);
  81. HRESULT STDMETHODCALLTYPE getRenderMode(
  82. /* [retval][out] */ long __RPC_FAR *retv);
  83. HRESULT STDMETHODCALLTYPE getShades(
  84. /* [retval][out] */ long __RPC_FAR *s);
  85. HRESULT STDMETHODCALLTYPE getTextureQuality(
  86. /* [retval][out] */ d3drmTextureQuality __RPC_FAR *retv);
  87. HRESULT STDMETHODCALLTYPE getTrianglesDrawn(
  88. /* [retval][out] */ long __RPC_FAR *retv);
  89. HRESULT STDMETHODCALLTYPE getViewports(
  90. /* [retval][out] */ I_dxj_Direct3dRMViewportArray __RPC_FAR *__RPC_FAR *views);
  91. HRESULT STDMETHODCALLTYPE getWireframeOptions(
  92. /* [retval][out] */ long __RPC_FAR *retv);
  93. HRESULT STDMETHODCALLTYPE getWidth(
  94. /* [retval][out] */ int __RPC_FAR *w);
  95. HRESULT STDMETHODCALLTYPE setBufferCount(
  96. /* [in] */ long count);
  97. HRESULT STDMETHODCALLTYPE setDither(
  98. /* [in] */ long dith);
  99. HRESULT STDMETHODCALLTYPE setQuality(
  100. /* [in] */ d3drmRenderQuality q);
  101. HRESULT STDMETHODCALLTYPE setRenderMode(
  102. /* [in] */ long flags);
  103. HRESULT STDMETHODCALLTYPE setShades(
  104. /* [in] */ int shades);
  105. HRESULT STDMETHODCALLTYPE setTextureQuality(
  106. /* [in] */ d3drmTextureQuality d);
  107. HRESULT STDMETHODCALLTYPE update( void);
  108. HRESULT STDMETHODCALLTYPE handleActivate(long wParam) ;
  109. HRESULT STDMETHODCALLTYPE handlePaint(long hdcThing) ;
  110. ////////////////////////////////////////////////////////////////////////////////////
  111. //
  112. // note: this is public for the callbacks
  113. DECL_VARIABLE(_dxj_Direct3dRMDevice3);
  114. private:
  115. public:
  116. DX3J_GLOBAL_LINKS( _dxj_Direct3dRMDevice3 )
  117. IUnknown *parent2;
  118. };