Exemplo n.º 1
0
        public TSScreen(GraphicsDeviceManager graphics)
        {
            _graphics = graphics;
            _controlManager = new TSControlManager();

            if (graphics.IsFullScreen)
            {
                _width = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width;
                _height = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height;
            }
            else
            {
                _width = graphics.PreferredBackBufferWidth;
                _height = graphics.PreferredBackBufferHeight;
            }

            _controlManager.ParentPositionOnScreen = new Vector2(0, 0);
            _controlManager.ParentWidth = _width;
            _controlManager.ParentHeight = _height;
        }
Exemplo n.º 2
0
 public TSLayout()
 {
     _controlManager = new TSControlManager();
 }