Exemple #1
0
 public void Update()
 {
     for (int i = 0; i < buffers.Count; i++)
     {
         if (!buffers[i].Updated || !buffers[i].Drawn)
         {
             continue;
         }
         buffers[i].Control = false;
         backup             = (BatchBuffer)buffers[i].Clone();
         DrawBackup         = true;
         buffers[i].Control = true;
         buffers[i].Update();
         buffers[i].Updated = false;
         buffers[i].Drawn   = false;
         buffers[i].Control = false;
         DrawBackup         = false;
     }
 }
        public void Update()
        {
            for (int i = 0; i < buffers.Count; i++)
            {
                if (buffers[i].NeedsUpdating)     //&& buffers[i].Drawn == false
                {
                    //buffers[i].Control = true;
                    //buffers[i].Control = false;
                    backup     = (BatchBuffer)buffers[i].Clone();
                    DrawBackup = true;


                    buffers[i].Update();
                    //buffers[i].NeedsUpdating = false;
                    //buffers[i].Drawn = false;

                    //buffers[i].Control = false;
                    DrawBackup = false;
                }
            }
        }
Exemple #3
0
 public void Update()
 {
     for (int i = 0; i < buffers.Count; i++)
     {
         if (!buffers[i].Updated || !buffers[i].Drawn) continue;
         buffers[i].Control = false;
         backup = (BatchBuffer)buffers[i].Clone();
         DrawBackup = true;
         buffers[i].Control = true;
         buffers[i].Update();
         buffers[i].Updated = false;
         buffers[i].Drawn = false;
         buffers[i].Control = false;
         DrawBackup = false;
     }
 }
        public void Update()
        {
            for (int i = 0; i < buffers.Count; i++)
                {
                    if (buffers[i].NeedsUpdating) //&& buffers[i].Drawn == false
                    {
                        //buffers[i].Control = true;
                        //buffers[i].Control = false;
                        backup = (BatchBuffer)buffers[i].Clone();
                        DrawBackup = true;

                        buffers[i].Update();
                        //buffers[i].NeedsUpdating = false;
                        //buffers[i].Drawn = false;

                        //buffers[i].Control = false;
                        DrawBackup = false;
                    }
                }
        }