| 1234567891011121314151617181920212223242526 |
- #pragma once
- #include "BsWin32Prerequisites.h"
- #include "BsGLContext.h"
- namespace BansheeEngine
- {
- class BS_RSGL_EXPORT Win32Context : public GLContext
- {
- public:
- Win32Context(HDC hdc, HGLRC glrc, bool ownsContext);
- virtual ~Win32Context();
- /** See GLContext */
- virtual void setCurrent();
- /** See GLContext */
- virtual void endCurrent();
- virtual void releaseContext();
- protected:
- HDC mHDC;
- HGLRC mGlrc;
- bool mOwnsContext;
- };
- }
|