コード例 #1
0
ファイル: DualityApp.cs プロジェクト: raycrasher/duality
        /// <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
ファイル: DualityApp.cs プロジェクト: fossabot/jazz2
 /// <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();
 }