// This gets called on each frame render
        protected override void OnRenderFrame(FrameEventArgs e)
        {
            base.OnRenderFrame(e);

            SparrowSharpApp.Step(e.Time);

            SwapBuffers();
        }
 private void HandleRenderFrame(object sender, FrameEventArgs e)
 {
     SparrowSharpApp.Step(e.Time);
     // add game logic, input handling
     if (Keyboard[Key.Escape])
     {
         Exit();
     }
     SwapBuffers();
 }
Ejemplo n.º 3
0
        public void TestForOpenGLErrors()
        {
            Quad q1 = new Quad();

            testRoot.AddChild(q1);
            SparrowSharpApp.Step(15);
            Quad q2 = new Quad();

            q2.Alpha = 0.6f;
            testRoot.AddChild(q2);
            SparrowSharpApp.Step(15);

            Assert.IsFalse(RenderSupport.HasOpenGLError);
        }