From 68bb0c88ba7d427550dd9ac5a796ff2d6d05262d Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Mon, 4 Mar 2019 22:54:00 -0800 Subject: Updated GL engine factory headers and structures --- Graphics/GraphicsEngine/interface/GraphicsTypes.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'Graphics/GraphicsEngine') 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 -- cgit v1.2.3