public override void Draw(GameTime gameTime, Frame frame) { ClearBatch.AddNew(frame, 0, Materials.Clear, clearColor: Color.Black); ParallelDrawer.UserData.Now = (float)Time.Seconds; ParallelDrawer.UserData.Frame = frame; ParallelDrawer.Invoke(); }
protected override void Update(GameTime gameTime) { if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) { this.Exit(); } ParallelUpdater.UserData.Now = (float)Time.Seconds; ParallelUpdater.Invoke(); base.Update(gameTime); }