Use GLControl.

This commit is contained in:
the_fiddler 2008-03-24 13:26:25 +00:00
parent f2f0359c6b
commit 1cb0fbce22

View file

@ -20,18 +20,14 @@ namespace Examples.Tests
{ {
public class S01_Call_Performance : IExample public class S01_Call_Performance : IExample
{ {
GraphicsContext context;
const int num_calls = 1000000; const int num_calls = 1000000;
float[] v = new float[] { 0.0f, 0.0f }; float[] v = new float[] { 0.0f, 0.0f };
public static int dummy_variable = 0; public static int dummy_variable = 0;
public void Launch() public void Launch()
{ {
using (Form f = new Form()) using (OpenTK.GLControl control = new OpenTK.GLControl(GraphicsMode.Default))
{ {
//context = new GraphicsContext(new OpenTK.DisplayMode(), new OpenTK.Platform.WindowInfo(f));
context.CreateContext();
Trace.WriteLine(String.Format("Number of calls: {0}", num_calls)); Trace.WriteLine(String.Format("Number of calls: {0}", num_calls));
Stopwatch timer = new Stopwatch(); Stopwatch timer = new Stopwatch();