Exemplo n.º 1
0
 public TGLCanvas()
 {
     PenPos = new Point();
     Brush  = new TBrush();
     Pen    = new TPen();
     Font   = new TFont();
 }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
 public void RenderText(string text, TFont font, Point position)
 {
     RenderText(text, font, position.X, position.Y);
 }