projects
/
platform
/
core
/
csapi
/
opentk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86a5399
)
Added a helper for creating cocoa window infos.
author
Olle HÃ¥kansson
<ollhak@gmail.com>
Mon, 21 Apr 2014 19:14:32 +0000
(21:14 +0200)
committer
thefiddler
<stapostol@gmail.com>
Thu, 24 Apr 2014 11:45:05 +0000
(13:45 +0200)
Source/OpenTK/Platform/Utilities.cs
patch
|
blob
|
history
diff --git
a/Source/OpenTK/Platform/Utilities.cs
b/Source/OpenTK/Platform/Utilities.cs
index
2de2dce
..
66d2593
100644
(file)
--- a/
Source/OpenTK/Platform/Utilities.cs
+++ b/
Source/OpenTK/Platform/Utilities.cs
@@
-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>