protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.Black); base.Draw(gameTime); spriteBatch.Begin(); ph.Draw(spriteBatch); spriteBatch.End(); }
public void Refresh(double time) { menuAnimation1Instance1.RefreshControllers(); camera3Animation1Instance1.RefreshControllers(); GL.Clear(ClearBufferMask.DepthBufferBit); scene.Simulate(time); if (demo.EnableMenu) { scene.Draw(time); } }
public void Refresh(double time) { simpleCameraAnimation1Instance1.RefreshControllers(); GL.Clear(ClearBufferMask.DepthBufferBit); scene.Simulate(time); scene.Draw(time); if (demo.EnableMenu) { GL.Clear(ClearBufferMask.DepthBufferBit); demo.MenuScene.PhysicsScene.Draw(time); } demo.SwapBuffers(); }