Esempio n. 1
0
        public Drawer(Renderer parent)
        {
            width = parent.Width;
            height = parent.Height;

            Buffer = new ConsoleChar[width * height];
        }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 private static extern bool WriteConsoleOutput(
   SafeFileHandle hConsoleOutput,
   ConsoleChar[] lpBuffer,
   Coord dwBufferSize,
   Coord dwBufferCoord,
   ref SmallRect lpWriteRegion);