Class ForceAspectRatioSceneRenderer
- Namespace
- Stride.Rendering.Compositing
- Assembly
- Stride.Rendering.dll
public class ForceAspectRatioSceneRenderer : SceneRendererBase, IComponent, IReferencable, ICollectorHolder, ISceneRenderer, IRenderCollector, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable- Inheritance
- 
      objectForceAspectRatioSceneRenderer
- Implements
- Inherited Members
- Extension Methods
Fields
DefaultAspectRatio
public const float DefaultAspectRatio = 1.7777778Field Value
Properties
Child
public ISceneRenderer Child { get; set; }Property Value
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
Methods
CollectCore(RenderContext)
Main collect method.
protected override void CollectCore(RenderContext context)Parameters
- contextRenderContext
DrawCore(RenderContext, RenderDrawContext)
Main drawing method for this renderer that must be implemented.
protected override void DrawCore(RenderContext context, RenderDrawContext drawContext)Parameters
- contextRenderContext
- drawContextRenderDrawContext