示例#1
0
        /// <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);
        }
示例#2
0
 protected BaseWindow()
 {
     this.implementation = WindowImplementationFactory.CreateWindowImplementation();
 }
示例#3
0
 protected BaseWindow()
 {
     this.implementation = WindowImplementationFactory.CreateWindowImplementation();
 }