diff --git a/Source/OpenTK/GameWindow.cs b/Source/OpenTK/GameWindow.cs index 6e8a6a11..0eab22b8 100644 --- a/Source/OpenTK/GameWindow.cs +++ b/Source/OpenTK/GameWindow.cs @@ -69,7 +69,7 @@ namespace OpenTK /// parameters that /// specify the logic update rate, and the render update rate. /// - public class GameWindow : NativeWindow0, IGameWindow, IDisposable + public class GameWindow : NativeWindow, IGameWindow, IDisposable { #region --- Fields --- diff --git a/Source/OpenTK/NativeWindow.cs b/Source/OpenTK/NativeWindow.cs index 58d0bc49..4ac02ed7 100644 --- a/Source/OpenTK/NativeWindow.cs +++ b/Source/OpenTK/NativeWindow.cs @@ -11,7 +11,7 @@ namespace OpenTK /// /// Instances of this class implement the interface on the current platform. /// - public class NativeWindow0 : INativeWindow + public class NativeWindow : INativeWindow { #region --- Fields --- @@ -26,7 +26,7 @@ namespace OpenTK #region NativeWindow() /// Constructs a new NativeWindow with default attributes without enabling events. - public NativeWindow0() + public NativeWindow() : this(640, 480, "OpenTK Native Window", GameWindowFlags.Default, GraphicsMode.Default, DisplayDevice.Default, false) { } #endregion @@ -35,7 +35,7 @@ namespace OpenTK /// Constructs a new NativeWindow with default attributes. /// Indicates to enable event processing as part of the NativeWindow construction. - public NativeWindow0(bool enableEvents) + public NativeWindow(bool enableEvents) : this(640, 480, "OpenTK Native Window", GameWindowFlags.Default, GraphicsMode.Default, DisplayDevice.Default, enableEvents) { } #endregion @@ -53,7 +53,7 @@ namespace OpenTK /// The OpenTK.Graphics.DisplayDevice to construct the NativeWindow in. /// If width or height is less than 1. /// If mode or device is null. - public NativeWindow0(int width, int height, string title, GameWindowFlags options, GraphicsMode mode, DisplayDevice device) + public NativeWindow(int width, int height, string title, GameWindowFlags options, GraphicsMode mode, DisplayDevice device) : this(width, height, title, options, mode, device, false) { } #endregion @@ -70,7 +70,7 @@ namespace OpenTK /// Indicates to enable event processing as part of the NativeWindow construction. /// If width or height is less than 1. /// If mode or device is null. - public NativeWindow0(int width, int height, string title, GameWindowFlags options, GraphicsMode mode, DisplayDevice device, bool enableEvents) + public NativeWindow(int width, int height, string title, GameWindowFlags options, GraphicsMode mode, DisplayDevice device, bool enableEvents) : this(device.Bounds.Left + (device.Bounds.Width - width) / 2, device.Bounds.Top + (device.Bounds.Height - height) / 2, width, height, title, options, mode, device, enableEvents) { } @@ -90,7 +90,7 @@ namespace OpenTK /// The OpenTK.Graphics.DisplayDevice to construct the NativeWindow in. /// If width or height is less than 1. /// If mode or device is null. - public NativeWindow0(int x, int y, int width, int height, string title, GameWindowFlags options, GraphicsMode mode, DisplayDevice device) + public NativeWindow(int x, int y, int width, int height, string title, GameWindowFlags options, GraphicsMode mode, DisplayDevice device) : this(x, y, width, height, title, options, mode, device, false) { } #endregion @@ -109,7 +109,7 @@ namespace OpenTK /// Indicates to enable event processing as part of the NativeWindow construction. /// If width or height is less than 1. /// If mode or device is null. - public NativeWindow0(int x, int y, int width, int height, string title, GameWindowFlags options, GraphicsMode mode, DisplayDevice device, bool enableEvents) + public NativeWindow(int x, int y, int width, int height, string title, GameWindowFlags options, GraphicsMode mode, DisplayDevice device, bool enableEvents) { // TODO: Should a constraint be added for the position? if (width < 1) diff --git a/Source/OpenTK/Platform/Windows/WMInput.cs b/Source/OpenTK/Platform/Windows/WMInput.cs index bd806882..ad05ef67 100644 --- a/Source/OpenTK/Platform/Windows/WMInput.cs +++ b/Source/OpenTK/Platform/Windows/WMInput.cs @@ -15,7 +15,7 @@ using System.Diagnostics; namespace OpenTK.Platform.Windows { // Input driver for legacy (pre XP) Windows platforms. - sealed class WMInput : NativeWindow, IInputDriver + sealed class WMInput : System.Windows.Forms.NativeWindow, IInputDriver { #region --- Fields --- diff --git a/Source/OpenTK/Platform/Windows/WinRawInput.cs b/Source/OpenTK/Platform/Windows/WinRawInput.cs index 73363702..bd815741 100644 --- a/Source/OpenTK/Platform/Windows/WinRawInput.cs +++ b/Source/OpenTK/Platform/Windows/WinRawInput.cs @@ -19,7 +19,7 @@ using OpenTK.Input; namespace OpenTK.Platform.Windows { // Not complete. - sealed class WinRawInput : NativeWindow, IInputDriver + sealed class WinRawInput : System.Windows.Forms.NativeWindow, IInputDriver { // Input event data. RawInput data = new RawInput();