protected override void Draw() { GraphicsDevice.Clear(Color.Gray); if (GO_OVER) { audio.PauseAll(); video.Play(); video.Draw(); } else { audio.ResumeAll(); video.Stop(); //bar.Draw(GraphicsDevice); grating.SetTime((float)timer.ElapsedSeconds); grating.Draw(GraphicsDevice); //image.Draw(new Rectangle(210, 100, 400, 200), Color.White); //quad.Draw(GraphicsDevice); model.Ori3DMatrix = Matrix.CreateRotationY((float)timer.ElapsedSeconds); model.Draw(GraphicsDevice); //point.Draw(GraphicsDevice); circle.Draw(GraphicsDevice); //disk.Draw(GraphicsDevice); //cross.Draw(GraphicsDevice); //arrow.Draw(GraphicsDevice); radialcircle.Draw(GraphicsDevice); //gaussian.Draw(GraphicsDevice); vsc.BatchDraw(GraphicsDevice); //vscp.Draw(GraphicsDevice); text.Draw(new Vector2(5, 5), SLConstant.Help + "\n" + frameinfo.FPS.ToString() + " FPS", Color.PeachPuff); text.Draw(new Vector2(5, 70), "Unicode Text: ¦«¦²¦µ¦¶¦·¦¸¦°", Color.Red, 10f * (float)SLConstant.Rad_p_Deg, Vector2.Zero, Vector2.One); } }
protected override void Draw() { GraphicsDevice.Clear(Color.Gray); if (GO_OVER) { audio.PauseAll(); model.Ori3DMatrix = Matrix.CreateRotationY((float)timer.ElapsedSeconds); model.Draw(GraphicsDevice); } else { audio.ResumeAll(); //bar.Draw(GraphicsDevice); grating.SetTime((float)timer.ElapsedSeconds); grating.Draw(GraphicsDevice); //cross.Draw(GraphicsDevice); //arrow.Draw(GraphicsDevice); text.Draw(new Vector2(10, 10), SLConstant.Help + "\n" + frameinfo.FPS.ToString() + " FPS", Color.PeachPuff); text.Draw(new Vector2(10, 80), serverstate, Color.Red); } }