Пример #1
0
 protected override void Initialize()
 {
     base.Initialize();
     _renderer = new Renderer(GraphicsDevice);
     Task.Factory.StartNew(() =>
     {
         var gl = new UpdateLoop(_renderer);
         gl.Loop();
     });
 }
Пример #2
0
	    public World(Renderer renderer)
		{
			_renderer = renderer;
			Initialise();
		}
Пример #3
0
 public UpdateLoop(Renderer renderer)
 {
     _renderer = renderer;
     _world = new World(renderer);
     _stopwatch = new Stopwatch();
 }
Пример #4
0
		protected override void Initialize()
		{
			base.Initialize();
			_renderer = new Renderer(GraphicsDevice);
			_world = new World(_renderer);
		}
Пример #5
0
 public UpdateLoop(Renderer renderer)
 {
     _world     = new World(renderer);
     _stopwatch = new Stopwatch();
 }