C# 클래스 Myre.Graphics.ResourceContext

Provides mechanisms for renderer components to validate their input resources and define their output resources.
파일 보기 프로젝트 열기: TomGillen/Myre 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
DefineInput ( string name ) : void

Informs the render plan that this component wants the specified resource as input.

DefineOutput ( ResourceInfo resourceInfo, bool isLeftSet = true ) : void
DefineOutput ( string name, bool isLeftSet, RenderTarget2D>.Action finaliser, Myre.Graphics.RenderTargetInfo format ) : void

Informs the renderer of a resource this component is generating.

DefineOutput ( string name, bool isLeftSet = true, RenderTarget2D>.Action finaliser = null, int width, int height, SurfaceFormat surfaceFormat = SurfaceFormat.Color, DepthFormat depthFormat = DepthFormat.None, int multiSampleCount, bool mipMap = false, RenderTargetUsage usage = RenderTargetUsage.DiscardContents ) : void

Informs the renderer of a resource this component is generating.

ResourceContext ( ResourceInfo availableResources, ResourceInfo setRenderTargets ) : System

메소드 상세

DefineInput() 공개 메소드

Informs the render plan that this component wants the specified resource as input.
public DefineInput ( string name ) : void
name string The name of the resource.
리턴 void

DefineOutput() 공개 메소드

public DefineOutput ( ResourceInfo resourceInfo, bool isLeftSet = true ) : void
resourceInfo ResourceInfo
isLeftSet bool
리턴 void

DefineOutput() 공개 메소드

Informs the renderer of a resource this component is generating.
public DefineOutput ( string name, bool isLeftSet, RenderTarget2D>.Action finaliser, Myre.Graphics.RenderTargetInfo format ) : void
name string The name of the resource.
isLeftSet bool true if this component will leave the render target set on the device; else false.
finaliser RenderTarget2D>.Action A cleanup method, called when the resource is no longer needed. null for the default finaliser.
format Myre.Graphics.RenderTargetInfo The format of the render target.
리턴 void

DefineOutput() 공개 메소드

Informs the renderer of a resource this component is generating.
public DefineOutput ( string name, bool isLeftSet = true, RenderTarget2D>.Action finaliser = null, int width, int height, SurfaceFormat surfaceFormat = SurfaceFormat.Color, DepthFormat depthFormat = DepthFormat.None, int multiSampleCount, bool mipMap = false, RenderTargetUsage usage = RenderTargetUsage.DiscardContents ) : void
name string The name of the resource.
isLeftSet bool true if this component will leave the render target set on the device; else false.
finaliser RenderTarget2D>.Action A cleanup method, called when the resource is no longer needed. null for the default finaliser.
width int The width of the render target.
height int The height of the render target.
surfaceFormat SurfaceFormat The surface format of the render target.
depthFormat DepthFormat The depth format of the render target.
multiSampleCount int The multi sample count of the render target.
mipMap bool The number of mip map levels of the render target.
usage RenderTargetUsage The render target usage of the render target.
리턴 void

ResourceContext() 공개 메소드

public ResourceContext ( ResourceInfo availableResources, ResourceInfo setRenderTargets ) : System
availableResources ResourceInfo
setRenderTargets ResourceInfo
리턴 System