mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 03:55:33 +00:00
Added simpler constructor overload for external GraphicsContexts.
This commit is contained in:
parent
839406aec4
commit
c2d92f5aca
|
@ -122,6 +122,16 @@ namespace OpenTK.Graphics
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Constructs a new GraphicsContext from a pre-existing context created outside of OpenTK.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="handle">The handle of the existing context. This must be a valid, unique handle that is not known to OpenTK.</param>
|
||||||
|
/// <param name="window">The window this context is bound to. This must be a valid window obtained through Utilities.CreateWindowInfo.</param>
|
||||||
|
/// <exception cref="GraphicsContextException">Occurs if handle is identical to a context already registered with OpenTK.</exception>
|
||||||
|
public GraphicsContext(ContextHandle handle, IWindowInfo window)
|
||||||
|
: this(handle, window, null, 1, 0, GraphicsContextFlags.Default)
|
||||||
|
{ }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructs a new GraphicsContext from a pre-existing context created outside of OpenTK.
|
/// Constructs a new GraphicsContext from a pre-existing context created outside of OpenTK.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in a new issue