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.

38 lines
896 B

  1. /******************************Module*Header*******************************\
  2. * Module Name: glscreen.h
  3. *
  4. * OpenGL direct screen access support
  5. *
  6. * Copyright (c) 1994 Microsoft Corporation
  7. *
  8. \**************************************************************************/
  9. #ifndef _GLSCREEN_H_
  10. #define _GLSCREEN_H_
  11. #include <ddraw.h>
  12. //
  13. // Structure that contains all the info we need to access the framebuffer
  14. //
  15. typedef struct _SCREENINFO_ {
  16. LPDIRECTDRAW pdd;
  17. GLDDSURF gdds;
  18. } SCREENINFO;
  19. //
  20. // Global pointer to SCREENINFO structure that is non-NULL if and only if
  21. // direct access to the framebuffer is available.
  22. //
  23. extern SCREENINFO *gpScreenInfo;
  24. //
  25. // Direct access macros:
  26. //
  27. // GLDIRECTSCREEN TRUE if direct access is enabled
  28. // GLSCREENINFO Pointer to global SCREENINFO.
  29. //
  30. #define GLDIRECTSCREEN ( gpScreenInfo != NULL )
  31. #define GLSCREENINFO ( gpScreenInfo )
  32. #endif