示例#1
0
 /// <summary>
 /// Stops the gamer services component from updating
 /// </summary>
 public void Shutdown()
 {
     _engine.FrameStarted -= Update;
     _engine = null;
     _renderSystem = null;
     _window = null;
 }
示例#2
0
 /// <summary>
 /// Creates a new instance of <see cref="XnaGamerServices"/>
 /// </summary>
 /// <param name="engine">The engine</param>
 /// <param name="renderSystem">the rendersystem in use</param>
 /// <param name="window">The primary window</param>
 public XnaGamerServices( Root engine, XnaRenderSystem renderSystem, RenderWindow window )
 {
     _engine = engine;
     _renderSystem = renderSystem;
     _window = window;
 }