using System.Linq;
using Chernobyl.Collections.Generic.Event;
using Chernobyl.Graphics.Drawing;
using Chernobyl.Graphics.Texture;
using Microsoft.Xna.Framework.Graphics;
namespace Chernobyl.Graphics.Xna.Texture
{
///
/// Allows access to the XNA back buffer.
///
public class XnaBackBuffer : Drawable, IBackBuffer
{
///
/// Configures this render target.
///
/// The object that holds the services.
/// The width of the render target. This must be a
/// power of two.
/// The height of the render target.This must be a
/// power of two.
/// The number of mipmap levels to generate.
/// See http://en.wikipedia.org/wiki/Mipmap for more information
/// about mipmaps. Set this to 0 to generate all mipmaps down to 1x1 pixels.
/// The format of the texture (aka, surface).
public void Configure(IEventCollection