Leaked source code of windows server 2003
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.

53 lines
1.3 KiB

  1. /******************************Header*File*********************************\
  2. *
  3. * glsup.h
  4. *
  5. * Header file for GL metafiling and printing support
  6. *
  7. * History:
  8. * Wed Mar 15 15:20:49 1995 -by- Drew Bliss [drewb]
  9. * Created
  10. * Copyright (c) 1995-1999 Microsoft Corporation
  11. *
  12. \**************************************************************************/
  13. #ifndef __GLSUP_H__
  14. #define __GLSUP_H__
  15. // Critical section for GL support
  16. extern RTL_CRITICAL_SECTION semGlLoad;
  17. BOOL LoadOpenGL(void);
  18. void UnloadOpenGL(void);
  19. // Track the current banded rendering session
  20. typedef struct
  21. {
  22. HDC hdcDest;
  23. HDC hdcDib;
  24. HBITMAP hbmDib;
  25. HGLRC hrc;
  26. int iBandWidth;
  27. int iBandHeight;
  28. int iReducedBandWidth;
  29. int iReducedBandHeight;
  30. int xSource;
  31. int ySource;
  32. int iSourceWidth;
  33. int iSourceHeight;
  34. int iReduceFactor;
  35. int iReducedWidth;
  36. int iReducedHeight;
  37. int iStretchMode;
  38. POINT ptBrushOrg;
  39. BOOL bBrushOrgSet;
  40. } GLPRINTSTATE;
  41. BOOL InitGlPrinting(HENHMETAFILE hemf, HDC hdcDest, RECT *rc,
  42. DEVMODEW *pdm, GLPRINTSTATE *pgps);
  43. void EndGlPrinting(GLPRINTSTATE *pgps);
  44. BOOL PrintMfWithGl(HENHMETAFILE hemf, GLPRINTSTATE *pgps,
  45. POINTL *pptlBand, SIZE *pszBand);
  46. BOOL IsMetafileWithGl(HENHMETAFILE hemf);
  47. #endif