Inheritance: OpenTK.GameWindow
Exemple #1
0
 static void Main()
 {
     // The 'using' idiom guarantees proper resource cleanup.
     // We request 30 UpdateFrame events per second, and unlimited
     // RenderFrame events (as fast as the computer can handle).
     using (Picking example = new Picking())
     {
         // Get the title and category  of this example using reflection.
         ExampleAttribute info = ((ExampleAttribute)example.GetType().GetCustomAttributes(false)[0]);
         example.Title = String.Format("OpenTK | {0} {1}: {2} (use the mouse to pick)", info.Category, info.Difficulty, info.Title);
         example.Run(30.0);
     }
 }
Exemple #2
0
 static void Main()
 {
     // The 'using' idiom guarantees proper resource cleanup.
     // We request 30 UpdateFrame events per second, and unlimited
     // RenderFrame events (as fast as the computer can handle).
     using (Picking example = new Picking())
     {
         // Get the title and category  of this example using reflection.
         ExampleAttribute info = ((ExampleAttribute)example.GetType().GetCustomAttributes(false)[0]);
         example.Title = String.Format("OpenTK | {0} {1}: {2} (use the mouse to pick)", info.Category, info.Difficulty, info.Title);
         example.Run(30.0);
     }
 }