Added a helper for creating cocoa window infos.
authorOlle HÃ¥kansson <ollhak@gmail.com>
Mon, 21 Apr 2014 19:14:32 +0000 (21:14 +0200)
committerthefiddler <stapostol@gmail.com>
Thu, 24 Apr 2014 11:45:05 +0000 (13:45 +0200)
Source/OpenTK/Platform/Utilities.cs

index 2de2dce..66d2593 100644 (file)
@@ -293,6 +293,20 @@ namespace OpenTK.Platform
 
         #endregion
 
+        #region CreateMacOSWindowInfo
+
+        /// <summary>
+        /// Creates an IWindowInfo instance for the Mac OS X platform.
+        /// </summary>
+        /// <param name="windowHandle">The handle of the NSWindow.</param>
+        /// <returns>A new IWindowInfo instance.</returns>
+        public static IWindowInfo CreateMacOSWindowInfo(IntPtr windowHandle)
+        {
+            return new OpenTK.Platform.MacOS.CocoaWindowInfo(windowHandle);
+        }
+
+        #endregion
+
         #region CreateDummyWindowInfo
 
         /// <summary>