From b4b5016597d19897b489d44e74ba7b02a2230ea3 Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Tue, 20 Jun 2017 15:19:44 +0200 Subject: [PATCH] Removed CreateGraphicsContext helper wrapper. --- src/OpenTK/Platform/Utilities.cs | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/src/OpenTK/Platform/Utilities.cs b/src/OpenTK/Platform/Utilities.cs index 6720066..7d4e016 100644 --- a/src/OpenTK/Platform/Utilities.cs +++ b/src/OpenTK/Platform/Utilities.cs @@ -222,28 +222,6 @@ namespace OpenTK.Platform #region --- Creating a Graphics Context --- - /// - /// Creates an IGraphicsContext instance for the specified window. - /// - /// The GraphicsMode for the GraphicsContext. - /// An IWindowInfo instance describing the parent window for this IGraphicsContext. - /// The major OpenGL version number for this IGraphicsContext. - /// The minor OpenGL version number for this IGraphicsContext. - /// A bitwise collection of GraphicsContextFlags with specific options for this IGraphicsContext. - /// A new IGraphicsContext instance. - [Obsolete("Call new OpenTK.Graphics.GraphicsContext() directly, instead.")] - public static IGraphicsContext CreateGraphicsContext( - GraphicsMode mode, IWindowInfo window, - int major, int minor, GraphicsContextFlags flags) - { - GraphicsContext context = new GraphicsContext(mode, window, major, minor, flags); - context.MakeCurrent(window); - - (context as IGraphicsContextInternal).LoadAll(); - - return context; - } - #region CreateX11WindowInfo /// @@ -318,7 +296,7 @@ namespace OpenTK.Platform /// The X offset for the GL viewport /// The Y offset for the GL viewport /// A new IWindowInfo instance. - public static IWindowInfo CreateMacOSCarbonWindowInfo(IntPtr windowHandle, bool ownHandle, bool isControl, + public static IWindowInfo CreateMacOSCarbonWindowInfo(IntPtr windowHandle, bool ownHandle, bool isControl, OpenTK.Platform.MacOS.GetInt xOffset, OpenTK.Platform.MacOS.GetInt yOffset) { return new OpenTK.Platform.MacOS.CarbonWindowInfo(windowHandle, false, isControl, xOffset, yOffset); @@ -397,8 +375,8 @@ namespace OpenTK.Platform #if !__MOBILE__ /// - /// Creates an IWindowInfo instance for Angle rendering, based on - /// supplied platform window (e.g. a window created with + /// Creates an IWindowInfo instance for Angle rendering, based on + /// supplied platform window (e.g. a window created with /// CreateWindowsWindowInfo, or CreateDummyWindowInfo). /// /// -- 2.7.4