2024-08-06 14:26:25 -05:00
|
|
|
/*==========================================================================
|
|
|
|
*
|
|
|
|
* Copyright (C) 1995 Microsoft Corporation. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* File: ddutil.cpp
|
|
|
|
* Content: Routines for loading bitmap and palettes from resources
|
|
|
|
*
|
|
|
|
***************************************************************************/
|
2024-05-17 11:47:48 -04:00
|
|
|
|
2024-08-06 14:26:25 -05:00
|
|
|
#pragma once
|
2024-05-17 11:47:48 -04:00
|
|
|
|
2024-08-06 14:26:25 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" { /* Assume C declarations for C++ */
|
|
|
|
#endif /* __cplusplus */
|
2024-05-17 11:47:48 -04:00
|
|
|
|
2024-08-06 14:26:25 -05:00
|
|
|
extern void DDSetDebug(BOOL bDebug);
|
|
|
|
extern IDirectDrawSurface * DDConnectBitmap(IDirectDraw *pdd, HBITMAP hbm);
|
|
|
|
extern IDirectDrawPalette * DDLoadPalette(IDirectDraw *pdd, LPCSTR szBitmap);
|
|
|
|
extern IDirectDrawSurface * DDLoadBitmap(IDirectDraw *pdd, LPCSTR szBitmap, int dx, int dy);
|
|
|
|
extern HRESULT DDReLoadBitmap(IDirectDrawSurface *pdds, LPCSTR szBitmap);
|
|
|
|
extern HRESULT DDCopyBitmap(IDirectDrawSurface *pdds, HBITMAP hbm, int x, int y, int dx, int dy);
|
|
|
|
extern DWORD DDColorMatch(IDirectDrawSurface *pdds, COLORREF rgb);
|
|
|
|
extern HRESULT DDSetColorKey(IDirectDrawSurface *pdds, COLORREF rgb);
|
|
|
|
extern HRESULT DDSetColorKey2(IDirectDrawSurface *pdds, COLORREF rgb1, COLORREF rgb2);
|
2024-05-17 11:47:48 -04:00
|
|
|
|
2024-08-01 11:48:02 -04:00
|
|
|
/*
|
2024-05-17 11:47:48 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|