Permalink
Browse files

Added a helper for creating cocoa window infos.

  • Loading branch information...
1 parent 86a5399 commit 374ce2618620f949b155b702fac8276a9ed2e687 @Ollhax Ollhax committed with thefiddler Apr 21, 2014
Showing with 14 additions and 0 deletions.
  1. +14 −0 Source/OpenTK/Platform/Utilities.cs
@@ -293,6 +293,20 @@ public static IWindowInfo CreateMacOSCarbonWindowInfo(IntPtr windowHandle, bool
#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>

0 comments on commit 374ce26

Please sign in to comment.