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:
the_fiddler 2007-10-20 10:29:39 +00:00
parent 2968ab9842
commit 3416fc515d
2 changed files with 4 additions and 1 deletions

View file

@ -40,6 +40,7 @@
this.listBox1.Margin = new System.Windows.Forms.Padding(1);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(284, 264);
this.listBox1.Sorted = true;
this.listBox1.TabIndex = 0;
this.listBox1.DoubleClick += new System.EventHandler(this.listBox1_DoubleClick);
this.listBox1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.listBox1_KeyUp);

View file

@ -134,7 +134,7 @@ namespace Examples.Tests
Trace.WriteLine(String.Format("{0} ns", timer.Elapsed.TotalMilliseconds * (1000000.0 / (double)num_calls)));
timer.Reset();
GL.GenLists(1);
Trace.Write("Timing direct DllImport (void*): ");
timer.Start();
for (int i = 0; ++i < num_calls; )
@ -149,6 +149,8 @@ namespace Examples.Tests
}
}
public static readonly int order = 1;
public void InlineFunction()
{
++dummy_variable;