示例#1
0
 protected override void Draw(GameTime time)
 {
     // Draw the TextLayout
     base.Draw(time);
     //RenderTarget2D.DrawTextLayout(new Vector2(0, 0), TextLayout, new SolidColorBrush(RenderTarget2D, Color.White), DrawTextOptions.None);
     ScreenManager.Draw(time);
 }
 public override void Draw(GameTime gameTime)
 {
     for (int i = 0; i < DrawableComponents.Count; i++)
     {
         if (DrawableComponents[i].Visible)
             DrawableComponents[i].Draw(gameTime);
     }
     base.Draw(gameTime);
 }
 public override void Update(GameTime gameTime)
 {
     for (int i = 0; i < DrawableComponents.Count; i++)
     {
         if (Components[i].Enabled)
             Components[i].Update(gameTime);
     }
     base.Update(gameTime);
 }
示例#4
0
 protected override void Update(GameTime time)
 {
     base.Update(time);
     ScreenManager.Update(time);
 }
示例#5
0
 public virtual void Draw(GameTime gameTime)
 {
 }
示例#6
0
        /// <summary>
        ///   In a derived class, implements logic to update any relevant sample state.
        /// </summary>
        protected virtual void Update(GameTime time)
        {
            if(Components!=null)
                foreach (var item in Components)
                {

                }
        }
示例#7
0
 /// <summary>
 ///   In a derived class, implements logic to render the sample.
 /// </summary>
 protected virtual void Draw(GameTime time)
 {
 }
示例#8
0
 public override void Update(GameTime gameTime)
 {
     base.Update(gameTime);
     if (CurrentScreen != null)
         CurrentScreen.Update(gameTime);
 }
示例#9
0
 public override void Draw(GameTime gameTime)
 {
     base.Draw(gameTime);
     if (CurrentScreen != null)
         CurrentScreen.Draw(gameTime);
 }
示例#10
0
 public override void Update(GameTime gameTime)
 {
     base.Update(gameTime);
 }
示例#11
0
        public override void Draw(GameTime gameTime)
        {
            base.Draw(gameTime);
            RenderTarget2D.DrawTextLayout(new Vector2(0, 0), new TextLayout(Game.FactoryDWrite, "编程棋 Alpha 0", new TextFormat(Game.FactoryDWrite, "微软雅黑", 128) { TextAlignment = TextAlignment.Center, ParagraphAlignment = ParagraphAlignment.Center }, Game.RenderTarget2D.Size.Width, Game.RenderTarget2D.Size.Height), new SolidColorBrush(RenderTarget2D, Color.White), DrawTextOptions.None);

        }
示例#12
0
 public virtual void Update(GameTime gameTime)
 {
 }