public IScreen CreateScreen()
        {
            var xnaScreen = new XnaScreen(this);

            XnaScreens.Add(xnaScreen);
            return(xnaScreen);
        }
Exemplo n.º 2
0
        public XnaLayout(XnaScreen screen, int width, int height)
        {
            Screen = screen;
            Width  = width;
            Height = height;

            ScreenOrientation = ScreenOrientation.Vertical;
            LayoutPosition    = new LayoutPosition(new Size(width, height));

            UIManager = new XnaUIManager(this);
        }