示例#1
0
文件: Activity1.cs 项目: xvwvx/Myra
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            var g = new AllWidgetsGame();

            SetContentView((View)g.Services.GetService(typeof(View)));
            g.Run();
        }
示例#2
0
        public AllWidgetsGame()
        {
            Instance = this;

            _graphics = new GraphicsDeviceManager(this)
            {
                PreferredBackBufferWidth  = 1200,
                PreferredBackBufferHeight = 800
            };
            Window.AllowUserResizing = true;
            IsMouseVisible           = true;
        }