Beispiel #1
0
        public static void Draw(VFont font, string text, int x, int y, Vector4 col)
        {
            int dx = x;

            VPen.BlendMod = VBlend.Alpha;
            foreach (Char c in text)
            {
                VGlyph cg = font.Glypth[(int)c];
                VPen.Rect(dx, y, cg.W, cg.H, cg.Img, col);
                dx += (int)((float)cg.W / 1.3f);
            }
        }
Beispiel #2
0
 public static void Draw(VFont font, string text, int x, int y)
 {
     Draw(font, text, x, y, new Vector4(1, 1, 1, 1));
 }
Beispiel #3
0
 public static void Draw(VFont font, string text, float x, float y)
 {
     Draw(font, text, (int)x, (int)y);
 }
Beispiel #4
0
 public static void Draw(VFont font, string text, float x, float y, Vector4 col)
 {
     Draw(font, text, (int)x, (int)y, col);
 }