C# Class Nez.Textures.RenderTarget

Inheritance: IUpdatableManager
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
IUpdatableManager ( ) : void

Method Details

RenderTarget() public méthode

public RenderTarget ( ) : Microsoft.Xna.Framework.Graphics
Résultat Microsoft.Xna.Framework.Graphics

create() public static méthode

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

create() public static méthode

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

create() public static méthode

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

create() public static méthode

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.
Résultat Microsoft.Xna.Framework.Graphics.RenderTarget2D

create() public static méthode

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.
Résultat Microsoft.Xna.Framework.Graphics.RenderTarget2D

getTemporary() public static méthode

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.
Résultat Microsoft.Xna.Framework.Graphics.RenderTarget2D

getTemporary() public static méthode

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.
Résultat Microsoft.Xna.Framework.Graphics.RenderTarget2D

releaseTemporary() public static méthode

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.
Résultat void