コード例 #1
0
ファイル: LGameXNA2DActivity.cs プロジェクト: nobcdz/LGame
 public void LoadApp()
 {
     if (m_process != null)
     {
         m_process.Begin();
     }
     Printf("loadApp");
 }
コード例 #2
0
 /// <summary>
 /// 调用XNA资源加载函数(禁止重载)
 /// </summary>
 protected sealed override void LoadContent()
 {
     GraphicsDevice.Clear(Color.Black);
     if (process != null)
     {
         process.Load(GraphicsDevice);
         process.Begin();
         isScale = process.IsScale();
     }
     if (useXNAListener)
     {
         xna_listener.LoadContent(this);
     }
     XNA_LoadContent();
 }
コード例 #3
0
ファイル: LSilverlightPlus.cs プロジェクト: vb0067/LGame
 /// <summary>
 /// 调用XNA资源加载函数(禁止重载)
 /// </summary>
 public void OnNavigatedTo(NavigationEventArgs e)
 {
     try
     {
         SharedGraphicsDeviceManager.Current.GraphicsDevice.SetSharingMode(true);
         SharedGraphicsDeviceManager.Current.GraphicsDevice.Clear(Color.Black);
     }
     catch
     {
     }
     if (process != null)
     {
         process.Load(SharedGraphicsDeviceManager.Current.GraphicsDevice);
         process.Begin();
         isScale = process.IsScale();
     }
     if (useXNAListener)
     {
         sl_listener.LoadContent(GamePage);
     }
     XNA_LoadContent();
     TargetElapsedTime.Start();
 }