From cc8ac7df145b863577ffc0501b3e646a0f2e5ca1 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 4 Nov 2009 17:00:34 +0000 Subject: [PATCH] Added missing documentation to GraphicsContext constructor. --- Source/OpenTK/Graphics/GraphicsContext.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/OpenTK/Graphics/GraphicsContext.cs b/Source/OpenTK/Graphics/GraphicsContext.cs index 57a0934c..614e4ede 100644 --- a/Source/OpenTK/Graphics/GraphicsContext.cs +++ b/Source/OpenTK/Graphics/GraphicsContext.cs @@ -122,6 +122,17 @@ namespace OpenTK.Graphics } } + /// + /// Constructs a new GraphicsContext from a pre-existing context created outside of OpenTK. + /// + /// The handle of the existing context. This must be a valid, unique handle that is not known to OpenTK. + /// The window this context is bound to. This must be a valid window obtained through Utilities.CreateWindowInfo. + /// A different context that shares resources with this instance, if any. + /// Pass null if the context is not shared or if this is the first GraphicsContext instruct you construct. + /// The major version of the context (e.g. "2" for "2.1"). + /// The minor version of the context (e.g. "1" for "2.1"). + /// A bitwise combination of that describe this context. + /// Occurs if handle is identical to a context already registered with OpenTK. public GraphicsContext(ContextHandle handle, IWindowInfo window, IGraphicsContext shareContext, int major, int minor, GraphicsContextFlags flags) { lock (SyncRoot)