From b89f79266b0595573e7a21f929766f8f38cf2e78 Mon Sep 17 00:00:00 2001 From: Fraser Waters Date: Sat, 22 Feb 2014 20:55:48 +0000 Subject: [PATCH] Fix XML documentation. --- Source/OpenTK/BindingsBase.cs | 2 +- Source/OpenTK/Graphics/ColorFormat.cs | 5 +++++ Source/OpenTK/Graphics/GraphicsContext.cs | 12 +++++++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Source/OpenTK/BindingsBase.cs b/Source/OpenTK/BindingsBase.cs index dee9caa2..7261cbf1 100644 --- a/Source/OpenTK/BindingsBase.cs +++ b/Source/OpenTK/BindingsBase.cs @@ -188,7 +188,7 @@ namespace OpenTK /// /// Frees a marshalled string that allocated by MarshalStringToPtr. /// - /// An unmanaged pointer allocated with MarshalStringToPtr + /// An unmanaged pointer allocated with MarshalStringToPtr protected static void FreeStringPtr(IntPtr ptr) { Marshal.FreeHGlobal(ptr); diff --git a/Source/OpenTK/Graphics/ColorFormat.cs b/Source/OpenTK/Graphics/ColorFormat.cs index 12d7aafb..f781410a 100644 --- a/Source/OpenTK/Graphics/ColorFormat.cs +++ b/Source/OpenTK/Graphics/ColorFormat.cs @@ -183,6 +183,11 @@ namespace OpenTK.Graphics #region IEquatable Members + /// + /// Compares whether this ColorFormat structure is equal to the specified ColorFormat. + /// + /// The ColorFormat structure to compare to. + /// True if both ColorFormat structures contain the same components; false otherwise. public bool Equals(ColorFormat other) { return diff --git a/Source/OpenTK/Graphics/GraphicsContext.cs b/Source/OpenTK/Graphics/GraphicsContext.cs index 970bdab8..05e33dc5 100644 --- a/Source/OpenTK/Graphics/GraphicsContext.cs +++ b/Source/OpenTK/Graphics/GraphicsContext.cs @@ -39,7 +39,17 @@ namespace OpenTK.Graphics /// public sealed class GraphicsContext : IGraphicsContext, IGraphicsContextInternal { + /// + /// Used to retrive function pointers by name. + /// + /// The function name. + /// A function pointer to , or IntPtr.Zero public delegate IntPtr GetAddressDelegate(string function); + + /// + /// Used to return the handel of the current OpenGL context. + /// + /// The current OpenGL context, or IntPtr.Zero if no context is on the calling thread. public delegate ContextHandle GetCurrentContextDelegate(); #region --- Fields --- @@ -646,7 +656,7 @@ namespace OpenTK.Graphics /// /// Marks this context as deleted, but does not actually release unmanaged resources - /// due to the threading requirements of OpenGL. Use + /// due to the threading requirements of OpenGL. Use /// instead. /// ~GraphicsContext()