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.

60 lines
1.8 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: logon.hxx
  3. *
  4. * Copyright (c) 1997 Microsoft Corporation
  5. *
  6. \**************************************************************************/
  7. #ifndef __uidemo_logon_hxx__
  8. #define __uidemo_logon_hxx__
  9. #include "mtk.hxx"
  10. #include "uidemo.hxx"
  11. #include "logobj.hxx"
  12. #include "util.hxx"
  13. #include "resource.h"
  14. // This uses swap hint rects on flys for machines with slow blt speeds
  15. #define SWAP_HINTS_ON_FLYS 1
  16. extern BOOL bSwapHints, bSwapHintsEnabled;
  17. extern BOOL bLighting, bDepth;
  18. extern TIMER transitionTimer;
  19. extern AVG_UPDATE_TIMER frameRateTimer;
  20. extern RGBA bgColor;
  21. extern int nLogObj;
  22. extern LOG_OBJECT **pLogObj;
  23. extern MTKWIN *mtkWin;
  24. extern ISIZE winSize; // main window cached size and position
  25. extern IPOINT2D winPos;
  26. extern VIEW view;
  27. extern BOOL bDebugMode;
  28. extern BOOL bRunAgain;
  29. extern BOOL bFlyWithContext;
  30. extern HCURSOR hNormalCursor, hHotCursor;
  31. extern HINSTANCE hLogonInstance;
  32. extern HDC hdcMem;
  33. extern HBITMAP hBanner;
  34. extern ISIZE bannerSize;
  35. extern BOOL RunLogonSequence();
  36. extern BOOL RunLogonInitSequence();
  37. extern LOG_OBJECT *RunLogonHotSequence();
  38. extern BOOL RunLogonEndSequence( LOG_OBJECT *pObj );
  39. extern void Quit();
  40. extern void DrawObjects( BOOL bCalcUpdateRect );
  41. extern void SetObjectRestPositions();
  42. extern void ClearWindow();
  43. extern void ClearRect( GLIRECT *pRect, BOOL bResetScissor );
  44. extern void ClearAll();
  45. extern void Flush();
  46. extern void CalcObjectWindowRects();
  47. extern float Clamp(int iters_left, float t);
  48. extern float MyRand(void);
  49. extern BOOL Key(int key, GLenum mask);
  50. extern BOOL AttributeKey(int key, GLenum mask);
  51. extern BOOL EscKey(int key, GLenum mask);
  52. extern void Reshape(int width, int height);
  53. #endif // __uidemo_logon_hxx__