예제 #1
0
        public void DrawString(int x, int y, Color4 color, SlimDX.Direct3D9.DrawTextFormat format, string text, SlimDX.Direct3D9.Font MenuFont)
        {
            Rectangle fontPos = new Rectangle();
            fontPos.X = x;
            fontPos.Y = y;
            fontPos.Width = x + 120;
            fontPos.Height = y + 16;

            if (MenuFont != null)
            {
                MenuFont.DrawString(null, text, fontPos, format, color);

            }
        }