Example #1
0
 public DebugRenderer(SpriteBatch spriteBatch, MainGame game)
 {
     this.SpriteBatch = spriteBatch;
     DebugFont        = new MultiSizeSpriteFont(game, MultiSizeSpriteFontDefinition.Create(game, "Fonts\\DebugFont\\DebugFont").WithDefaultAvailableSizes());
     DebugRectangle   = new Texture2D(spriteBatch.GraphicsDevice, 1, 1);
     DebugRectangle.SetData(new[] { Color.White });
 }
Example #2
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 public virtual void LoadContent()
 {
     MainFont = new MultiSizeSpriteFont(Game, MultiSizeSpriteFontDefinition.Create(Game, "Fonts\\Grinched\\Grinched").WithDefaultAvailableSizes());
     AddEntity(new Entity(this, EntityType.LayerIndependent, NonPositionalAudio));
 }