Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RenderTarget"/> struct.
 /// </summary>
 /// <param name="width">The width of the render target.</param>
 /// <param name="height">The height of the render target.</param>
 /// <param name="format">The format of the new surface.</param>
 /// <param name="flags">Texture sampling flags.</param>
 private RenderTarget(int width, int height, TextureFormat format, SamplerFlags flags)
 {
     Handle           = GraphicsContext.CreateFrameBuffer(width, height, format, flags);
     _internalTexture = new Texture2D(GraphicsContext.GetFrameBufferTexture(Handle, 0), width, height, false, false);
 }