PerformanceMeasuring.GameDebugTools.DebugManager.LoadContent C# (CSharp) Method

LoadContent() protected method

protected LoadContent ( ) : void
return void
        protected override void LoadContent()
        {
            // Load debug content.
            SpriteBatch = new SpriteBatch(GraphicsDevice);

            DebugFont = Game.Content.Load<SpriteFont>(debugFont);

            // Create white texture.
            WhiteTexture = new Texture2D(GraphicsDevice, 1, 1);
            Color[] whitePixels = new Color[] { Color.White };
            WhiteTexture.SetData<Color>(whitePixels);

            base.LoadContent();
        }