public TGLCanvas() { PenPos = new Point(); Brush = new TBrush(); Pen = new TPen(); Font = new TFont(); }
public void RenderText(string text, TFont font, float x, float y) { drawing.ProjectionMatrix = projectionMatrix; drawing.DrawingPrimitives.Clear(); var qfont = Fonts.ContainsKey(font.Name) ? Fonts[font.Name] : DefaultFonts[TimesNewRoman]; drawing.Print ( qfont, text, new Vector3(x, ScreenHeight - y, 0), QFontAlignment.Left, font.RenderOptions ); drawing.RefreshBuffers(); drawing.Draw(); }
public void RenderText(string text, TFont font, Point position) { RenderText(text, font, position.X, position.Y); }