Pong.PongExample.LoadContent C# (CSharp) Method

LoadContent() protected method

protected LoadContent ( ) : void
return void
        protected override void LoadContent()
        {
            Materials = new PongMaterials(Services) {
                ViewportScale = new Vector2(1, 1),
                ViewportPosition = new Vector2(0, 0),
                ProjectionMatrix = Matrix.CreateOrthographicOffCenter(
                    0, GraphicsDevice.Viewport.Width,
                    GraphicsDevice.Viewport.Height, 0,
                    0, 1
                )
            };

            Font = Content.Load<SpriteFont>("Tahoma");

            SpriteBatch = new SpriteBatch(GraphicsDevice);
        }