public OverlayWindow(IntPtr parentWindowHandle, bool vSync = false) : base(parentWindowHandle, true) { _renderer = new Dx2DRenderer(_windowHandle, vSync); _drawThread = ThreadHelper.RunGuarded(DrawThreadFunc, (ex) => throw ex, false, ThreadPriority.Highest); while (!_active) { Thread.Sleep(10); } }
public OverlayWindow(int x, int y, int width, int height, bool vSync = false) : base(x, y, width, height) { _renderer = new Dx2DRenderer(_windowHandle, vSync); _drawThread = ThreadHelper.RunGuarded(DrawThreadFunc, (ex) => throw ex); while (!_active) { Thread.Sleep(10); } }