Table of Contents

Class ForceAspectRatioSceneRenderer

Namespace
Stride.Rendering.Compositing
Assembly
Stride.Rendering.dll
public class ForceAspectRatioSceneRenderer : SceneRendererBase, IComponent, IReferencable, ICollectorHolder, ISceneRenderer, IRenderCollector, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
Inheritance
ForceAspectRatioSceneRenderer
Implements
Inherited Members
Extension Methods

Fields

DefaultAspectRatio

public const float DefaultAspectRatio = 1.7777778

Field Value

float

Properties

Child

public ISceneRenderer Child { get; set; }

Property Value

ISceneRenderer

FixedAspectRatio

Gets or sets the aspect ratio.

public float FixedAspectRatio { get; set; }

Property Value

float

The aspect ratio.

ForceAspectRatio

Gets or sets a value wether to edit the Viewport to force the aspect ratio and add letterboxes or pillarboxes where needed

public bool ForceAspectRatio { get; set; }

Property Value

bool

Methods

CollectCore(RenderContext)

Main collect method.

protected override void CollectCore(RenderContext context)

Parameters

context RenderContext

DrawCore(RenderContext, RenderDrawContext)

Main drawing method for this renderer that must be implemented.

protected override void DrawCore(RenderContext context, RenderDrawContext drawContext)

Parameters

context RenderContext
drawContext RenderDrawContext