Add NativeHandle property to provide the native window handle pointer.
Name: opentk
Summary: C# binding for OpenGL, OpenGL ES
-Version: 3.0.2
+Version: 3.0.3
Release: 1
Group: Development/Libraries
License: MIT
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>OpenTK</AssemblyName>
<AssemblyVersion>3.0.0</AssemblyVersion>
- <PackageVersion>3.0.2</PackageVersion>
+ <PackageVersion>3.0.3</PackageVersion>
<Deterministic>true</Deterministic>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<EnableDefaultItems>false</EnableDefaultItems>
public interface ITizenWindowAttributes
{
/// <summary>
- /// Get or set whether the window accepts a focus or not.
+ /// Gets or sets whether the window accepts a focus or not.
/// </summary>
bool IsFocusAllowed { get; set; }
/// <summary>
- /// Get or set opacity of the window
+ /// Gets or sets opacity of the window
/// </summary>
float WindowOpacity { get; set; }
/// <summary>
- /// Add a supported auxiliary hint to the window
+ /// Gets the native window handle.
+ /// </summary>
+ IntPtr NativeHandle { get; }
+
+ /// <summary>
+ /// Adds a supported auxiliary hint to the window
/// </summary>
/// <param name="hint">The auxiliary hint string</param>
/// <param name="value">The value string to be set</param>
public static extern bool SDL_Tizen_GetWindowAcceptFocus(IntPtr window);
[SuppressUnmanagedCodeSecurity]
+ [DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_Tizen_GetNativeWindow", ExactSpelling = true)]
+ public static extern IntPtr SDL_Tizen_GetNativeWindow(IntPtr window);
+
+ [SuppressUnmanagedCodeSecurity]
[DllImport(lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_SetWindowOpacity", ExactSpelling = true)]
public static extern int SDL_SetWindowOpacity(IntPtr window, float opacity);
}
}
+ public IntPtr NativeHandle
+ {
+ get
+ {
+ return SDL2.SDL.SDL_Tizen_GetNativeWindow(WindowInfo.Handle);
+ }
+ }
+
protected override void OnUpdateFrame(FrameEventArgs e)
{
if (!Paused)
{
return SDL2.SDL.SDL_Tizen_AddAuxiliaryHint(WindowInfo.Handle, hint, value);
}
+
}
}