Exemplo n.º 1
0
        public static void Update()
        {
            CheckForSizeChange();
            content.Clear();

            for (int s = 0; s < screenRegions.Count(); s++)
            {
                ScreenRegion region = screenRegions[s];

                if (region.active)
                {
                    for (int y = 0; y < region.rect.size.y; y++)
                    {
                        for (int x = 0; x < region.rect.size.x; x++)
                        {
                            content.grid[region.rect.position.y + y][region.rect.position.x + x] = region.grid[y][x];
                        }
                    }
                }
            }

            Interop.Draw(content);
        }