Example #1
0
 protected override void LoadContent()
 {
     spriteBatch = new SpriteBatch(GraphicsDevice);
     pixel       = new Texture2D(graphics.GraphicsDevice, 1, 1);
     pixel.SetData <Color>(new Color[] { Color.White });
     fontington = Content.Load <SpriteFont>("fontington");
     DrawText.Initialize(spriteBatch, graphics);
     manager                     = new ScreenManager(spriteBatch, Content, graphics, Window, currentScreenWidth, currentScreenHeight);
     manager.defaultFont         = Content.Load <SpriteFont>("fontington");
     manager.defaultFont.Spacing = 0;
     // Add game screens here.  The first one to be added will be the active screen.
     manager.Add(new MenuScreen(), "MainMenu");
     manager.Add(new WorldMatrixDemo(), "WorldMatrixDemo");
     manager.Add(new IntegrationDemo(), "IntegrationDemo");
     manager.Add(new InterpolationDemo(), "InterpolationDemo");
     manager.Add(new OBBdemo(), "OBBDemo");
     manager.InitializeAllScreens();
     Window.Position = new Point(0, 0);
 }