00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "basetype.h"
00023
00024 extern void GetDDrawPixelFormat(DRV_Window *cwnd);
00025 extern LPDIRECTDRAWSURFACE4 DDrawLoadSurface(U32 dwWidth, U32 dwHeight, const void *pixels, const char *pal);
00026 extern geBoolean LockDDrawBackBuffer(DRV_Window *cwnd, RECT *wrect);
00027 extern geBoolean UnlockDDrawBackBuffer(DRV_Window *cwnd, RECT *wrect);
00028 extern geBoolean RefreshDDraw(DRV_Window *cwnd, VidModeList *cmode, RECT *src, RECT *dst);
00029 extern void ClearBackBuffer(DRV_Window *cwnd);
00030 extern geBoolean DDrawBlitDecal(LPDIRECTDRAWSURFACE4 lpDDSDecal, RECT *SRect, S32 x, S32 y);
00031 extern geBoolean DDrawBlitDecalDelayed(LPDIRECTDRAWSURFACE4 lpDDSDecal, RECT *SRect, S32 x, S32 y);
00032 extern geBoolean DDrawBlitDecalToFront(LPDIRECTDRAWSURFACE4 lpDDSDecal, RECT *SRect, S32 x, S32 y);
00033 extern geBoolean DRIVERCC DrvSetActive(geBoolean wParam);
00034 extern void SetDDrawWindow(HWND hwnd);
00035 extern geBoolean SetDDrawMode(U32 top, VidEnumInfo *vinfo);
00036 extern geBoolean DoDDrawInit(HWND hwnd, VidEnumInfo *vinfo);
00037 extern geBoolean DoModeEnumeration(VidEnumInfo *vinfo);
00038 extern geBoolean DoEnumeration(VidEnumInfo *vinfo);
00039 extern void GetDDrawPixelFormat(DRV_Window *cwnd);
00040 extern void FreeDDraw(VidEnumInfo *vinfo);
00041
00042 extern geBoolean bWindowed, bActive, bBackLocked;