12345678910111213141516171819 |
- using Android.App;
- using Android.Content.PM;
- using Android.OS;
- using Microsoft.Xna.Framework;
- namespace Colored3DCube.Android
- {
- [Activity(Label = "Colored3DCube", MainLauncher = true, Icon = "@mipmap/icon", Theme = "@android:style/Theme.NoTitleBar.Fullscreen", ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize, ScreenOrientation = ScreenOrientation.Landscape)]
- public class MainActivity : AndroidGameActivity
- {
- protected override void OnCreate(Bundle bundle)
- {
- base.OnCreate(bundle);
- var g = new Colored3DCube.Game1();
- SetContentView((g.Services.GetService(typeof(View)) as View));
- g.Run();
- }
- }
- }
|