public override void AwakeFromNib() { // Allocate the Player object player = new PlayScript.Player (openGLView.Bounds); // load the main application class player.LoadClass(typeof(_root.Demo_Mobile)); //player.LoadClass(typeof(_root.Tutorial1)); //player.LoadClass(typeof(_root.MyStarlingTest)); // set window title Window.Title = player.Title; // Assign the player to the view openGLView.Player = player; // reset the viewport and update OpenGL Context openGLView.UpdateView (); // Activate the display link now openGLView.StartAnimation (); isAnimating = true; }
protected void InitPlayer() { // create player mPlayer = new PlayScript.Player(this.Frame); // load swf application mPlayer.LoadClass(typeof(_root.Demo_Mobile)); //mPlayer.LoadClass(typeof(_root.Tutorial1)); //mPlayer.LoadClass(typeof(_root.MyStarlingTest)); }