mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-16 16:37:34 +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
|
#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
|
#region CreateDummyWindowInfo
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in a new issue