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(); }
public void Detatch(ISurfaceRenderData surface) { }
public void Render(ISurfaceRenderData surface) { GameHost.Instance.DrawCalls.Enqueue(new DrawCalls.DrawCallSurface(surface.Surface, surface.AbsoluteArea.Position)); }
public void Attach(ISurfaceRenderData surface) { //RedrawString = new string(' ', console.Width * console.Height); _redrawStringBuilder = new StringBuilder(surface.Surface.View.Width * surface.Surface.View.Height * 4); }