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
Показать файл Открыть проект Примеры использования класса

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

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