19 lines
650 B
C#
19 lines
650 B
C#
using Microsoft.Xna.Framework.Content;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
|
|
namespace FarseerPhysics.SamplesFramework
|
|
{
|
|
public class SpriteFonts
|
|
{
|
|
public SpriteFont DetailsFont;
|
|
public SpriteFont FrameRateCounterFont;
|
|
public SpriteFont MenuSpriteFont;
|
|
|
|
public SpriteFonts(ContentManager contentManager)
|
|
{
|
|
MenuSpriteFont = contentManager.Load<SpriteFont>("Fonts/menuFont");
|
|
FrameRateCounterFont = contentManager.Load<SpriteFont>("Fonts/frameRateCounterFont");
|
|
DetailsFont = contentManager.Load<SpriteFont>("Fonts/detailsFont");
|
|
}
|
|
}
|
|
} |