mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 18:51:07 +00:00
Toolkit.Init() now returns a concrete class
This gives us room for expansion in the future, if necessary.
This commit is contained in:
parent
1d19a80b53
commit
486130c01e
|
@ -68,9 +68,11 @@ namespace OpenTK
|
||||||
/// <code>
|
/// <code>
|
||||||
/// static void Main()
|
/// static void Main()
|
||||||
/// {
|
/// {
|
||||||
/// OpenTK.Toolkit.Init();
|
/// using (OpenTK.Toolkit.Init())
|
||||||
|
/// {
|
||||||
/// ...
|
/// ...
|
||||||
/// }
|
/// }
|
||||||
|
/// }
|
||||||
/// </code>
|
/// </code>
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <para>
|
/// <para>
|
||||||
|
@ -84,7 +86,7 @@ namespace OpenTK
|
||||||
/// An IDisposable instance that you can use to dispose of the resources
|
/// An IDisposable instance that you can use to dispose of the resources
|
||||||
/// consumed by OpenTK.
|
/// consumed by OpenTK.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
public static IDisposable Init()
|
public static Toolkit Init()
|
||||||
{
|
{
|
||||||
return Init(ToolkitOptions.Default);
|
return Init(ToolkitOptions.Default);
|
||||||
}
|
}
|
||||||
|
@ -101,9 +103,11 @@ namespace OpenTK
|
||||||
/// <code>
|
/// <code>
|
||||||
/// static void Main()
|
/// static void Main()
|
||||||
/// {
|
/// {
|
||||||
/// OpenTK.Toolkit.Init();
|
/// using (OpenTK.Toolkit.Init())
|
||||||
|
/// {
|
||||||
/// ...
|
/// ...
|
||||||
/// }
|
/// }
|
||||||
|
/// }
|
||||||
/// </code>
|
/// </code>
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <para>
|
/// <para>
|
||||||
|
@ -119,7 +123,7 @@ namespace OpenTK
|
||||||
/// An IDisposable instance that you can use to dispose of the resources
|
/// An IDisposable instance that you can use to dispose of the resources
|
||||||
/// consumed by OpenTK.
|
/// consumed by OpenTK.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
public static IDisposable Init(ToolkitOptions options)
|
public static Toolkit Init(ToolkitOptions options)
|
||||||
{
|
{
|
||||||
if (options == null)
|
if (options == null)
|
||||||
throw new ArgumentNullException("options");
|
throw new ArgumentNullException("options");
|
||||||
|
|
Loading…
Reference in a new issue