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.

64 lines
1.5 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: LgDirectDraw.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgDirectDraw.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__DIRECT__DRAW__H__INCLUDED__
  15. #define __LG__DIRECT__DRAW__H__INCLUDED__
  16. #include "LgDirectDrawDisplay.h"
  17. /*
  18. #define WINDOW_WIDTH 1024
  19. #define WINDOW_HEIGHT 768
  20. */
  21. #define HELPTEXT TEXT("Press Escape to quit.")
  22. class CLgDirectDraw
  23. {
  24. public:
  25. CLgDirectDraw();
  26. virtual ~CLgDirectDraw();
  27. public:
  28. void OnWmSize( HWND hWnd, WPARAM wParam );
  29. void OnWmDestroy();
  30. void OnWmQueryNewPalette();
  31. void OnWmPaint();
  32. void OnWmMove();
  33. public:
  34. HRESULT InitDirectDraw( HWND hWnd );
  35. VOID FreeDirectDraw();
  36. HRESULT ProcessNextFrame( HWND hWnd );
  37. HRESULT RestoreSurfaces();
  38. HRESULT DisplayFrame();
  39. // VOID UpdateSprite( HWND hWnd, SPRITE_STRUCT* pSprite, FLOAT fTimeDelta );
  40. public:
  41. BOOL OnIdle( HWND hWnd );
  42. BOOL IsActive() { return m_bActive; }
  43. private:
  44. CLgDirectDrawDisplay m_Display;
  45. // CLgDirectDrawSurface *m_pLogoSurface;
  46. CLgDirectDrawSurface *m_pTextSurface;
  47. private:
  48. /*
  49. SPRITE_STRUCT m_pSprite[NUM_SPRITES];
  50. DWORD m_dwLastTick;
  51. */
  52. BOOL m_bActive;
  53. };
  54. #endif