当前位置: 首页>>代码示例>>C#>>正文


C# Window.Run方法代码示例

本文整理汇总了C#中Window.Run方法的典型用法代码示例。如果您正苦于以下问题:C# Window.Run方法的具体用法?C# Window.Run怎么用?C# Window.Run使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Window的用法示例。


在下文中一共展示了Window.Run方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Engine

		public Engine()
		{
			current = this;
			
			window = Window.Create<Window>(1024, 768);
			window.onLoad += OnWindowLoad;
			window.onRender += Update;

			window.Run(60, 0);
		}
开发者ID:KurtLoeffler,项目名称:EnvyEngine,代码行数:10,代码来源:Engine.cs

示例2: Main

        static void Main(string[] args)
        {

            var root = OctreeNode<object>.Filled(Vect3.Zero, 5, 0, new object());
            
            var tree = new Octree<object>(root.Split());

            using (var win = new Window<object>(tree, node => Color.Blue))
            {
                win.Run();
                Console.ReadLine();
            }
        }
开发者ID:EngrIO,项目名称:Engr.Octree,代码行数:13,代码来源:Program.cs

示例3: Main

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        //[STAThread]
        static void Main()
        {
            // Create the window that we'll show on the screen
            Window win = new Window("Hello NewTOAPIA", 10, 10, 320, 240);
            
            // Explicitly call show as the window is not shown by default
            win.BackgroundColor = Colorrefs.White;
            win.Show();

            // Draw into the window directly
            win.ClientAreaGraphPort.DrawString(100, 100, "Hello NewTOAPIA!");

            // Start the window/application running.  It will continue
            // running until the close box is clicked on.
            win.Run();
        }
开发者ID:Wiladams,项目名称:NewTOAPIA,代码行数:20,代码来源:Program.cs

示例4: Main

 public static void Main()
 {
     using (Window w = new Window())
         w.Run(60);
 }
开发者ID:JulyMoon,项目名称:looper,代码行数:5,代码来源:Main.cs

示例5: Main

 static void Main(string[] args)
 {
     Console.WriteLine("\n:::::::::::::::::::::::\nRealtime Mandelbrot by C0BRA\n:::::::::::::::::::::::\n\nControls:\n  Q     Zoom out\n  E     zoom In\n  WASD  Move\n  R     Increase Iterations\n  F     Decrease Iterations\n  C     Change color mode\n  M1    Centerise view");
     Window window = new Window();
     window.Run(40);
 }
开发者ID:AshleighAdams,项目名称:Mandelbrot,代码行数:6,代码来源:Program.cs


注:本文中的Window.Run方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。