Example #1
0
        /// <summary>
        /// Initializes the part of Duality that requires a valid rendering context.
        /// Should be called before performing any rendering related operations with Duality.
        /// Is called implicitly when using <see cref="OpenWindow"/>.
        /// </summary>
        public static void InitPostWindow()
        {
            ContentProvider.InitDefaultContent();

            // Post-Window init is the last thing that happens before loading game
            // content and entering simulation. When done in a game context, notify
            // plugins that the game is about to start - otherwise, exec context changes
            // will trigger the same code later.
            if (execContext == ExecutionContext.Game)
            {
                pluginManager.InvokeGameStarting();
            }
        }
Example #2
0
 /// <summary>
 /// Initializes the part of Duality that requires a valid rendering context.
 /// Should be called before performing any rendering related operations with Duality.
 /// Is called implicitly when using <see cref="OpenWindow"/>.
 /// </summary>
 public static void InitPostWindow()
 {
     ContentProvider.InitDefaultContent();
 }