Esempio n. 1
0
 public VertexRenderer(Game game, GraphicsDevice graphics, SpriteBatch spriteBatch, ColorManager colorManager, SpriteRenderer spriteRenderer, VertexManager vertexManager, CameraManager cameraManager, SheetManager sheetManager)
 {
     this.game           = game;
     this.graphics       = graphics;
     this.spriteBatch    = spriteBatch;
     this.spriteRenderer = spriteRenderer;
     this.vertexManager  = vertexManager;
     this.cameraManager  = cameraManager;
     this.sheetManager   = sheetManager;
     this.colorManager   = colorManager;
 }
Esempio n. 2
0
 public SpriteRenderer(VertexManager vertexManager, InputManager inputManager)
 {
     this.vertexManager = vertexManager;
     this.inputManager  = inputManager;
     spritePool         = new ObjectPool <SpriteRender>(pool => new SpriteRender(pool));
 }