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.

222 lines
8.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: d3drmmeshobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmMeshObj.h : Declaration of the C_dxj_Direct3dRMMeshObject
  11. #include "resource.h" // main symbols
  12. #include "d3drmObjectObj.h"
  13. #define typedef__dxj_Direct3dRMMesh LPDIRECT3DRMMESH
  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_Direct3dRMMeshObject :
  19. public I_dxj_Direct3dRMMesh,
  20. public I_dxj_Direct3dRMObject,
  21. public I_dxj_Direct3dRMVisual,
  22. //public CComCoClass<C_dxj_Direct3dRMMeshObject, &CLSID__dxj_Direct3dRMMesh>,
  23. public CComObjectRoot
  24. {
  25. public:
  26. C_dxj_Direct3dRMMeshObject() ;
  27. virtual ~C_dxj_Direct3dRMMeshObject() ;
  28. BEGIN_COM_MAP(C_dxj_Direct3dRMMeshObject)
  29. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMMesh)
  30. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMObject)
  31. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMVisual)
  32. END_COM_MAP()
  33. // DECLARE_REGISTRY(CLSID__dxj_Direct3dRMMesh, "DIRECT.Direct3dRMMesh.3", "DIRECT.Direct3dRMMesh.3", IDS_D3DRMMESH_DESC, THREADFLAGS_BOTH)
  34. DECLARE_AGGREGATABLE(C_dxj_Direct3dRMMeshObject)
  35. // I_dxj_Direct3dRMMesh
  36. public:
  37. // updated
  38. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalSetObject(
  39. /* [in] */ IUnknown __RPC_FAR *lpdd);
  40. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalGetObject(
  41. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *lpdd);
  42. HRESULT STDMETHODCALLTYPE addDestroyCallback(
  43. /* [in] */ I_dxj_Direct3dRMCallback __RPC_FAR *fn,
  44. /* [in] */ IUnknown __RPC_FAR *arg);
  45. HRESULT STDMETHODCALLTYPE deleteDestroyCallback(
  46. /* [in] */ I_dxj_Direct3dRMCallback __RPC_FAR *fn,
  47. /* [in] */ IUnknown __RPC_FAR *args);
  48. HRESULT STDMETHODCALLTYPE clone(
  49. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *retv);
  50. HRESULT STDMETHODCALLTYPE setAppData(
  51. /* [in] */ long data);
  52. HRESULT STDMETHODCALLTYPE getAppData(
  53. /* [retval][out] */ long __RPC_FAR *data);
  54. HRESULT STDMETHODCALLTYPE setName(
  55. /* [in] */ BSTR name);
  56. HRESULT STDMETHODCALLTYPE getName(
  57. /* [retval][out] */ BSTR __RPC_FAR *name);
  58. HRESULT STDMETHODCALLTYPE getClassName(
  59. /* [retval][out] */ BSTR __RPC_FAR *name);
  60. HRESULT STDMETHODCALLTYPE setGroupColor(
  61. /* [in] */ d3drmGroupIndex id,
  62. /* [in] */ d3dcolor val);
  63. HRESULT STDMETHODCALLTYPE setGroupColorRGB(
  64. /* [in] */ d3drmGroupIndex id,
  65. /* [in] */ float r,
  66. /* [in] */ float g,
  67. /* [in] */ float b);
  68. HRESULT STDMETHODCALLTYPE setGroupMapping(
  69. /* [in] */ d3drmGroupIndex id,
  70. /* [in] */ d3drmMappingFlags value);
  71. HRESULT STDMETHODCALLTYPE setGroupQuality(
  72. /* [in] */ d3drmGroupIndex id,
  73. /* [in] */ d3drmRenderQuality value);
  74. HRESULT STDMETHODCALLTYPE setGroupMaterial(
  75. /* [in] */ d3drmGroupIndex id,
  76. /* [in] */ I_dxj_Direct3dRMMaterial2 __RPC_FAR *val);
  77. HRESULT STDMETHODCALLTYPE setGroupTexture(
  78. /* [in] */ d3drmGroupIndex id,
  79. /* [in] */ I_dxj_Direct3dRMTexture3 __RPC_FAR *val);
  80. HRESULT STDMETHODCALLTYPE getGroupCount(
  81. /* [retval][out] */ long __RPC_FAR *retv);
  82. HRESULT STDMETHODCALLTYPE getGroupColor(
  83. /* [in] */ d3drmGroupIndex id,
  84. /* [retval][out] */ d3dcolor __RPC_FAR *retv);
  85. HRESULT STDMETHODCALLTYPE getGroupMapping(
  86. /* [in] */ d3drmGroupIndex id,
  87. /* [retval][out] */ d3drmMappingFlags __RPC_FAR *retv);
  88. HRESULT STDMETHODCALLTYPE getGroupQuality(
  89. /* [in] */ d3drmGroupIndex id,
  90. /* [retval][out] */ d3drmRenderQuality __RPC_FAR *retv);
  91. HRESULT STDMETHODCALLTYPE getGroupMaterial(
  92. /* [in] */ d3drmGroupIndex id,
  93. /* [retval][out] */ I_dxj_Direct3dRMMaterial2 __RPC_FAR *__RPC_FAR *retv);
  94. HRESULT STDMETHODCALLTYPE getGroupTexture(
  95. /* [in] */ d3drmGroupIndex id,
  96. /* [retval][out] */ I_dxj_Direct3dRMTexture3 __RPC_FAR *__RPC_FAR *retv);
  97. HRESULT STDMETHODCALLTYPE scaleMesh(
  98. /* [in] */ float sx,
  99. /* [in] */ float sy,
  100. /* [in] */ float sz);
  101. HRESULT STDMETHODCALLTYPE translate(
  102. /* [in] */ float tx,
  103. /* [in] */ float ty,
  104. /* [in] */ float tz);
  105. HRESULT STDMETHODCALLTYPE getBox(
  106. /* [in] */ D3dRMBox __RPC_FAR *vector);
  107. HRESULT STDMETHODCALLTYPE getSizes(
  108. /* [in] */ d3drmGroupIndex id,
  109. /* [out] */ long __RPC_FAR *cnt1,
  110. /* [out] */ long __RPC_FAR *cnt2,
  111. /* [out] */ long __RPC_FAR *cnt3,
  112. /* [out] */ long __RPC_FAR *cnt4);
  113. HRESULT STDMETHODCALLTYPE setVertex(
  114. /* [in] */ d3drmGroupIndex id,
  115. /* [in] */ long idx,
  116. /* [in] */ D3dRMVertex __RPC_FAR *values);
  117. HRESULT STDMETHODCALLTYPE getVertex(
  118. /* [in] */ d3drmGroupIndex id,
  119. /* [in] */ long idx,
  120. /* [out][in] */ D3dRMVertex __RPC_FAR *ret);
  121. HRESULT STDMETHODCALLTYPE getVertexCount(
  122. /* [in] */ d3drmGroupIndex id,
  123. /* [retval][out] */ long __RPC_FAR *cnt);
  124. HRESULT STDMETHODCALLTYPE addGroup(
  125. /* [in] */ long vcnt,
  126. /* [in] */ long fcnt,
  127. /* [in] */ long vPerFace,
  128. /* [in] */ SAFEARRAY __RPC_FAR * __RPC_FAR *fdata,
  129. /* [retval][out] */ d3drmGroupIndex __RPC_FAR *retId);
  130. HRESULT STDMETHODCALLTYPE getGroupData(
  131. /* [in] */ d3drmGroupIndex id,
  132. /* [out][in] */ SAFEARRAY __RPC_FAR * __RPC_FAR *psa);
  133. HRESULT STDMETHODCALLTYPE getGroupDataSize(
  134. /* [in] */ d3drmGroupIndex id,
  135. /* [retval][out] */ long __RPC_FAR *retVal);
  136. HRESULT STDMETHODCALLTYPE setVertices(
  137. /* [in] */ d3drmGroupIndex id,
  138. /* [in] */ long idx,
  139. /* [in] */ long cnt,
  140. /* [in] */ SAFEARRAY __RPC_FAR * __RPC_FAR *vertexArray);
  141. HRESULT STDMETHODCALLTYPE getVertices(
  142. /* [in] */ d3drmGroupIndex id,
  143. /* [in] */ long idx,
  144. long cnt,
  145. /* [out][in] */ SAFEARRAY __RPC_FAR * __RPC_FAR *vertexArray);
  146. /* [hidden] */ HRESULT STDMETHODCALLTYPE addGroupJava(
  147. /* [in] */ long vcnt,
  148. /* [in] */ long fcnt,
  149. /* [in] */ long vPerFace,
  150. /* [in,out] */ long *fdata,
  151. /* [retval][out] */ d3drmGroupIndex __RPC_FAR *retId);
  152. /* [hidden] */ HRESULT STDMETHODCALLTYPE getGroupDataJava(
  153. /* [in] */ d3drmGroupIndex id,
  154. /* [in] */ long size,
  155. /* [out][in] */ long *fdata);
  156. /* [hidden] */ HRESULT STDMETHODCALLTYPE setVerticesJava(
  157. /* [in] */ d3drmGroupIndex id,
  158. /* [in] */ long idx,
  159. /* [in] */ long cnt,
  160. /* [in,out] */ float __RPC_FAR *vertexArray);
  161. /* [hidden] */ HRESULT STDMETHODCALLTYPE getVerticesJava(
  162. /* [in] */ d3drmGroupIndex id,
  163. /* [in] */ long idx,
  164. long cnt,
  165. /* [out][in] */ float __RPC_FAR *vertexArray);
  166. ////////////////////////////////////////////////////////////////////////////////////
  167. //
  168. private:
  169. DECL_VARIABLE(_dxj_Direct3dRMMesh);
  170. public:
  171. DX3J_GLOBAL_LINKS( _dxj_Direct3dRMMesh )
  172. };