Source code of Windows XP (NT5)
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.

41 lines
1007 B

  1. #ifndef __ID3DSURF_H__
  2. #define __ID3DSURF_H__
  3. class IDirect3DSurface8Clone : public IUnknown
  4. {
  5. public:
  6. //IUnknown
  7. STDMETHOD (QueryInterface) (REFIID iid, LPVOID *ppv) PURE;
  8. STDMETHOD_(ULONG, AddRef) () PURE;
  9. STDMETHOD_(ULONG, Release) () PURE;
  10. // Surface
  11. STDMETHOD (SetPrivateData) (REFGUID riid,
  12. CONST VOID *pvData,
  13. DWORD cbData,
  14. DWORD dwFlags) PURE;
  15. STDMETHOD (GetPrivateData) (REFGUID riid,
  16. VOID *pvData,
  17. DWORD *pcbData) PURE;
  18. STDMETHOD (FreePrivateData) (REFGUID riid) PURE;
  19. STDMETHOD (GetContainer) (REFIID riid,
  20. void **ppContainer) PURE;
  21. STDMETHOD (GetDevice) (IDirect3DDevice8 **ppDevice) PURE;
  22. STDMETHOD_(D3DSURFACE_DESC, GetDesc)() PURE;
  23. STDMETHOD (LockRect)(D3DLOCKED_RECT *pLockedRectData,
  24. CONST RECT *pRect,
  25. DWORD dwFlags) PURE;
  26. STDMETHOD (UnlockRect)() PURE;
  27. };
  28. IDirect3DSurface8 *GetCloneSurface(int iWidth, int iHeight);
  29. #endif