From 433562e99dd0805bafb7271c4a10bef55614205b Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sat, 20 Oct 2007 10:29:39 +0000 Subject: [PATCH] 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. --- Source/Examples/ExampleLauncher.Designer.cs | 1 + Source/Examples/Tests/S01_Call_Performance.cs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Examples/ExampleLauncher.Designer.cs b/Source/Examples/ExampleLauncher.Designer.cs index df491b7a..41efe692 100644 --- a/Source/Examples/ExampleLauncher.Designer.cs +++ b/Source/Examples/ExampleLauncher.Designer.cs @@ -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); diff --git a/Source/Examples/Tests/S01_Call_Performance.cs b/Source/Examples/Tests/S01_Call_Performance.cs index 80a1e43b..e10b4a1e 100644 --- a/Source/Examples/Tests/S01_Call_Performance.cs +++ b/Source/Examples/Tests/S01_Call_Performance.cs @@ -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;