示例#1
0
        public void DrawString(string text, Rectangle rectangle, TextFormat format, Color4 color)
        {
            QFont.Begin();

            _font.Options.Colour = color.ToGLColor4();
            _font.Print(text, new OpenTK.Vector2(rectangle.X, rectangle.Y));

            QFont.End();
        }
示例#2
0
        public void DrawString(string text, int x, int y, Color4 color)
        {
            QFont.Begin();

            _font.Options.Colour = color.ToGLColor4();
            _font.Print(text, new OpenTK.Vector2(x, y));

            QFont.End();
        }