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.

167 lines
5.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: d3drmtexture3obj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmTextureObj.h : Declaration of the C_dxj_Direct3dRMTextureObject
  11. #ifndef _D3DRMTexture3_H_
  12. #define _D3DRMTexture3_H_
  13. #include "resource.h" // main symbols
  14. #include "d3drmObjectObj.h"
  15. #define typedef__dxj_Direct3dRMTexture3 LPDIRECT3DRMTEXTURE3
  16. /////////////////////////////////////////////////////////////////////////////
  17. // Direct
  18. //REVIEW -- using pointers to ID's is necessary because some compilers don't like
  19. //references as template arguments.
  20. class C_dxj_Direct3dRMTexture3Object :
  21. public I_dxj_Direct3dRMTexture3,
  22. public I_dxj_Direct3dRMObject,
  23. public I_dxj_Direct3dRMVisual,
  24. //public CComCoClass<C_dxj_Direct3dRMTexture3Object, &CLSID__dxj_Direct3dRMTexture3>,
  25. public CComObjectRoot
  26. {
  27. public:
  28. C_dxj_Direct3dRMTexture3Object() ;
  29. virtual ~C_dxj_Direct3dRMTexture3Object() ;
  30. BEGIN_COM_MAP(C_dxj_Direct3dRMTexture3Object)
  31. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMTexture3)
  32. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMObject)
  33. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMVisual)
  34. END_COM_MAP()
  35. //DECLARE_REGISTRY(CLSID__dxj_Direct3dRMTexture3, "DIRECT.Direct3dRMTexture.3", "DIRECT.Direct3dRMTexture3.5", IDS_D3DRMTEXTURE_DESC, THREADFLAGS_BOTH)
  36. DECLARE_AGGREGATABLE(C_dxj_Direct3dRMTexture3Object)
  37. // I_dxj_Direct3dRMTexture
  38. public:
  39. HRESULT STDMETHODCALLTYPE InternalSetObject(
  40. /* [in] */ IUnknown __RPC_FAR *lpdd);
  41. HRESULT STDMETHODCALLTYPE InternalGetObject(
  42. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *lpdd);
  43. HRESULT STDMETHODCALLTYPE addDestroyCallback(
  44. /* [in] */ I_dxj_Direct3dRMCallback __RPC_FAR *fn,
  45. /* [in] */ IUnknown __RPC_FAR *arg);
  46. HRESULT STDMETHODCALLTYPE deleteDestroyCallback(
  47. /* [in] */ I_dxj_Direct3dRMCallback __RPC_FAR *fn,
  48. /* [in] */ IUnknown __RPC_FAR *args);
  49. HRESULT STDMETHODCALLTYPE clone(
  50. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *retv);
  51. HRESULT STDMETHODCALLTYPE setAppData(
  52. /* [in] */ long data);
  53. HRESULT STDMETHODCALLTYPE getAppData(
  54. /* [retval][out] */ long __RPC_FAR *retv);
  55. HRESULT STDMETHODCALLTYPE setName(
  56. /* [in] */ BSTR name);
  57. HRESULT STDMETHODCALLTYPE getName(
  58. /* [retval][out] */ BSTR __RPC_FAR *name);
  59. HRESULT STDMETHODCALLTYPE getClassName(
  60. /* [retval][out] */ BSTR __RPC_FAR *name);
  61. HRESULT STDMETHODCALLTYPE changed(
  62. /* [in] */ long flags,
  63. /* [in] */ long nRects,
  64. /* [in] */ SAFEARRAY __RPC_FAR * __RPC_FAR *rects);
  65. HRESULT STDMETHODCALLTYPE generateMIPMap();
  66. HRESULT STDMETHODCALLTYPE getCacheFlags(
  67. /* [retval][out] */ long __RPC_FAR *ret);
  68. HRESULT STDMETHODCALLTYPE getCacheImportance(
  69. /* [retval][out] */ long __RPC_FAR *ret);
  70. HRESULT STDMETHODCALLTYPE getColors(
  71. /* [retval][out] */ long __RPC_FAR *c);
  72. HRESULT STDMETHODCALLTYPE getDecalOrigin(
  73. /* [out] */ long __RPC_FAR *x,
  74. /* [out] */ long __RPC_FAR *y);
  75. HRESULT STDMETHODCALLTYPE getDecalScale(
  76. /* [retval][out] */ long __RPC_FAR *s);
  77. HRESULT STDMETHODCALLTYPE getDecalSize(
  78. /* [out] */ float __RPC_FAR *w,
  79. /* [out] */ float __RPC_FAR *h);
  80. HRESULT STDMETHODCALLTYPE getDecalTransparency(
  81. /* [retval][out] */ long __RPC_FAR *t);
  82. HRESULT STDMETHODCALLTYPE getDecalTransparentColor(
  83. /* [retval][out] */ d3dcolor __RPC_FAR *tc);
  84. HRESULT STDMETHODCALLTYPE getShades(
  85. /* [retval][out] */ long __RPC_FAR *shades);
  86. HRESULT STDMETHODCALLTYPE getSurface(
  87. /* [in] */ long flags,
  88. /* [retval][out] */ I_dxj_DirectDrawSurface4 __RPC_FAR *__RPC_FAR *surface);
  89. HRESULT STDMETHODCALLTYPE setCacheOptions(long importance, long flags);
  90. HRESULT STDMETHODCALLTYPE setColors(
  91. /* [in] */ long c);
  92. HRESULT STDMETHODCALLTYPE setDecalOrigin(
  93. /* [in] */ long x,
  94. /* [in] */ long y);
  95. HRESULT STDMETHODCALLTYPE setDecalScale(
  96. /* [in] */ long s);
  97. HRESULT STDMETHODCALLTYPE setDecalSize(
  98. /* [in] */ float width,
  99. /* [in] */ float height);
  100. HRESULT STDMETHODCALLTYPE setDecalTransparency(
  101. /* [in] */ long trans);
  102. HRESULT STDMETHODCALLTYPE setDecalTransparentColor(
  103. /* [in] */ d3dcolor tcolor);
  104. HRESULT STDMETHODCALLTYPE setShades(
  105. /* [in] */ long s);
  106. ////////////////////////////////////////////////////////////////////////////////////
  107. //
  108. private:
  109. DECL_VARIABLE(_dxj_Direct3dRMTexture3);
  110. public:
  111. //mod:dp additions for D3dRMImage
  112. byte *m_buffer1;
  113. byte *m_buffer2;
  114. byte *m_pallette;
  115. int m_buffer1size;
  116. int m_buffer2size;
  117. int m_palettesize;
  118. public:
  119. DX3J_GLOBAL_LINKS( _dxj_Direct3dRMTexture3 )
  120. };
  121. #endif