diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-03-31 18:55:55 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-03-31 18:55:55 +0000 |
| commit | f88358621a3a2ffa1a9b7a87baa84695075337bd (patch) | |
| tree | bb555200a0d97d473744faf83e63834c742d0286 /Graphics/GraphicsEngineOpenGL | |
| parent | Implemented initialization in fullscreen mode on Win32 (diff) | |
| download | DiligentCore-f88358621a3a2ffa1a9b7a87baa84695075337bd.tar.gz DiligentCore-f88358621a3a2ffa1a9b7a87baa84695075337bd.zip | |
Implemented switching to a fullscreen mode in d3d on Win32
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/include/SwapChainGLImpl.h | 4 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp | 10 |
2 files changed, 14 insertions, 0 deletions
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"); +} + } |
