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.

191 lines
6.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: d3drmviewport2obj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmViewport2Obj.h : Declaration of the C_dxj_Direct3dRMViewport2Object
  11. #include "resource.h" // main symbols
  12. //#include "d3drmObjectObj.h"
  13. #define typedef__dxj_Direct3dRMViewport2 LPDIRECT3DRMVIEWPORT2
  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_Direct3dRMViewport2Object :
  19. public I_dxj_Direct3dRMViewport2,
  20. public I_dxj_Direct3dRMObject,
  21. public CComObjectRoot
  22. {
  23. public:
  24. C_dxj_Direct3dRMViewport2Object() ;
  25. virtual ~C_dxj_Direct3dRMViewport2Object() ;
  26. DWORD InternalAddRef();
  27. DWORD InternalRelease();
  28. BEGIN_COM_MAP(C_dxj_Direct3dRMViewport2Object)
  29. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMViewport2)
  30. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMObject)
  31. END_COM_MAP()
  32. DECLARE_AGGREGATABLE(C_dxj_Direct3dRMViewport2Object)
  33. // I_dxj_Direct3dRMViewport2
  34. public:
  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 clone(
  40. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *retv);
  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 setAppData(
  48. /* [in] */ long data);
  49. HRESULT STDMETHODCALLTYPE getAppData(
  50. /* [retval][out] */ long __RPC_FAR *data);
  51. HRESULT STDMETHODCALLTYPE setName(
  52. /* [in] */ BSTR name);
  53. HRESULT STDMETHODCALLTYPE getName(
  54. /* [retval][out] */ BSTR __RPC_FAR *name);
  55. HRESULT STDMETHODCALLTYPE getClassName(
  56. /* [retval][out] */ BSTR __RPC_FAR *name);
  57. HRESULT STDMETHODCALLTYPE clear(
  58. /* [in] */ long flags);
  59. HRESULT STDMETHODCALLTYPE render(
  60. /* [in] */ I_dxj_Direct3dRMFrame3 __RPC_FAR *f);
  61. HRESULT STDMETHODCALLTYPE getCamera(
  62. /* [retval][out] */ I_dxj_Direct3dRMFrame3 __RPC_FAR *__RPC_FAR *val);
  63. HRESULT STDMETHODCALLTYPE getDevice(
  64. /* [retval][out] */ I_dxj_Direct3dRMDevice3 __RPC_FAR *__RPC_FAR *val);
  65. HRESULT STDMETHODCALLTYPE setFront(
  66. /* [in] */ float v);
  67. HRESULT STDMETHODCALLTYPE setBack(
  68. /* [in] */ float v);
  69. HRESULT STDMETHODCALLTYPE setField(
  70. /* [in] */ float v);
  71. HRESULT STDMETHODCALLTYPE setUniformScaling(
  72. /* [in] */ long flag);
  73. HRESULT STDMETHODCALLTYPE setCamera(
  74. /* [in] */ I_dxj_Direct3dRMFrame3 __RPC_FAR *f);
  75. HRESULT STDMETHODCALLTYPE setProjection(
  76. /* [in] */ d3drmProjectionType val);
  77. HRESULT STDMETHODCALLTYPE transform(
  78. /* [out] */ D3dRMVector4d __RPC_FAR *d,
  79. /* [in] */ D3dVector __RPC_FAR *s);
  80. HRESULT STDMETHODCALLTYPE inverseTransform(
  81. /* [out] */ D3dVector __RPC_FAR *d,
  82. /* [in] */ D3dRMVector4d __RPC_FAR *s);
  83. HRESULT STDMETHODCALLTYPE configure(
  84. /* [in] */ long x,
  85. /* [in] */ long y,
  86. /* [in] */ long width,
  87. /* [in] */ long height);
  88. HRESULT STDMETHODCALLTYPE forceUpdate(
  89. /* [in] */ long x1,
  90. /* [in] */ long y1,
  91. /* [in] */ long x2,
  92. /* [in] */ long y2);
  93. HRESULT STDMETHODCALLTYPE setPlane(
  94. /* [in] */ float left,
  95. /* [in] */ float right,
  96. /* [in] */ float bottom,
  97. /* [in] */ float top);
  98. HRESULT STDMETHODCALLTYPE getPlane(
  99. /* [out][in] */ float __RPC_FAR *l,
  100. /* [out][in] */ float __RPC_FAR *r,
  101. /* [out][in] */ float __RPC_FAR *b,
  102. /* [out][in] */ float __RPC_FAR *t);
  103. HRESULT STDMETHODCALLTYPE pick(
  104. /* [in] */ long x,
  105. /* [in] */ long y,
  106. /* [retval][out] */ I_dxj_Direct3dRMPickArray __RPC_FAR *__RPC_FAR *retv);
  107. HRESULT STDMETHODCALLTYPE getUniformScaling(
  108. /* [retval][out] */ long __RPC_FAR *retv);
  109. HRESULT STDMETHODCALLTYPE getX(
  110. /* [retval][out] */ long __RPC_FAR *retv);
  111. HRESULT STDMETHODCALLTYPE getY(
  112. /* [retval][out] */ long __RPC_FAR *retv);
  113. HRESULT STDMETHODCALLTYPE getHeight(
  114. /* [retval][out] */ long __RPC_FAR *w);
  115. HRESULT STDMETHODCALLTYPE getWidth(
  116. /* [retval][out] */ long __RPC_FAR *w);
  117. HRESULT STDMETHODCALLTYPE getField(
  118. /* [retval][out] */ float __RPC_FAR *retv);
  119. HRESULT STDMETHODCALLTYPE getBack(
  120. /* [retval][out] */ float __RPC_FAR *retv);
  121. HRESULT STDMETHODCALLTYPE getFront(
  122. /* [retval][out] */ float __RPC_FAR *retv);
  123. HRESULT STDMETHODCALLTYPE getProjection(
  124. /* [retval][out] */ d3drmProjectionType __RPC_FAR *retv);
  125. // HRESULT STDMETHODCALLTYPE getDirect3DViewport(
  126. // /* [retval][out] */ I_dxj_Direct3dViewport3 __RPC_FAR *__RPC_FAR *val);
  127. ////////////////////////////////////////////////////////////////////////////////////
  128. //
  129. // note: this is public for the callbacks
  130. private:
  131. DECL_VARIABLE(_dxj_Direct3dRMViewport2);
  132. public:
  133. DX3J_GLOBAL_LINKS( _dxj_Direct3dRMViewport2 )
  134. };