C# Класс Nez.Textures.RenderTexture

wrapper for a RenderTarget2D that optionally takes care of resizing itself automatcially when the screen size changes
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
renderTarget Microsoft.Xna.Framework.Graphics.RenderTarget2D
resizeBehavior RenderTextureResizeBehavior

Открытые методы

Метод Описание
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

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

RenderTexture() публичный Метод

helper for creating a full screen RenderTarget2D
public RenderTexture ( ) : System
Результат System

RenderTexture() публичный Метод

helper for creating a full screen RenderTarget2D with a specific DepthFormat
public RenderTexture ( DepthFormat preferredDepthFormat ) : System
preferredDepthFormat DepthFormat Preferred depth format.
Результат System

RenderTexture() публичный Метод

helper for creating a RenderTarget2D
public RenderTexture ( int width, int height ) : System
width int Width.
height int Height.
Результат System

RenderTexture() публичный Метод

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.
Результат System

RenderTexture() публичный Метод

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.
Результат System

onSceneBackBufferSizeChanged() публичный Метод

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.
Результат void

resize() публичный Метод

resizes the RenderTarget2D to the specified size
public resize ( int width, int height ) : void
width int Width.
height int Height.
Результат void

resizeToFitBackbuffer() публичный Метод

resizes the RenderTarget2D to match the back buffer size
public resizeToFitBackbuffer ( ) : void
Результат void

Описание свойств

renderTarget публичное свойство

the RenderTarget2D this RenderTexture manages
public RenderTarget2D,Microsoft.Xna.Framework.Graphics renderTarget
Результат Microsoft.Xna.Framework.Graphics.RenderTarget2D

resizeBehavior публичное свойство

resize behavior that should occur when onSceneBackBufferSizeChanged is called
public RenderTextureResizeBehavior resizeBehavior
Результат RenderTextureResizeBehavior