C# 클래스 Nez.Textures.RenderTexture

wrapper for a RenderTarget2D that optionally takes care of resizing itself automatcially when the screen size changes
상속: IDisposable
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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