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; }
void Init() { var rect = GetScaledFrame (); PlayScript.Player.ApplicationClass = typeof(_root.Demo_Mobile); //PlayScript.Player.ApplicationClass = typeof(_root.Tutorial1); //PlayScript.Player.ApplicationClass = typeof(_root.MyStarlingTest); mPlayer = new PlayScript.Player( rect ); }
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)); }