TimeRulerLibrary.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 = Content.Load<SpriteFont>( "DebugFont" );

            //SolidColorEffect = Content.Load<Effect>("SolidColor");
            BasicEffect = new BasicEffect(GraphicsDevice);

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

            base.LoadContent();
        }