Exemplo n.º 1
0
 public void DrawStringBaseline(string fontName, float size, string text, float x, float y,
                                Color4 color, bool underline = false, TextShadow shadow = default)
 {
     if (text == "" || size < 1) //skip empty str
     {
         return;
     }
     CreateRichTextEngine().DrawStringBaseline(fontName, size, text, x, y, color, underline, shadow);
 }
 public void DrawStringBaseline(string fontName, float size, string text, float x, float y, float start_x, Color4 color, bool underline = false, TextShadow shadow = default)
 {
     if (!active)
     {
         throw new InvalidOperationException("Renderer2D.Start() must be called before Renderer2D.DrawString");
     }
     if (text == "" || size < 1)             //skip empty str
     {
         return;
     }
     CreateRichTextEngine().DrawStringBaseline(fontName, size, text, x, y, start_x, color, underline, shadow);
 }
Exemplo n.º 3
0
 public abstract void DrawStringCached(ref CachedRenderString cache, string fontName, float size, string text,
                                       float x, float y, Color4 color, bool underline = false, TextShadow shadow = default, TextAlignment alignment = TextAlignment.Left);
Exemplo n.º 4
0
 public abstract void DrawStringBaseline(string fontName, float size, string text, float x, float y, Color4 color, bool underline = false, TextShadow shadow = default);
Exemplo n.º 5
0
 public void DrawStringCached(ref CachedRenderString cache, string fontName, float size, string text,
                              float x, float y, Color4 color, bool underline = false, TextShadow shadow = default,
                              TextAlignment alignment = TextAlignment.Left)
 {
     if (text == "" || size < 1) //skip empty str
     {
         return;
     }
     CreateRichTextEngine().DrawStringCached(ref cache, fontName, size, text, x, y, color, underline, shadow, alignment);
 }