Ejemplo n.º 1
0
 public virtual void Draw(GameTime gameTime)
 {
     if (this.Enabled)
     {
         if (this.sq == null)
         {
             this.sq = new ScreenQuad(this.Game);
             this.sq.Initialize();
         }
         this.effect.CurrentTechnique.Passes[0].Apply();
         this.sq.Draw();
     }
 }
Ejemplo n.º 2
0
 public virtual void Draw(GameTime gameTime)
 {
     if (!Enabled)
     {
         return;
     }
     if (sq == null)
     {
         sq = new ScreenQuad(Game);
         sq.Initialize();
     }
     effect.CurrentTechnique.Passes[0].Apply();
     sq.Draw();
 }
Ejemplo n.º 3
0
        public virtual void Draw(GameTime gameTime, Texture2D backBuffer)
        {
            if (Enabled)
            {
                if (sq == null)
                {
                    sq = new ScreenQuad(Game);
                    sq.Initialize();
                }

                effect.Parameters["scene"].SetValue(backBuffer);
                effect.CurrentTechnique.Passes[0].Apply();
                sq.Draw();
            }
        }