Exemple #1
0
 /// <summary>
 /// Manager who handles all the drawing and effect applying.
 /// </summary>
 public DrawManager()
 {
     _defaultEffect = Game1.Instance.Content.Load<Effect>("effect/reset");
     _targetPool = new Pool<RenderTarget2D>(createRT);
     _targetPool.Preallocate(2);
     _fireAndForgetEffects = new List<BaseEffect>();
     //_lastFrame = _targetPool.GetFreeItem();
 }