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.

39 lines
895 B

  1. /******************************Module*Header*******************************\
  2. * Module Name: glutil.hxx
  3. *
  4. * GL Utility routines
  5. *
  6. * Copyright (c) 1996 Microsoft Corporation
  7. *
  8. \**************************************************************************/
  9. #ifndef __glutil_hxx__
  10. #define __glutil_hxx__
  11. #include "palette.hxx"
  12. class MTK_OS_INFO {
  13. public:
  14. MTK_OS_INFO();
  15. OSVERSIONINFO osvi;
  16. BOOL fOnWin95;
  17. BOOL fOnNT35;
  18. };
  19. class MTK_GL_CAPS {
  20. public:
  21. MTK_GL_CAPS(); // Can only be called after CreateContext
  22. void Query();
  23. BOOL bGLv1_1; // GL version 1.1 boolean
  24. BOOL bAddSwapHintRect;
  25. BOOL bTextureObjects;
  26. BOOL bPalettedTexture;
  27. private:
  28. };
  29. extern MTK_OS_INFO gOSInfo;
  30. extern MTK_GL_CAPS gGLCaps;
  31. extern BOOL mtk_QueryAddSwapHintRect();
  32. extern void (__stdcall *glAddSwapHintRect)(GLint, GLint, GLint, GLint);
  33. #endif // __glutil_hxx__