Clone of Akilla's ac2d @ https://github.com/deregtd/AC2D

cGraphics.h 426B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include "cInterface.h"
  3. #include "cThread.h"
  4. #include "cPoint3D.h"
  5. class cGraphics : public cThread {
  6. public:
  7. cGraphics(HWND hWnd);
  8. ~cGraphics();
  9. void SetInterface(cInterface *Interface);
  10. void Run();
  11. void Resize();
  12. private:
  13. void EnableOpenGL();
  14. void DisableOpenGL();
  15. cInterface *m_Interface;
  16. bool m_bNeedResize;
  17. int m_iWidth, m_iHeight;
  18. RECT m_rRect;
  19. HWND m_hWnd;
  20. HDC m_hDC;
  21. HGLRC m_hGLRC;
  22. };