예제 #1
0
 public void Refresh(ISurfaceRenderData surface, bool force)
 {
     //_redrawStringBuilder.Clear();
     //foreach (Cell cell in console)
     //{
     //    if (cell.Glyph == 0)
     //        _redrawStringBuilder.Append(' ');
     //    else
     //        _redrawStringBuilder.Append((char)cell.Glyph);
     //}
     //RedrawString = _redrawStringBuilder.ToString();
 }
예제 #2
0
 public void Detatch(ISurfaceRenderData surface)
 {
 }
예제 #3
0
 public void Render(ISurfaceRenderData surface)
 {
     GameHost.Instance.DrawCalls.Enqueue(new DrawCalls.DrawCallSurface(surface.Surface, surface.AbsoluteArea.Position));
 }
예제 #4
0
 public void Attach(ISurfaceRenderData surface)
 {
     //RedrawString = new string(' ', console.Width * console.Height);
     _redrawStringBuilder = new StringBuilder(surface.Surface.View.Width * surface.Surface.View.Height * 4);
 }