本文整理汇总了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);
}
示例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();
}
}
示例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();
}
示例4: Main
public static void Main()
{
using (Window w = new Window())
w.Run(60);
}
示例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);
}