MainActivity.cs 609 B

1234567891011121314151617181920212223
  1. using Android.App;
  2. using Android.OS;
  3. namespace ShaderTest.Android
  4. {
  5. /// <summary>
  6. /// The main entry point for the Android application.
  7. /// </summary>
  8. [Activity(Label = "2DShaderSample", MainLauncher = true, Icon = "@mipmap/icon")]
  9. public class MainActivity : Activity
  10. {
  11. /// <summary>
  12. /// Called when the activity is first created.
  13. /// </summary>
  14. protected override void OnCreate(Bundle savedInstanceState)
  15. {
  16. base.OnCreate(savedInstanceState);
  17. var game = new ShaderTestGame();
  18. game.Run();
  19. }
  20. }
  21. }