Added a helper for creating cocoa window infos.

This commit is contained in:
Olle Håkansson 2014-04-21 21:14:32 +02:00 committed by thefiddler
parent 86a5399534
commit 374ce26186

View 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>