예제 #1
0
 public static void SetDefaultFont(XNAFont font)
 {
     if (staticFont != null)
     {
         staticFont = null;
     }
     staticFont = font;
 }
예제 #2
0
 public static void SetDefaultFont(XNAFont font)
 {
     if (staticFont != null)
     {
         staticFont = null;
     }
     staticFont = font;
 }
예제 #3
0
 public Font_Updateable(XNAFont f)
 {
     this.font = f;
 }
예제 #4
0
 public static XNAFont GetFont(int size)
 {
     return(XNAFont.GetFont(LSystem.FONT_NAME, 0, size));
 }
예제 #5
0
            public Font_Updateable(XNAFont f)
            {
                this.font = f;

            }
예제 #6
0
 public void DrawSpriteFont(XNAFont font, string mes, float x, float y,float rotation)
 {
     SpriteBatch batch = GLEx.Self.XNASpriteBatch();
     batch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, null, null, GL.device.RasterizerState, null, _gl.GLView);
     batch.DrawString(font.SpriteFont, mes, new Vector2(x, y), color, rotation, Vector2.Zero, 1f, SpriteEffects.None, 0);
     batch.End();
 }