private static async void OnApplication_FirstIdle(object sender, EventArgs e) { Application.Idle -= OnApplication_FirstIdle; await GraphicsCore.InitializeDefaultAsync(); s_renderTarget = new FullscreenRenderTarget( GraphicsCore.Current.DefaultOutput); s_renderTarget.ClearColor = Color4.CornflowerBlue; s_renderTarget.RenderLoop.SceneComponents.Add(new ExitComponent()); s_renderTarget.RenderLoop.SceneComponents.Add(new GradientBackgroundComponent()); s_renderTarget.RenderLoop.SceneComponents.Add(new SimpleCenteredCubeComponent()); s_renderTarget.RenderLoop.SceneComponents.Add(new FocusedPointCameraComponent()); s_renderTarget.WindowDestroyed += (innerSender, innerEArgs) => Application.Exit(); }