public Drawer(Renderer parent) { width = parent.Width; height = parent.Height; Buffer = new ConsoleChar[width * height]; }
public void Draw(ConsoleChar c, Position p) { int? pos = CalculatePos(p); if (pos == null) throw new Exception("Position out of range."); Buffer[(int)pos] = c; }
private static extern bool WriteConsoleOutput( SafeFileHandle hConsoleOutput, ConsoleChar[] lpBuffer, Coord dwBufferSize, Coord dwBufferCoord, ref SmallRect lpWriteRegion);