home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / effect.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  1KB  |  35 lines

  1.  
  2. #ifndef __EFFECT_H__
  3. #define __EFFECT_H__
  4.  
  5. // Forward declares...
  6. struct IDirectDrawSurface;
  7.  
  8. //{1F9DDD20-4146-11d0-BDC2-00A0C908DB96}
  9. DEFINE_GUID(CATID_BitmapEffect, 
  10. 0x1f9ddd20, 0x4146, 0x11d0, 0xbd, 0xc2, 0x0, 0xa0, 0xc9, 0x8, 0xdb, 0x96);
  11.  
  12. #define CATSZ_BitmapEffectDescription __T("Bitmap Effect")
  13.  
  14. // {ACEA25C0-415B-11d0-BDC2-00A0C908DB96}
  15. DEFINE_GUID(IID_IBitmapEffect, 
  16. 0xacea25c0, 0x415b, 0x11d0, 0xbd, 0xc2, 0x0, 0xa0, 0xc9, 0x8, 0xdb, 0x96);
  17.  
  18. #define BITMAP_EFFECT_INPLACE                           0x00000001
  19. #define BITMAP_EFFECT_REALTIME                          0x00000002
  20. #define BITMAP_EFFECT_DIRECTDRAW                        0x00000004
  21. #define BITMAP_EFFECT_SUPPORTS_INVALIDATE       0x00000008
  22.  
  23. DECLARE_INTERFACE_(IBitmapEffect, IUnknown)
  24. {
  25.         STDMETHOD(SetSite)(LPUNKNOWN pUnk) PURE;
  26.         STDMETHOD(GetMiscStatusBits)(DWORD* pdwFlags) PURE;
  27.     STDMETHOD(GetSupportedFormatsCount)(unsigned *pcFormats) PURE;
  28.     STDMETHOD(GetSupportedFormats)(unsigned cFormats, DWORD *pdwColorDepths)  PURE;
  29.     STDMETHOD(Begin)(DWORD dwColorDepth, SIZE* psizeEffect) PURE;
  30.     STDMETHOD(End)(void) PURE;
  31.         STDMETHOD(DoEffect)(IDirectDrawSurface* pbsIn, IDirectDrawSurface* pbsOut, RECT *prcFull, RECT* prcInvalid) PURE;
  32. };
  33.  
  34. #endif //__EFFECT_H__
  35.