diff options
| author | skallweitNV <64953474+skallweitNV@users.noreply.github.com> | 2023-12-19 00:16:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-18 15:16:14 -0800 |
| commit | 93b8f68b2e9ddc450ce63f1b6e1806960312d803 (patch) | |
| tree | d5c9c38efe1e7c86637c4be6157595b44a5c4856 /tools/platform/window.h | |
| parent | b6da04424aff71ddba9629c94401a9a897b152a0 (diff) | |
macos/vulkan support (#3418)
Diffstat (limited to 'tools/platform/window.h')
| -rw-r--r-- | tools/platform/window.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/platform/window.h b/tools/platform/window.h index f80e21302..7f78b8af9 100644 --- a/tools/platform/window.h +++ b/tools/platform/window.h @@ -97,6 +97,7 @@ struct WindowHandle { Unknown, Win32Handle, + NSViewHandle, XLibHandle, }; Type type; @@ -108,6 +109,13 @@ struct WindowHandle handle.handleValues[0] = (intptr_t)(hwnd); return handle; } + static WindowHandle fromNSView(void* nsview) + { + WindowHandle handle = {}; + handle.type = WindowHandle::Type::NSViewHandle; + handle.handleValues[0] = (intptr_t)(nsview); + return handle; + } static WindowHandle fromXWindow(void* xdisplay, uint32_t xwindow) { WindowHandle handle = {}; |
