mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-24 04:06:49 +00:00
Cleaned up and simplified the ExampleLauncher reflection functions. Can now launch "console" examples (which utilize neither GameWindow nor Windows.Forms). Better naming scheme for loaded examples.
This commit is contained in:
parent
2968ab9842
commit
3416fc515d
1
Source/Examples/ExampleLauncher.Designer.cs
generated
1
Source/Examples/ExampleLauncher.Designer.cs
generated
|
@ -40,6 +40,7 @@
|
||||||
this.listBox1.Margin = new System.Windows.Forms.Padding(1);
|
this.listBox1.Margin = new System.Windows.Forms.Padding(1);
|
||||||
this.listBox1.Name = "listBox1";
|
this.listBox1.Name = "listBox1";
|
||||||
this.listBox1.Size = new System.Drawing.Size(284, 264);
|
this.listBox1.Size = new System.Drawing.Size(284, 264);
|
||||||
|
this.listBox1.Sorted = true;
|
||||||
this.listBox1.TabIndex = 0;
|
this.listBox1.TabIndex = 0;
|
||||||
this.listBox1.DoubleClick += new System.EventHandler(this.listBox1_DoubleClick);
|
this.listBox1.DoubleClick += new System.EventHandler(this.listBox1_DoubleClick);
|
||||||
this.listBox1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.listBox1_KeyUp);
|
this.listBox1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.listBox1_KeyUp);
|
||||||
|
|
|
@ -134,7 +134,7 @@ namespace Examples.Tests
|
||||||
Trace.WriteLine(String.Format("{0} ns", timer.Elapsed.TotalMilliseconds * (1000000.0 / (double)num_calls)));
|
Trace.WriteLine(String.Format("{0} ns", timer.Elapsed.TotalMilliseconds * (1000000.0 / (double)num_calls)));
|
||||||
timer.Reset();
|
timer.Reset();
|
||||||
|
|
||||||
|
GL.GenLists(1);
|
||||||
Trace.Write("Timing direct DllImport (void*): ");
|
Trace.Write("Timing direct DllImport (void*): ");
|
||||||
timer.Start();
|
timer.Start();
|
||||||
for (int i = 0; ++i < num_calls; )
|
for (int i = 0; ++i < num_calls; )
|
||||||
|
@ -149,6 +149,8 @@ namespace Examples.Tests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static readonly int order = 1;
|
||||||
|
|
||||||
public void InlineFunction()
|
public void InlineFunction()
|
||||||
{
|
{
|
||||||
++dummy_variable;
|
++dummy_variable;
|
||||||
|
|
Loading…
Reference in a new issue