C# Class Nez.Textures.RenderTexture

wrapper for a RenderTarget2D that optionally takes care of resizing itself automatcially when the screen size changes
Inheritance: IDisposable
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
renderTarget Microsoft.Xna.Framework.Graphics.RenderTarget2D
resizeBehavior RenderTextureResizeBehavior

Méthodes publiques

Méthode Description
Dispose ( ) : void
RenderTexture ( ) : System

helper for creating a full screen RenderTarget2D

RenderTexture ( DepthFormat preferredDepthFormat ) : System

helper for creating a full screen RenderTarget2D with a specific DepthFormat

RenderTexture ( int width, int height ) : System

helper for creating a RenderTarget2D

RenderTexture ( int width, int height, DepthFormat preferredDepthFormat ) : System

helper for creating a RenderTarget2D

RenderTexture ( int width, int height, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat ) : System

helper for creating a RenderTarget2D

onSceneBackBufferSizeChanged ( int newWidth, int newHeight ) : void

called by Renderers automatically when appropriate. Lets the resizeBehavior kick in so auto resizing can occur

resize ( int width, int height ) : void

resizes the RenderTarget2D to the specified size

resizeToFitBackbuffer ( ) : void

resizes the RenderTarget2D to match the back buffer size

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

RenderTexture() public méthode

helper for creating a full screen RenderTarget2D
public RenderTexture ( ) : System
Résultat System

RenderTexture() public méthode

helper for creating a full screen RenderTarget2D with a specific DepthFormat
public RenderTexture ( DepthFormat preferredDepthFormat ) : System
preferredDepthFormat DepthFormat Preferred depth format.
Résultat System

RenderTexture() public méthode

helper for creating a RenderTarget2D
public RenderTexture ( int width, int height ) : System
width int Width.
height int Height.
Résultat System

RenderTexture() public méthode

helper for creating a RenderTarget2D
public RenderTexture ( int width, int height, DepthFormat preferredDepthFormat ) : System
width int Width.
height int Height.
preferredDepthFormat DepthFormat Preferred depth format.
Résultat System

RenderTexture() public méthode

helper for creating a RenderTarget2D
public RenderTexture ( int width, int height, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat ) : System
width int Width.
height int Height.
preferredFormat SurfaceFormat Preferred format.
preferredDepthFormat DepthFormat Preferred depth format.
Résultat System

onSceneBackBufferSizeChanged() public méthode

called by Renderers automatically when appropriate. Lets the resizeBehavior kick in so auto resizing can occur
public onSceneBackBufferSizeChanged ( int newWidth, int newHeight ) : void
newWidth int New width.
newHeight int New height.
Résultat void

resize() public méthode

resizes the RenderTarget2D to the specified size
public resize ( int width, int height ) : void
width int Width.
height int Height.
Résultat void

resizeToFitBackbuffer() public méthode

resizes the RenderTarget2D to match the back buffer size
public resizeToFitBackbuffer ( ) : void
Résultat void

Property Details

renderTarget public_oe property

the RenderTarget2D this RenderTexture manages
public RenderTarget2D,Microsoft.Xna.Framework.Graphics renderTarget
Résultat Microsoft.Xna.Framework.Graphics.RenderTarget2D

resizeBehavior public_oe property

resize behavior that should occur when onSceneBackBufferSizeChanged is called
public RenderTextureResizeBehavior resizeBehavior
Résultat RenderTextureResizeBehavior