protected override void OnRenderFrame(FrameEventArgs e) { GL.Clear(ClearBufferMask.ColorBufferBit); a.Draw(); // b.Draw(); // c.Draw(); Context.SwapBuffers(); base.OnRenderFrame(e); }
protected override void OnRenderFrame(FrameEventArgs e) { GL.Clear(ClearBufferMask.ColorBufferBit); // a.Draw(); // b.Draw(); _time += 10.0 * e.Time; // var model = Matrix4.Identity * Matrix4.CreateRotationX((float)MathHelper.DegreesToRadians(_time)); //Matrix4 model = Matrix4.CreateRotationX(MathHelper.DegreesToRadians(-55.0f)); Matrix4 model = Matrix4.CreateRotationX((float)MathHelper.DegreesToRadians(e.Time)); // model*= Matrix4.CreateTranslation(0.1f,0.0f, 0.0f); c.UpdateMVP(model, _view, _projection); c.Draw(); Context.SwapBuffers(); base.OnRenderFrame(e); }