예제 #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()
        {
            DefaultContent.Init();

            // 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();
            }
        }
예제 #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()
        {
            AsyncManager.Init();

            DefaultContent.Init();
        }
예제 #3
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()
 {
     DefaultContent.Init();
 }