Ejemplo n.º 1
0
        public void Init(IRenderer renderer, IClientSettings clientSettings)
        {
            Renderer       = (XnaRenderer)renderer;
            ClientSettings = clientSettings;
            ScreenManager  = new XnaScreenManager(Renderer, this);
            Game.InitScreens(renderer, ScreenManager);
            SocketManager = new XnaSocketManager();
            Game.InitSocketManager(SocketManager);
            DragDragGestureManager = new DragGestureManager();

            overlaySpriteBatch = new SpriteBatch(Renderer.graphicsDevice);
            renderer.CreateImage("overlay.arrow", "images/overlays/arrow.png");


            /*
             *          var size = screen.GetLayoutSize();
             *
             *          Renderer.graphics.PreferredBackBufferWidth = size.Width;
             *          Renderer.graphics.PreferredBackBufferHeight = size.Height;*/
        }
Ejemplo n.º 2
0
        public override void Init(IRenderer renderer)
        {
            Renderer           = (XnaRenderer)renderer;
            Game.Renderer      = renderer;
            ScreenManager      = new XnaScreenManager(Renderer, this);
            Game.ScreenManager = ScreenManager;
            Game.InitScreens();
            DragDragGestureManager = new DragGestureManager();

            overlaySpriteBatch = new SpriteBatch(Renderer.graphicsDevice);

            letterboxSpriteBatch = new SpriteBatch(Renderer.graphicsDevice);
            //            renderer.CreateImage("overlay.arrow", "images/overlays/arrow.png");


            /*
             *          var size = screen.GetLayoutSize();
             *
             *          Renderer.graphics.PreferredBackBufferWidth = size.Width;
             *          Renderer.graphics.PreferredBackBufferHeight = size.Height;*/
        }