summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2019-12-24 22:58:05 +0000
committerassiduous <assiduous@diligentgraphics.com>2019-12-24 22:58:05 +0000
commit9bb4e0d029edb12119b5b079c906f8b54414617f (patch)
tree53478e06f58bd06136b4f36c63cdc85684e569c8 /Graphics/GraphicsEngineOpenGL
parentUpdated readme (diff)
downloadDiligentCore-9bb4e0d029edb12119b5b079c906f8b54414617f.tar.gz
DiligentCore-9bb4e0d029edb12119b5b079c906f8b54414617f.zip
Added SetSwapChain method to IDeviceContextGL interface
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.h2
-rw-r--r--Graphics/GraphicsEngineOpenGL/interface/DeviceContextGL.h6
2 files changed, 7 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.h b/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.h
index 38c982ca..558448c4 100644
--- a/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.h
+++ b/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.h
@@ -213,7 +213,7 @@ public:
void CommitRenderTargets();
- void SetSwapChain(ISwapChainGL* pSwapChain);
+ virtual void SetSwapChain(ISwapChainGL* pSwapChain) override final;
virtual void ResetRenderTargets() override final;
diff --git a/Graphics/GraphicsEngineOpenGL/interface/DeviceContextGL.h b/Graphics/GraphicsEngineOpenGL/interface/DeviceContextGL.h
index ba0d5ddb..e6953b64 100644
--- a/Graphics/GraphicsEngineOpenGL/interface/DeviceContextGL.h
+++ b/Graphics/GraphicsEngineOpenGL/interface/DeviceContextGL.h
@@ -31,6 +31,8 @@
namespace Diligent
{
+class ISwapChainGL;
+
// {3464FDF1-C548-4935-96C3-B454C9DF6F6A}
static constexpr INTERFACE_ID IID_DeviceContextGL =
{0x3464fdf1, 0xc548, 0x4935, {0x96, 0xc3, 0xb4, 0x54, 0xc9, 0xdf, 0x6f, 0x6a}};
@@ -47,6 +49,10 @@ public:
///
/// \return false if there is no active GL context, and true otherwise
virtual bool UpdateCurrentGLContext() = 0;
+
+ /// Sets the swap in the device context. The swap chain is used by the device context
+ /// to obtain the default FBO handle.
+ virtual void SetSwapChain(ISwapChainGL* pSwapChain) = 0;
};
} // namespace Diligent