C# 클래스 Myre.Graphics.RendererComponent

An object which represents a stage of a render plan. Each renderer component encapsulates drawing onto a render target, while providing its' output a a resource for other renderer components to consume.
상속: IDisposable
파일 보기 프로젝트 열기: TomGillen/Myre 1 사용 예제들

공개 메소드들

메소드 설명
Draw ( Renderer renderer ) : void

Draws this component.

Initialise ( Renderer renderer, ResourceContext context ) : void

Initialised this renderer component.

Here, components may validate that required inputs are available, and define their output.

보호된 메소드들

메소드 설명
GetResource ( string name ) : RenderTarget2D

Gets a named resource.

Output ( string name, RenderTarget2D resource ) : void

Outputs a resource.

메소드 상세

Draw() 공개 추상적인 메소드

Draws this component.
public abstract Draw ( Renderer renderer ) : void
renderer Renderer The renderer
리턴 void

GetResource() 보호된 메소드

Gets a named resource.
protected GetResource ( string name ) : RenderTarget2D
name string The name of the resource.
리턴 Microsoft.Xna.Framework.Graphics.RenderTarget2D

Initialise() 공개 메소드

Initialised this renderer component.
Here, components may validate that required inputs are available, and define their output.
public Initialise ( Renderer renderer, ResourceContext context ) : void
renderer Renderer The renderer.
context ResourceContext The resource context containing environment information and providing means to define inputs and outputs.
리턴 void

Output() 보호된 메소드

Outputs a resource.
protected Output ( string name, RenderTarget2D resource ) : void
name string The name of the resource.
resource Microsoft.Xna.Framework.Graphics.RenderTarget2D The resource.
리턴 void