protected override void Initialize()
        {
            // Remember resolution
            width = graphics.GraphicsDevice.Viewport.Width;
            height = graphics.GraphicsDevice.Viewport.Height;

            // Create font
            font = new TextureFont(graphics.GraphicsDevice);

            base.Initialize();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Load all graphics content (just our background texture).
 /// Use this method to make sure a device reset event is handled correctly.
 /// </summary>
 protected override void LoadContent()
 {
     // Create font
     font = new TextureFont(graphics.GraphicsDevice, Content);
 }