BsWin32Context.h 508 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "BsWin32Prerequisites.h"
  3. #include "BsGLContext.h"
  4. namespace BansheeEngine
  5. {
  6. class BS_RSGL_EXPORT Win32Context : public GLContext
  7. {
  8. public:
  9. Win32Context(HDC hdc, HGLRC glrc, bool ownsContext);
  10. virtual ~Win32Context();
  11. /** See GLContext */
  12. virtual void setCurrent();
  13. /** See GLContext */
  14. virtual void endCurrent();
  15. virtual void releaseContext();
  16. protected:
  17. HDC mHDC;
  18. HGLRC mGlrc;
  19. bool mOwnsContext;
  20. };
  21. }