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.

108 lines
3.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: d3drmviewportinterobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmViewport2Obj.h : Declaration of the C_dxj_Direct3dRMViewportInterpolatorObject
  11. #include "resource.h" // main symbols
  12. //#include "d3drmObjectObj.h"
  13. #define typedef__dxj_Direct3dRMViewportInterpolator 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_Direct3dRMViewportInterpolatorObject :
  19. public I_dxj_Direct3dRMViewportInterpolator,
  20. public I_dxj_Direct3dRMInterpolator,
  21. //public I_dxj_Direct3dRMObject,
  22. public CComObjectRoot
  23. {
  24. public:
  25. C_dxj_Direct3dRMViewportInterpolatorObject() ;
  26. virtual ~C_dxj_Direct3dRMViewportInterpolatorObject() ;
  27. DWORD InternalAddRef();
  28. DWORD InternalRelease();
  29. BEGIN_COM_MAP(C_dxj_Direct3dRMViewportInterpolatorObject)
  30. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMViewportInterpolator)
  31. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMInterpolator)
  32. //COM_INTERFACE_ENTRY(I_dxj_Direct3dRMObject)
  33. END_COM_MAP()
  34. DECLARE_AGGREGATABLE(C_dxj_Direct3dRMViewportInterpolatorObject)
  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 setFront(
  56. /* [in] */ float val);
  57. HRESULT STDMETHODCALLTYPE setBack(
  58. /* [in] */ float val);
  59. HRESULT STDMETHODCALLTYPE setField(
  60. /* [in] */ float val);
  61. HRESULT STDMETHODCALLTYPE setPlane(
  62. /* [in] */ float left,
  63. /* [in] */ float right,
  64. /* [in] */ float bottom,
  65. /* [in] */ float top);
  66. ////////////////////////////////////////////////////////////////////////////////////
  67. //
  68. // note: this is public for the callbacks
  69. private:
  70. DECL_VARIABLE(_dxj_Direct3dRMViewportInterpolator);
  71. LPDIRECT3DRMVIEWPORT2 m__dxj_Direct3dRMViewport2;
  72. public:
  73. DX3J_GLOBAL_LINKS( _dxj_Direct3dRMViewportInterpolator )
  74. };