public void Draw(string output, float x, float y, Color fontColor, Color bgColor) { #if DEBUG var renderParam = new FontRenderParameter() { Type = FontRendererType.Sprite, FontName = this.FontName, Position = new Vector2(x, y), FontColor = fontColor, BGColor = bgColor, }; RenderManager.RenderFont(CreateFont(output), renderParam); #endif }
public abstract void Render(FontRenderParameter param);
public void SetParameter(FontRenderParameter param) { }
public void RenderFont(Font primitive, FontRenderParameter renderParam) { FontInfoList[Buffer].Add(new FontInfo() { Font = primitive, RenderParam = renderParam }); }