summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-03-05 06:54:00 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-03-05 06:54:00 +0000
commit68bb0c88ba7d427550dd9ac5a796ff2d6d05262d (patch)
tree3a9cdda7df26be0b4b2f36acf7cda4e798a754b0 /Graphics/GraphicsEngine
parentUpdated D3D11, D3D12, and Vk EngineFactory headers & structures (diff)
downloadDiligentCore-68bb0c88ba7d427550dd9ac5a796ff2d6d05262d.tar.gz
DiligentCore-68bb0c88ba7d427550dd9ac5a796ff2d6d05262d.zip
Updated GL engine factory headers and structures
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/GraphicsTypes.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
index 2cc9024b..751279da 100644
--- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h
+++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
@@ -1253,6 +1253,23 @@ namespace Diligent
};
+ /// Attributes of the OpenGL-based engine implementation
+ struct EngineGLCreateInfo : public EngineCreateInfo
+ {
+ /// Native window handle
+
+ /// * On Win32 platform, this is a window handle (HWND)
+ /// * On Android platform, this is a pointer to the native window (ANativeWindow*)
+ /// * On Linux, this is the native window (Window)
+ void* pNativeWndHandle = nullptr;
+
+#if PLATFORM_LINUX
+ /// For linux platform only, this is the pointer to the display
+ void* pDisplay = nullptr;
+#endif
+ };
+
+
/// Debug flags that can be specified when creating Direct3D11-based engine implementation.
///
/// \sa CreateDeviceAndContextsD3D11Type, CreateSwapChainD3D11Type, LoadGraphicsEngineD3D11