Old fashion design for PC-104
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.

66 lines
1.4 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: SCREEN.H
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of SCREEN.H
  13. //----------------------------------------------------------------------------
  14. #ifndef __SCREEN__H__INCLUDED__
  15. #define __SCREEN__H__INCLUDED__
  16. #include "StdAfx.h"
  17. #ifdef DEBUG_GRAPH_SCREEN
  18. class CScreen
  19. {
  20. public:
  21. CScreen();
  22. ~CScreen();
  23. public:
  24. BOOL Create();
  25. void Destroy();
  26. void Clear();
  27. public:
  28. inline BYTE& operator[] (long nIndex) { return s_pVideoMem[ nIndex ]; }
  29. inline operator BYTE huge *() { return s_pVideoMem; }
  30. inline LONG GetWidth() { return 320L; }
  31. inline LONG GetHeight() { return 200L; }
  32. void OutInteger( LONG nShift, INT nValue );
  33. private:
  34. static BYTE huge* s_pVideoMem;
  35. };
  36. extern CScreen g_Screen;
  37. #endif // DEBUG_GRAPH_SCREEN
  38. #ifdef DEBUG_CRT_SCREEN
  39. class CCRT
  40. {
  41. public:
  42. CCRT() { m_lpVideo = (BYTE huge*)0xB8000000UL; }
  43. public:
  44. void TextOut( INT x, INT y, LPCTSTR pText, INT nText );
  45. void IntOut( INT x, INT y, INT nValue );
  46. void HexOut( INT x, INT y, INT nValue );
  47. private:
  48. BYTE huge* m_lpVideo;
  49. };
  50. extern CCRT g_CRT;
  51. #endif //DEBUG_CRT_SCREEN
  52. #endif