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.

85 lines
2.9 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: srvp.h
  3. *
  4. * System routines shared through the back end
  5. *
  6. * Created: 28-Jun-1995 17:36:00
  7. * Author: Drew Bliss [drewb]
  8. *
  9. * Copyright (c) 1995 Microsoft Corporation
  10. *
  11. \**************************************************************************/
  12. #ifndef _srvp_
  13. #define _srvp_
  14. typedef struct _XLIST *PXLIST;
  15. typedef struct _XLIST {
  16. PXLIST pnext;
  17. int s, e;
  18. } XLIST;
  19. typedef struct _YLIST *PYLIST;
  20. typedef struct _YLIST {
  21. PYLIST pnext;
  22. PXLIST pxlist;
  23. int s, e;
  24. } YLIST;
  25. typedef struct _RECTLIST *PRECTLIST;
  26. typedef struct _RECTLIST {
  27. PYLIST pylist;
  28. PVOID buffers;
  29. } RECTLIST;
  30. BOOL APIENTRY wglPixelVisible(LONG, LONG);
  31. ULONG APIENTRY wglSpanVisible(LONG, LONG, ULONG, LONG *, LONG **);
  32. VOID APIENTRY wglCopyBits(__GLGENcontext *, GLGENwindow *, HBITMAP, LONG, LONG, ULONG, BOOL);
  33. VOID APIENTRY wglCopyBits2(HDC, GLGENwindow *, __GLGENcontext *, LONG, LONG, ULONG, BOOL);
  34. VOID APIENTRY wglCopyBuf(HDC, HDC, LONG, LONG, ULONG, ULONG);
  35. VOID APIENTRY wglCopyBufRECTLIST(HDC, HDC, LONG, LONG, ULONG, ULONG, PRECTLIST);
  36. VOID APIENTRY wglFillRect(__GLGENcontext *, GLGENwindow *, PRECTL, ULONG);
  37. VOID APIENTRY wglCopyBuf2(HDC, GLGENwindow *, HBITMAP, LONG, LONG, ULONG, ULONG);
  38. ULONG APIENTRY wglGetClipRects(GLGENwindow *, RECTL *);
  39. #ifdef _CLIENTSIDE_
  40. BOOL APIENTRY wglGetClipList(GLGENwindow *);
  41. #endif
  42. COLORREF wglTranslateColor(COLORREF crColor,
  43. HDC hdc,
  44. __GLGENcontext *gengc,
  45. PIXELFORMATDESCRIPTOR *ppfd);
  46. VOID APIENTRY wglCleanupWindow(GLGENwindow *);
  47. BOOL APIENTRY wglCopyTranslateVector(__GLGENcontext *gengc, BYTE *, ULONG);
  48. ULONG APIENTRY wglPaletteChanged(__GLGENcontext *gengc,
  49. GLGENwindow *pwnd);
  50. ULONG APIENTRY wglPaletteSize(__GLGENcontext *gengc);
  51. BOOL APIENTRY wglComputeIndexedColors(__GLGENcontext *gengc, ULONG *, ULONG);
  52. BOOL APIENTRY wglValidPixelFormat(HDC, int, DWORD,
  53. LPDIRECTDRAWSURFACE, DDSURFACEDESC *);
  54. /* Returned by wglSpanVisible */
  55. #define WGL_SPAN_NONE 0
  56. #define WGL_SPAN_ALL 1
  57. #define WGL_SPAN_PARTIAL 2
  58. int WINAPI wglGetPixelFormat(HDC hdc);
  59. BOOL WINAPI wglSetPixelFormat(HDC hdc, int ipfd,
  60. CONST PIXELFORMATDESCRIPTOR *ppfd);
  61. int WINAPI wglChoosePixelFormat(HDC hdc, CONST PIXELFORMATDESCRIPTOR *ppfd);
  62. int WINAPI wglDescribePixelFormat(HDC hdc, int ipfd, UINT cjpfd,
  63. LPPIXELFORMATDESCRIPTOR ppfd);
  64. BOOL WINAPI wglSwapBuffers(HDC hdc);
  65. void UpdateWindowInfo(__GLGENcontext *gengc);
  66. void HandlePaletteChanges( __GLGENcontext *gengc, GLGENwindow *pwnd );
  67. UINT APIENTRY wglGetSystemPaletteEntries(HDC hdc, UINT iStartIndex,
  68. UINT nEntries, LPPALETTEENTRY lppe);
  69. #endif // _srvp_