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.

105 lines
3.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: d3drmtextureinterobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmViewport2Obj.h : Declaration of the C_dxj_Direct3dRMTextureInterpolatorObject
  11. #include "resource.h" // main symbols
  12. //#include "d3drmObjectObj.h"
  13. #define typedef__dxj_Direct3dRMTextureInterpolator LPDIRECT3DRMINTERPOLATOR
  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_Direct3dRMTextureInterpolatorObject :
  19. public I_dxj_Direct3dRMTextureInterpolator,
  20. public I_dxj_Direct3dRMInterpolator,
  21. //public I_dxj_Direct3dRMObject,
  22. public CComObjectRoot
  23. {
  24. public:
  25. C_dxj_Direct3dRMTextureInterpolatorObject() ;
  26. virtual ~C_dxj_Direct3dRMTextureInterpolatorObject() ;
  27. DWORD InternalAddRef();
  28. DWORD InternalRelease();
  29. BEGIN_COM_MAP(C_dxj_Direct3dRMTextureInterpolatorObject)
  30. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMTextureInterpolator)
  31. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMInterpolator)
  32. //COM_INTERFACE_ENTRY(I_dxj_Direct3dRMObject)
  33. END_COM_MAP()
  34. DECLARE_AGGREGATABLE(C_dxj_Direct3dRMTextureInterpolatorObject)
  35. // I_dxj_Direct3dRMViewport2
  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 attachObject(
  42. /* [in] */ I_dxj_Direct3dRMObject __RPC_FAR *rmObject);
  43. HRESULT STDMETHODCALLTYPE detachObject(
  44. /* [in] */ I_dxj_Direct3dRMObject __RPC_FAR *rmObject);
  45. HRESULT STDMETHODCALLTYPE getAttachedObjects(
  46. /* [retval][out] */ I_dxj_Direct3dRMObjectArray __RPC_FAR *__RPC_FAR *rmArray);
  47. HRESULT STDMETHODCALLTYPE setIndex(
  48. /* [in] */ float val);
  49. HRESULT STDMETHODCALLTYPE getIndex(
  50. /* [retval][out] */ float __RPC_FAR *val);
  51. HRESULT STDMETHODCALLTYPE interpolate(
  52. /* [in] */ float val,
  53. /* [in] */ I_dxj_Direct3dRMObject __RPC_FAR *rmobject,
  54. /* [in] */ long options);
  55. HRESULT STDMETHODCALLTYPE setDecalOrigin(
  56. /* [in] */ long x,
  57. /* [in] */ long y);
  58. HRESULT STDMETHODCALLTYPE setDecalSize(
  59. /* [in] */ float width,
  60. /* [in] */ float height);
  61. HRESULT STDMETHODCALLTYPE setDecalTransparentColor(
  62. /* [in] */ d3dcolor tcolor);
  63. ////////////////////////////////////////////////////////////////////////////////////
  64. //
  65. // note: this is public for the callbacks
  66. private:
  67. DECL_VARIABLE(_dxj_Direct3dRMTextureInterpolator);
  68. LPDIRECT3DRMTEXTURE3 m__dxj_Direct3dRMTexture3;
  69. public:
  70. DX3J_GLOBAL_LINKS( _dxj_Direct3dRMTextureInterpolator )
  71. };