예제 #1
0
        public MainWindow(Manager manager, Application thisApp)
            : base(manager)
        {
            Background = Manager.Content.Load<Texture2D>("Content\\Textures\\background");
            (Manager.Game as Application).BackgroundImage = Background;
            ContentManager = new ContentManager(manager.Game.Services, "Content");
            SpriteBatch = new SpriteBatch(manager.GraphicsDevice);
            Renderers.Add(new Environment.TileMap2D(ContentManager));
            Renderers.Add(new Environment.TileMap3D(Manager.GraphicsDevice, ContentManager, Height, Height));
            this.ThisApp = thisApp;
            AutoScroll = false;

            InitControls();
        }
예제 #2
0
 public ScreenManager(Application application)
 {
     Application = application;
     _gameLayers = new List<GameLayer>();
 }