using System;
using System.Linq;
using Chernobyl.Collections.Generic.Event;
using Chernobyl.Graphics.Drawing;
using Chernobyl.Graphics.Texture;
using Chernobyl.Mathematics;
using Microsoft.Xna.Framework.Graphics;
namespace Chernobyl.Graphics.Xna.Texture
{
///
/// Implements an XNA 2D render target.
///
public class XnaRenderTarget2D : Drawable, IRenderTarget2D
{
///
/// Constructor.
///
/// 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.
/// The format of the texture (aka, surface).
public XnaRenderTarget2D(IEventCollection