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

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