void Render() { MakeCurrent(); _scene.Render(); var enterprise = _scene.GetObjectByName("Enterprise") as GLSpaceShip; enterprise.OrbitAngle -= 3; var planet = _scene.GetObjectByName("Earth") as GLPlanet; foreach (var satellite in planet.Satellites) { satellite.OrbitAngle = satellite.OrbitAngle + 2; } planet.Rotation.Y += 5; if (RotationLabel != null) { RotationLabel.Text = $"Rotation: : {_scene.Observer.Rotation.ToString()}"; } SwapBuffers(); }
void Render() { MakeCurrent(); _scene.Render(); SwapBuffers(); }