Exemplo n.º 1
0
 //draws a surface to the region marked as a viewport.
 //the viewport cuts the
 public unsafe void Draw(Viewport vp, Surface surf)
 {
     XConsole.SMALL_RECT temp = vp.transform;
     fixed(XConsole.CHAR_INFO *p = &surf.Buffer[0])
     {
         XConsole.WriteConsoleOutput(
             Handle,                         // screen buffer to write to
             p,                              // buffer to copy from
             surf.size,                      // col-row size of Buffer
             vp.scroll,                      // top left src cell in Buffer
             &temp);                         // dest. screen buffer rectangle
         //return XConsole.GetLastError();
     };
 }
Exemplo n.º 2
0
 public Viewport(XConsole.SMALL_RECT _transform)
 {
     transform = _transform;
 }