From 374ce2618620f949b155b702fac8276a9ed2e687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olle=20H=C3=A5kansson?= Date: Mon, 21 Apr 2014 21:14:32 +0200 Subject: [PATCH] Added a helper for creating cocoa window infos. --- Source/OpenTK/Platform/Utilities.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Source/OpenTK/Platform/Utilities.cs b/Source/OpenTK/Platform/Utilities.cs index 2de2dcea..66d2593e 100644 --- a/Source/OpenTK/Platform/Utilities.cs +++ b/Source/OpenTK/Platform/Utilities.cs @@ -293,6 +293,20 @@ namespace OpenTK.Platform #endregion + #region CreateMacOSWindowInfo + + /// + /// Creates an IWindowInfo instance for the Mac OS X platform. + /// + /// The handle of the NSWindow. + /// A new IWindowInfo instance. + public static IWindowInfo CreateMacOSWindowInfo(IntPtr windowHandle) + { + return new OpenTK.Platform.MacOS.CocoaWindowInfo(windowHandle); + } + + #endregion + #region CreateDummyWindowInfo ///