예제 #1
0
 public void Setup()
 {
     this.engine = new ValorEngine();
     this.form = new ValorForm();
     this.form.Engine = this.engine;
     this.context = new GraphicsBindingContext(this.form, Ri, Pi);
 }
예제 #2
0
파일: Program.cs 프로젝트: kgroat/Valor
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     f = new ValorForm {Engine = new ValorEngine()};
     var ticker = new GraphicsBindingContext(f);
     ticker.Start();
     Application.Run(f);
 }
예제 #3
0
 public void Constructor_GeneratesProperlyPopulatedContext()
 {
     this.context = new GraphicsBindingContext(this.form, Ri, Pi);
     Assert.IsTrue(this.context.Form == this.form && this.context.RenderInterval == Ri && this.context.PhysicsInterval == Pi);
 }