ddutils.h

来自「网页游戏赤壁」· C头文件 代码 · 共 32 行

H
32
字号
/*==========================================================================
 *
 *  Copyright (C) 1995 Microsoft Corporation. All Rights Reserved.
 *
 *  File:       ddutil2.h
 *  Content:    Routines for loading bitmap and palettes from resources
 *  Notes:		This version of DD utilities is for DirectDraw 2.0 or higher
 *
 ***************************************************************************/

#ifdef __cplusplus
extern "C" {            /* Assume C declarations for C++ */
#endif  /* __cplusplus */

extern IDirectDrawPalette * DDLoadPalette(IDirectDraw2 *pdd, LPCSTR szBitmap);
extern IDirectDrawSurface2 * DDLoadBitmap(IDirectDraw2 *pdd, LPCSTR szBitmap, int dx, int dy, BOOL bInVideo);
extern HRESULT              DDReLoadBitmap(IDirectDrawSurface2 *pdds, LPCSTR szBitmap);
extern HRESULT              DDCopyBitmap(IDirectDrawSurface2 *pdds, HBITMAP hbm, int x, int y, int dx, int dy);
extern DWORD                DDColorMatch(IDirectDrawSurface2 *pdds, COLORREF rgb);
extern HRESULT              DDSetColorKey(IDirectDrawSurface2 *pdds, COLORREF rgb);

// added by Tian Yue
// read palette by customed palette file
// load palette from .pal file
extern void  TY_LoadPaletteFromPAL(const char * szBitmap,PALETTEENTRY * pal,int num);
// load palette from .bmp file
extern void TY_LoadPaletteFromBMP(LPCTSTR szBitmap,PALETTEENTRY *pal,int num);

#ifdef __cplusplus
}
#endif  /* __cplusplus */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?