Beispiel #1
0
 public void OnGraphicsDeviceDisposing(GraphicsDeviceDisposing message)
 {
     if (_spriteBatch != null)
     {
         _spriteBatch.Dispose();
         _spriteBatch = null;
     }
 }
 public void OnGraphicsDeviceDisposing(GraphicsDeviceDisposing message)
 {
     if (_scene != null)
     {
         _scene.Dispose();
         _scene = null;
     }
 }
 public void OnGraphicsDeviceDisposing(GraphicsDeviceDisposing message)
 {
     _graphicsDevice = null;
     if (_primitiveBatch != null)
     {
         _primitiveBatch.Dispose();
         _primitiveBatch = null;
     }
 }
Beispiel #4
0
 public void OnGraphicsDeviceDisposing(GraphicsDeviceDisposing message)
 {
     if (_spriteBatch != null)
     {
         _spriteBatch.Dispose();
         _spriteBatch = null;
     }
     if (_renderTarget1 != null)
     {
         _renderTarget1.Dispose();
         _renderTarget1 = null;
     }
     if (_renderTarget2 != null)
     {
         _renderTarget2.Dispose();
         _renderTarget2 = null;
     }
 }
Beispiel #5
0
 public static void OnGraphicsDeviceDisposing(GraphicsDeviceDisposing message)
 {
     UnloadContent();
 }