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

            }
Exemple #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();
 }