示例#1
0
        public Drawer(Renderer parent)
        {
            width = parent.Width;
            height = parent.Height;

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