ForceAspectRatioSceneRenderer Class
Namespace: Stride.Rendering.CompositingAssembly: Stride.Rendering.dll
System.Object → DisposeBase → ComponentBase → RendererCoreBase → SceneRendererBase →
ForceAspectRatioSceneRenderer
Derived from ForceAspectRatioSceneRenderer:
public class ForceAspectRatioSceneRenderer : SceneRendererBase, IComponent, IReferencable, ICollectorHolder, ISceneRenderer, IRenderCollector, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
Name | Description | |
---|---|---|
Fields | ||
DefaultAspectRatio | ||
Properties | ||
Child | ||
FixedAspectRatio | Gets or sets 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 |
|
Methods | ||
CollectCore(RenderContext) | Main collect method. |
|
DrawCore(RenderContext, RenderDrawContext) | Main drawing method for this renderer that must be implemented. |
Fields
DefaultAspectRatio
public const float DefaultAspectRatio = 1.77777779F
Field Value
Type | Description |
---|---|
System.Single |
Properties
Child
public ISceneRenderer Child { get; set; }
Property Value
Type | Description |
---|---|
ISceneRenderer |
FixedAspectRatio
Gets or sets the aspect ratio.
public float FixedAspectRatio { get; set; }
Property Value
Type | Description |
---|---|
System.Single | 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
Type | Description |
---|---|
System.Boolean |
Methods
CollectCore(RenderContext)
Main collect method.
protected override void CollectCore(RenderContext context)
Parameters
Type | Name | Description |
---|---|---|
RenderContext | context |
Overrides
DrawCore(RenderContext, RenderDrawContext)
Main drawing method for this renderer that must be implemented.
protected override void DrawCore(RenderContext context, RenderDrawContext drawContext)
Parameters
Type | Name | Description |
---|---|---|
RenderContext | context | |
RenderDrawContext | drawContext |