/// <summary> /// Creates a new window. /// </summary> /// <param name="pp">Presentation parameters for creating the swap chain.</param> /// <param name="isPrimaryWindow">True if the window is top-level, false if otherwise</param> public Window(PresentationParameters pp, bool isPrimaryWindow) { IWindowProvider provider = Engine.Services.GetService <IWindowProvider>(); if (provider == null) { throw new TeslaException("Window provider cannot be null!"); } _impl = provider.CreateWindowImplementation(pp, "Tesla Graphics Engine", isPrimaryWindow); }
protected BaseWindow() { this.implementation = WindowImplementationFactory.CreateWindowImplementation(); }