/// <summary> /// Creates a surface without initializing it /// </summary> /// <param name="position">the top-left corner of the surface, in global terms</param> /// <param name="resolution">the resolution of the surface</param> /// <returns>The surface</returns> public FucksSurfaceManager CreateSurface(TermPosition position, TermResolution resolution) { var sz = new TermSize(resolution.Xres, resolution.Yres); var manager = new FucksSurfaceManager(position, sz, resolution, BasicColor.Default); surfaces.Add(manager); return(manager); }
public WithBurrowedCell(ref TermCell[, ] cells, ref TermResolution res, TermPosition[] cell_addrs, bool new_pat = false) { no_respect_old_pattern = new_pat; Addrs = cell_addrs; pRes = res; Res = new TermResolution(res.Xscale, Addrs.Length * res.Yscale); Cells = cells; mCells = new TermCell[Res.Xres, Res.Yres]; for (int idx = 0; idx < Addrs.Length; idx++) { ref var addr = ref Addrs[idx]; var maddry = idx * pRes.Yscale; ref
public TermState(TermResolution res) { resolution = res; cells = new TermCell[res.Xres, res.Yres]; }