home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / directx / duel / ddutil.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-15  |  1.0 KB  |  26 lines

  1. /*==========================================================================
  2.  *
  3.  *  Copyright (C) 1995 Microsoft Corporation. All Rights Reserved.
  4.  *
  5.  *  File:       ddutil.cpp
  6.  *  Content:    Routines for loading bitmap and palettes from resources
  7.  *
  8.  ***************************************************************************/
  9.  
  10. #include <tchar.h>
  11.  
  12. #ifdef __cplusplus
  13. extern "C" {            /* Assume C declarations for C++ */
  14. #endif    /* __cplusplus */
  15.  
  16. extern IDirectDrawPalette * DDLoadPalette(IDirectDraw *pdd, LPCTSTR szBitmap);
  17. extern IDirectDrawSurface * DDLoadBitmap(IDirectDraw *pdd, LPCTSTR szBitmap, int dx, int dy);
  18. extern HRESULT              DDReLoadBitmap(IDirectDrawSurface *pdds, LPCTSTR szBitmap);
  19. extern HRESULT              DDCopyBitmap(IDirectDrawSurface *pdds, HBITMAP hbm, int x, int y, int dx, int dy);
  20. extern DWORD                DDColorMatch(IDirectDrawSurface *pdds, COLORREF rgb);
  21. extern HRESULT              DDSetColorKey(IDirectDrawSurface *pdds, COLORREF rgb);
  22.  
  23. #ifdef __cplusplus
  24. }
  25. #endif    /* __cplusplus */
  26.