示例#1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Run fullscreen
            AndroidHelper.SetWindowFullscreen(this);

            //
            SurfaceView = new HeirloomSurfaceView(this);
            SurfaceView.Resume(); // todo: put inside surfaceview on OnSurfaceCreate with boolean trap, definitely rename.
            SetContentView(SurfaceView);

            // Start game thread
            _thread = new Thread(MainLoop)
            {
                IsBackground = true, Name = "Game Thread"
            };
            _thread.Start();
        }
示例#2
0
 internal AndroidRenderContext(HeirloomSurfaceView surfaceView, MultisampleQuality multisample)
     : base(multisample)
 {
     SurfaceView = surfaceView;
 }