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.

161 lines
5.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: d3drmface2obj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmFace2Obj.h : Declaration of the C_dxj_Direct3dRMFace2Object
  11. #include "resource.h" // main symbols
  12. #include "d3drmObjectObj.h"
  13. #define typedef__dxj_Direct3dRMFace2 LPDIRECT3DRMFACE2
  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_Direct3dRMFace2Object :
  19. public I_dxj_Direct3dRMFace2,
  20. public I_dxj_Direct3dRMObject,
  21. public CComObjectRoot
  22. {
  23. public:
  24. C_dxj_Direct3dRMFace2Object() ;
  25. virtual ~C_dxj_Direct3dRMFace2Object() ;
  26. BEGIN_COM_MAP(C_dxj_Direct3dRMFace2Object)
  27. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMFace2)
  28. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMObject)
  29. END_COM_MAP()
  30. DECLARE_AGGREGATABLE(C_dxj_Direct3dRMFace2Object)
  31. // I_dxj_Direct3dRMFace2
  32. public:
  33. //updated
  34. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalSetObject(
  35. /* [in] */ IUnknown __RPC_FAR *lpdd) ;
  36. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalGetObject(
  37. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *lpdd) ;
  38. HRESULT STDMETHODCALLTYPE addDestroyCallback(
  39. /* [in] */ I_dxj_Direct3dRMCallback __RPC_FAR *fn,
  40. /* [in] */ IUnknown __RPC_FAR *arg) ;
  41. HRESULT STDMETHODCALLTYPE deleteDestroyCallback(
  42. /* [in] */ I_dxj_Direct3dRMCallback __RPC_FAR *fn,
  43. /* [in] */ IUnknown __RPC_FAR *args) ;
  44. HRESULT STDMETHODCALLTYPE clone(
  45. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *retv) ;
  46. HRESULT STDMETHODCALLTYPE setAppData(
  47. /* [in] */ long data) ;
  48. HRESULT STDMETHODCALLTYPE getAppData(
  49. /* [retval][out] */ long __RPC_FAR *data) ;
  50. HRESULT STDMETHODCALLTYPE setName(
  51. /* [in] */ BSTR name) ;
  52. HRESULT STDMETHODCALLTYPE getName(
  53. /* [retval][out] */ BSTR __RPC_FAR *name) ;
  54. HRESULT STDMETHODCALLTYPE getClassName(
  55. /* [retval][out] */ BSTR __RPC_FAR *name) ;
  56. HRESULT STDMETHODCALLTYPE addVertex(
  57. /* [in] */ float x,
  58. /* [in] */ float y,
  59. /* [in] */ float z) ;
  60. HRESULT STDMETHODCALLTYPE addVertexAndNormalIndexed(
  61. /* [in] */ long vertex,
  62. /* [in] */ long normal) ;
  63. HRESULT STDMETHODCALLTYPE setColorRGB(
  64. /* [in] */ float r,
  65. /* [in] */ float g,
  66. /* [in] */ float b) ;
  67. HRESULT STDMETHODCALLTYPE setColor(
  68. /* [in] */ d3dcolor c) ;
  69. HRESULT STDMETHODCALLTYPE setTexture(
  70. /* [in] */ I_dxj_Direct3dRMTexture3 __RPC_FAR *ref) ;
  71. HRESULT STDMETHODCALLTYPE setTextureCoordinates(
  72. /* [in] */ long vertex,
  73. /* [in] */ float u,
  74. /* [in] */ float v) ;
  75. HRESULT STDMETHODCALLTYPE setMaterial(
  76. /* [in] */ I_dxj_Direct3dRMMaterial2 __RPC_FAR *ref) ;
  77. HRESULT STDMETHODCALLTYPE setTextureTopology(
  78. /* [in] */ long wrap_u,
  79. /* [in] */ long wrap_v) ;
  80. HRESULT STDMETHODCALLTYPE getVertex(
  81. /* [in] */ long idx,
  82. /* [out][in] */ D3dVector __RPC_FAR *vert,
  83. /* [out][in] */ D3dVector __RPC_FAR *norm) ;
  84. HRESULT STDMETHODCALLTYPE getVertices(
  85. /* [in] */ long vertex_cnt,
  86. /* [out][in] */ SAFEARRAY __RPC_FAR * __RPC_FAR *coord,
  87. /* [out][in] */ SAFEARRAY __RPC_FAR * __RPC_FAR *normals) ;
  88. HRESULT STDMETHODCALLTYPE getTextureCoordinates(
  89. /* [in] */ long vertex,
  90. /* [out][in] */ float __RPC_FAR *u,
  91. /* [out][in] */ float __RPC_FAR *v) ;
  92. HRESULT STDMETHODCALLTYPE getNormal(
  93. /* [out][in] */ D3dVector __RPC_FAR *val) ;
  94. HRESULT STDMETHODCALLTYPE getTexture(
  95. /* [retval][out] */ I_dxj_Direct3dRMTexture3 __RPC_FAR *__RPC_FAR *ref) ;
  96. HRESULT STDMETHODCALLTYPE getMaterial(
  97. /* [retval][out] */ I_dxj_Direct3dRMMaterial2 __RPC_FAR *__RPC_FAR *retv) ;
  98. HRESULT STDMETHODCALLTYPE getVertexCount(
  99. /* [retval][out] */ int __RPC_FAR *retv) ;
  100. HRESULT STDMETHODCALLTYPE getVertexIndex(
  101. /* [in] */ long which,
  102. /* [retval][out] */ int __RPC_FAR *retv) ;
  103. HRESULT STDMETHODCALLTYPE getTextureCoordinateIndex(
  104. /* [in] */ long which,
  105. /* [retval][out] */ int __RPC_FAR *retv) ;
  106. HRESULT STDMETHODCALLTYPE getColor(
  107. /* [retval][out] */ d3dcolor __RPC_FAR *retv) ;
  108. HRESULT STDMETHODCALLTYPE getVerticesJava(
  109. /* [in] */ long vertex_cnt,
  110. /* [out][in] */ float __RPC_FAR *coord,
  111. /* [out][in] */ float __RPC_FAR *normals) ;
  112. HRESULT STDMETHODCALLTYPE getTextureTopology(long *u, long *v);
  113. private:
  114. DECL_VARIABLE(_dxj_Direct3dRMFace2);
  115. public:
  116. DX3J_GLOBAL_LINKS( _dxj_Direct3dRMFace2 )
  117. };