public static void SetDefaultFont(XNAFont font) { if (staticFont != null) { staticFont = null; } staticFont = font; }
public Font_Updateable(XNAFont f) { this.font = f; }
public static XNAFont GetFont(int size) { return(XNAFont.GetFont(LSystem.FONT_NAME, 0, size)); }
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(); }