Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.4 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (c) 1995 - 1997 Microsoft Corporation. All Rights Reserved.
  4. * Copyright (C) 1994-1995 ATI Technologies Inc. All Rights Reserved.
  5. *
  6. * File: gfx.h
  7. * Content: graphics routines include file
  8. *
  9. ***************************************************************************/
  10. #ifndef __GFX_INCLUDED__
  11. #define __GFX_INCLUDED__
  12. #define GFX_FALSE ((GFX_HBM)0)
  13. #define GFX_TRUE ((GFX_HBM)1)
  14. typedef struct _GFX_BITMAP
  15. {
  16. struct _GFX_BITMAP *link; // linked in a chain for restore.
  17. DWORD dwColor; // solid fill color
  18. BOOL bTrans; // transparent?
  19. LPDIRECTDRAWSURFACE lpSurface; // the DirectDrawSurface.
  20. LPBITMAPINFOHEADER lpbi; // the DIB to restore from.
  21. } GFX_BITMAP;
  22. typedef VOID *GFX_HBM;
  23. //
  24. // Prototypes
  25. //
  26. GFX_HBM gfxLoadBitmap(LPSTR);
  27. GFX_HBM gfxCreateVramBitmap(BITMAPINFOHEADER UNALIGNED * ,BOOL);
  28. GFX_HBM gfxCreateSolidColorBitmap(COLORREF rgb);
  29. BOOL gfxDestroyBitmap(GFX_HBM);
  30. BOOL gfxSwapBuffers(void);
  31. GFX_HBM gfxBegin(VOID);
  32. BOOL gfxEnd(GFX_HBM);
  33. void gfxFillBack( DWORD dwColor );
  34. ///BOOL gfxUpdate(GFX_HBM bm, IDirectDrawStreamSample *pSource);
  35. BOOL gfxBlt(RECT *dst, GFX_HBM bm, POINT *src);
  36. BOOL gfxRestore(GFX_HBM bm);
  37. BOOL gfxRestoreAll(void);
  38. #endif