Exemplo n.º 1
0
        /// <inheritdoc/>
        protected override UltravioletContext OnCreatingUltravioletContext()
        {
            var configuration = new OpenGLUltravioletConfiguration();

            configuration.Headless                = headless;
            configuration.EnableServiceMode       = serviceMode;
            configuration.IsHardwareInputDisabled = true;
            configuration.Debug         = true;
            configuration.DebugLevels   = DebugLevels.Error | DebugLevels.Warning;
            configuration.DebugCallback = (uv, level, message) =>
            {
                System.Diagnostics.Debug.WriteLine(message);
            };

            if (!String.IsNullOrEmpty(audioSubsystem))
            {
                configuration.AudioSubsystemAssembly = audioSubsystem;
            }

            if (configureUPF)
            {
                PresentationFoundation.Configure(configuration);
            }

            return(new OpenGLUltravioletContext(this, configuration));
        }
Exemplo n.º 2
0
        protected override UltravioletContext OnCreatingUltravioletContext()
        {
            var configuration = new OpenGLUltravioletConfiguration();

            PresentationFoundation.Configure(configuration);

            return(new OpenGLUltravioletContext(this, configuration));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Called when the application is creating its Ultraviolet context.
        /// </summary>
        /// <returns>The Ultraviolet context.</returns>
        protected override UltravioletContext OnCreatingUltravioletContext()
        {
            var configuration = new OpenGLUltravioletConfiguration();

            configuration.EnableServiceMode = ShouldRunInServiceMode();
            PopulateConfiguration(configuration);

            PresentationFoundation.Configure(configuration);

#if DEBUG
            configuration.Debug         = true;
            configuration.DebugLevels   = DebugLevels.Error | DebugLevels.Warning;
            configuration.DebugCallback = (uv, level, message) =>
            {
                System.Diagnostics.Debug.WriteLine(message);
            };
#endif
            return(new OpenGLUltravioletContext(this, configuration));
        }
Exemplo n.º 4
0
        /// <summary>
        /// Called when the application is creating its Ultraviolet context.
        /// </summary>
        /// <returns>The Ultraviolet context.</returns>
        protected override UltravioletContext OnCreatingUltravioletContext()
        {
            var configuration = new OpenGLUltravioletConfiguration();

            configuration.SupportsHighDensityDisplayModes = true;
            configuration.EnableServiceMode        = ShouldRunInServiceMode();
            configuration.WatchViewFilesForChanges = ShouldDynamicallyReloadContent();
            PopulateConfiguration(configuration);

            PresentationFoundation.Configure(configuration);

#if DEBUG
            configuration.Debug         = true;
            configuration.DebugLevels   = DebugLevels.Error | DebugLevels.Warning;
            configuration.DebugCallback = (uv, level, message) =>
            {
                System.Diagnostics.Debug.WriteLine(message);
            };
            configuration.WatchViewFilesForChanges = true;
#endif
            return(new OpenGLUltravioletContext(this, configuration));
        }
Exemplo n.º 5
0
 /// <inheritdoc/>
 public override void Register(UltravioletConfiguration configuration) =>
 PresentationFoundation.Configure(configuration, presentationConfig);