示例#1
0
        //Copy a grid into context
        private static void CopyInto(GridContext bgc, int x, int y, int z, Grid grid, byte groupId)
        {
            if (bgc == null || grid == null)
            {
                return;
            }

            int width  = grid.SizeX;
            int height = grid.SizeY;
            int depth  = grid.SizeZ;

            IPainter painter = new CPainter();

            painter.RectBlit(bgc, grid, x, y, z, x + width, y + height, z + depth, groupId);
        }