From f88358621a3a2ffa1a9b7a87baa84695075337bd Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 31 Mar 2018 11:55:55 -0700 Subject: Implemented switching to a fullscreen mode in d3d on Win32 --- Graphics/GraphicsEngineOpenGL/include/SwapChainGLImpl.h | 4 ++++ Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp | 10 ++++++++++ 2 files changed, 14 insertions(+) (limited to 'Graphics/GraphicsEngineOpenGL') diff --git a/Graphics/GraphicsEngineOpenGL/include/SwapChainGLImpl.h b/Graphics/GraphicsEngineOpenGL/include/SwapChainGLImpl.h index 01630707..7cfca2da 100644 --- a/Graphics/GraphicsEngineOpenGL/include/SwapChainGLImpl.h +++ b/Graphics/GraphicsEngineOpenGL/include/SwapChainGLImpl.h @@ -51,6 +51,10 @@ public: virtual void Resize( Uint32 NewWidth, Uint32 NewHeight )override final; + virtual void SetFullscreenMode(const DisplayModeAttribs &DisplayMode)override final; + + virtual void SetWindowedMode()override final; + virtual GLuint GetDefaultFBO()const override final{ return 0; } }; diff --git a/Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp index 4939716d..e9349f7b 100644 --- a/Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp @@ -111,4 +111,14 @@ void SwapChainGLImpl::Resize( Uint32 NewWidth, Uint32 NewHeight ) } } +void SwapChainGLImpl::SetFullscreenMode(const DisplayModeAttribs &DisplayMode) +{ + UNSUPPORTED("OpenGL does not support switching to the fullscreen mode"); +} + +void SwapChainGLImpl::SetWindowedMode() +{ + UNSUPPORTED("OpenGL does not support switching to the windowed mode"); +} + } -- cgit v1.2.3