Added simpler constructor overload for external GraphicsContexts.
This commit is contained in:
parent
839406aec4
commit
c2d92f5aca
1 changed files with 10 additions and 0 deletions
|
@ -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>
|
||||
/// Constructs a new GraphicsContext from a pre-existing context created outside of OpenTK.
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in a new issue