/// <summary> /// Initializes a new instance of the <see cref="WindowsImageCompositor"/> class. /// </summary> /// <param name="game">The game that must be used to use me.</param> public WindowsImageCompositor(Game game) { #if DEBUG if (game == null) { throw new ArgumentNullException("game", "Game cannot be null, its used here."); } #endif this.resourcesTexture = new ResourcesTexture(game.GraphicsDevice, game.Content); this.resourcesSpriteFont = new ResourcesSpriteFont(game.Content); this.resourcesRenderTarget = new ResourcesRenderTarget2D(game.GraphicsDevice); this.spriteBatch = new SpriteBatch(game.GraphicsDevice); this.device = game.GraphicsDevice; }