C# Class Nez.Textures.RenderTarget

Inheritance: IUpdatableManager
Show file Open project: prime31/Nez Class Usage Examples

Public Methods

Method Description
RenderTarget ( ) : Microsoft.Xna.Framework.Graphics
create ( ) : RenderTarget2D

helper for creating a full screen RenderTarget2D

create ( DepthFormat preferredDepthFormat ) : RenderTarget2D

helper for creating a full screen RenderTarget2D with a specific DepthFormat

create ( int width, int height ) : RenderTarget2D

helper for creating a RenderTarget2D

create ( int width, int height, DepthFormat preferredDepthFormat ) : RenderTarget2D

helper for creating a RenderTarget2D

create ( int width, int height, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat ) : RenderTarget2D

helper for creating a RenderTarget2D

getTemporary ( int width, int height ) : RenderTarget2D

gets a temporary RenderTarget2D from the pool. When done using it call releaseTemporary to put it back in the pool. Note that the contents of the RenderTarget2D could be anything at all so clear it if you need to before using it.

getTemporary ( int width, int height, DepthFormat depthFormat ) : RenderTarget2D

gets a temporary RenderTarget2D from the pool. When done using it call releaseTemporary to put it back in the pool. Note that the contents of the RenderTarget2D could be anything at all so clear it if you need to before using it.

releaseTemporary ( RenderTarget2D renderTarget ) : void

puts a temporary RenderTarget2D back in the pool. Do not attempt to put RenderTarget2Ds in the pool that were not acquired via getTemporary.

Private Methods

Method Description
IUpdatableManager ( ) : void

Method Details

RenderTarget() public method

public RenderTarget ( ) : Microsoft.Xna.Framework.Graphics
return Microsoft.Xna.Framework.Graphics

create() public static method

helper for creating a full screen RenderTarget2D
public static create ( ) : RenderTarget2D
return Microsoft.Xna.Framework.Graphics.RenderTarget2D

create() public static method

helper for creating a full screen RenderTarget2D with a specific DepthFormat
public static create ( DepthFormat preferredDepthFormat ) : RenderTarget2D
preferredDepthFormat DepthFormat Preferred depth format.
return Microsoft.Xna.Framework.Graphics.RenderTarget2D

create() public static method

helper for creating a RenderTarget2D
public static create ( int width, int height ) : RenderTarget2D
width int Width.
height int Height.
return Microsoft.Xna.Framework.Graphics.RenderTarget2D

create() public static method

helper for creating a RenderTarget2D
public static create ( int width, int height, DepthFormat preferredDepthFormat ) : RenderTarget2D
width int Width.
height int Height.
preferredDepthFormat DepthFormat Preferred depth format.
return Microsoft.Xna.Framework.Graphics.RenderTarget2D

create() public static method

helper for creating a RenderTarget2D
public static create ( int width, int height, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat ) : RenderTarget2D
width int Width.
height int Height.
preferredFormat SurfaceFormat Preferred format.
preferredDepthFormat DepthFormat Preferred depth format.
return Microsoft.Xna.Framework.Graphics.RenderTarget2D

getTemporary() public static method

gets a temporary RenderTarget2D from the pool. When done using it call releaseTemporary to put it back in the pool. Note that the contents of the RenderTarget2D could be anything at all so clear it if you need to before using it.
public static getTemporary ( int width, int height ) : RenderTarget2D
width int Width.
height int Height.
return Microsoft.Xna.Framework.Graphics.RenderTarget2D

getTemporary() public static method

gets a temporary RenderTarget2D from the pool. When done using it call releaseTemporary to put it back in the pool. Note that the contents of the RenderTarget2D could be anything at all so clear it if you need to before using it.
public static getTemporary ( int width, int height, DepthFormat depthFormat ) : RenderTarget2D
width int Width.
height int Height.
depthFormat DepthFormat Depth format.
return Microsoft.Xna.Framework.Graphics.RenderTarget2D

releaseTemporary() public static method

puts a temporary RenderTarget2D back in the pool. Do not attempt to put RenderTarget2Ds in the pool that were not acquired via getTemporary.
public static releaseTemporary ( RenderTarget2D renderTarget ) : void
renderTarget Microsoft.Xna.Framework.Graphics.RenderTarget2D Render target.
return void