C# Class Artemis.Engine.Graphics.ResolutionRelativeRenderLayer

Inheritance: AbstractOrderableRenderLayer
显示文件 Open project: ArtemisEngine/Artemis-Engine

Public Methods

Method Description
ResolutionRelativeRenderLayer ( string fullName ) : System
ResolutionRelativeRenderLayer ( string fullName, GlobalLayerScaleType layerScaleType, UniformLayerScaleType uniformScaleType ) : System

Protected Methods

Method Description
GetRenderableHandler ( ) : RenderableHandler

Get the RenderAction. The Layer RenderAction determines how it prepares and calls each RenderableObject's Render method it encounters. For RenderLayer, the render action returned depends on the LayerScaleType.

PostRender ( ) : void

Called after everything is rendered (also after RenderLayerTarget is called).

PreRender ( ) : void
ProcessDynamicallyScaledRenderable ( RenderableObject obj, bool isBaseRes, Resolution crntRes, Vector2 resScale ) : void

Process a RenderableObject when the GlobalLayerScaleType is set to Dynamic.

RecalculateTargetTransform ( ) : void

Recalculate the TargetToScreenTransform matrix (required when resolution changes).

RenderLayerTarget ( ) : void

Render this layer's target. This is called immediately after all the Renderables have been rendered, and immediately before PostRender.

Method Details

GetRenderableHandler() protected method

Get the RenderAction. The Layer RenderAction determines how it prepares and calls each RenderableObject's Render method it encounters. For RenderLayer, the render action returned depends on the LayerScaleType.
protected GetRenderableHandler ( ) : RenderableHandler
return RenderableHandler

PostRender() protected method

Called after everything is rendered (also after RenderLayerTarget is called).
protected PostRender ( ) : void
return void

PreRender() protected method

protected PreRender ( ) : void
return void

ProcessDynamicallyScaledRenderable() protected method

Process a RenderableObject when the GlobalLayerScaleType is set to Dynamic.
protected ProcessDynamicallyScaledRenderable ( RenderableObject obj, bool isBaseRes, Resolution crntRes, Vector2 resScale ) : void
obj RenderableObject
isBaseRes bool
crntRes Resolution
resScale Vector2
return void

RecalculateTargetTransform() protected method

Recalculate the TargetToScreenTransform matrix (required when resolution changes).
protected RecalculateTargetTransform ( ) : void
return void

RenderLayerTarget() protected method

Render this layer's target. This is called immediately after all the Renderables have been rendered, and immediately before PostRender.
protected RenderLayerTarget ( ) : void
return void

ResolutionRelativeRenderLayer() public method

public ResolutionRelativeRenderLayer ( string fullName ) : System
fullName string
return System

ResolutionRelativeRenderLayer() public method

public ResolutionRelativeRenderLayer ( string fullName, GlobalLayerScaleType layerScaleType, UniformLayerScaleType uniformScaleType ) : System
fullName string
layerScaleType GlobalLayerScaleType
uniformScaleType UniformLayerScaleType
return System