mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-23 06:51:04 +00:00
Added a helper for creating cocoa window infos.
This commit is contained in:
parent
86a5399534
commit
374ce26186
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue