From: Jarl Gullberg Date: Tue, 20 Jun 2017 13:19:44 +0000 (+0200) Subject: Removed CreateGraphicsContext helper wrapper. X-Git-Tag: v3.0.0~95^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4b5016597d19897b489d44e74ba7b02a2230ea3;p=platform%2Fcore%2Fcsapi%2Fopentk.git Removed CreateGraphicsContext helper wrapper. --- 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). /// ///