Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    SceneCameraRenderer Class

    Namespace: Stride.Rendering.Compositing
    Assembly: Stride.Engine.dll

    Defines and sets a RenderView and set it up using Camera or current context camera.

    System.Object → DisposeBase → ComponentBase → RendererCoreBase → SceneRendererBase → SceneCameraRenderer
    Derived from SceneCameraRenderer: SceneExternalCameraRenderer

    [Display("Camera Renderer", null)]
    public class SceneCameraRenderer : SceneRendererBase, IComponent, IReferencable, ICollectorHolder, ISceneRenderer, IRenderCollector, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
    Remarks

    Since it sets a view, it is usually not shareable for multiple rendering.

    Name Description
    Fields
    Logger
    Properties
    Camera

    Gets or sets the camera.

    Child
    RenderMask
    RenderView
    Methods
    CollectCore(RenderContext)
    CollectInner(RenderContext)
    DrawCore(RenderContext, RenderDrawContext)
    DrawInner(RenderDrawContext)
    ResolveCamera(RenderContext)

    Resolves camera to the one contained in slot Camera.

    UpdateCameraToRenderView(RenderContext, RenderView, CameraComponent)
    | Improve this Doc View Source

    Fields


    Logger

    public Logger Logger
    Field Value
    Type Description
    Logger
    | Improve this Doc View Source

    Properties


    Camera

    Gets or sets the camera.

    public SceneCameraSlot Camera { get; set; }
    Property Value
    Type Description
    SceneCameraSlot

    The camera.


    Child

    public ISceneRenderer Child { get; set; }
    Property Value
    Type Description
    ISceneRenderer

    RenderMask

    public RenderGroupMask RenderMask { get; set; }
    Property Value
    Type Description
    RenderGroupMask

    RenderView

    public RenderView RenderView { get; }
    Property Value
    Type Description
    RenderView
    | Improve this Doc View Source

    Methods


    CollectCore(RenderContext)

    protected override void CollectCore(RenderContext context)
    Parameters
    Type Name Description
    RenderContext context
    Overrides
    SceneRendererBase.CollectCore(RenderContext)

    CollectInner(RenderContext)

    protected virtual void CollectInner(RenderContext renderContext)
    Parameters
    Type Name Description
    RenderContext renderContext

    DrawCore(RenderContext, RenderDrawContext)

    protected override void DrawCore(RenderContext context, RenderDrawContext drawContext)
    Parameters
    Type Name Description
    RenderContext context
    RenderDrawContext drawContext
    Overrides
    SceneRendererBase.DrawCore(RenderContext, RenderDrawContext)

    DrawInner(RenderDrawContext)

    protected virtual void DrawInner(RenderDrawContext renderContext)
    Parameters
    Type Name Description
    RenderDrawContext renderContext

    ResolveCamera(RenderContext)

    Resolves camera to the one contained in slot Camera.

    protected virtual CameraComponent ResolveCamera(RenderContext renderContext)
    Parameters
    Type Name Description
    RenderContext renderContext
    Returns
    Type Description
    CameraComponent

    UpdateCameraToRenderView(RenderContext, RenderView, CameraComponent)

    public static void UpdateCameraToRenderView(RenderContext context, RenderView renderView, CameraComponent camera)
    Parameters
    Type Name Description
    RenderContext context
    RenderView renderView
    CameraComponent camera

    Inherited Members

    SceneRendererBase.Id
    SceneRendererBase.Collect(RenderContext)
    SceneRendererBase.Draw(RenderDrawContext)
    RendererCoreBase.Enabled
    RendererCoreBase.Profiling
    RendererCoreBase.ProfilingKey
    RendererCoreBase.Context
    RendererCoreBase.Services
    RendererCoreBase.Content
    RendererCoreBase.GraphicsDevice
    RendererCoreBase.EffectSystem
    RendererCoreBase.Initialized
    RendererCoreBase.Initialize(RenderContext)
    RendererCoreBase.InitializeCore()
    RendererCoreBase.Unload()
    RendererCoreBase.PreDrawCore(RenderDrawContext)
    RendererCoreBase.PostDrawCore(RenderDrawContext)
    RendererCoreBase.NewScopedBuffer(BufferDescription, PixelFormat)
    RendererCoreBase.NewScopedTypedBuffer(Int32, PixelFormat, Boolean, GraphicsResourceUsage)
    RendererCoreBase.PushScopedResource<T>(T)
    RendererCoreBase.CheckIsInDrawCore()
    RendererCoreBase.Destroy()
    RendererCoreBase.ToLoadAndUnload<T>(T)
    RendererCoreBase.PreDrawCoreInternal(RenderDrawContext)
    RendererCoreBase.EnsureContext(RenderContext)
    RendererCoreBase.PostDrawCoreInternal(RenderDrawContext)
    ComponentBase.Tags
    ComponentBase.Name
    ComponentBase.ICollectorHolder.Collector
    ComponentBase.OnNameChanged()
    ComponentBase.ToString()
    DisposeBase.Dispose()
    DisposeBase.IsDisposed
    DisposeBase.IReferencable.ReferenceCount
    DisposeBase.IReferencable.AddReference()
    DisposeBase.IReferencable.Release()
    DisposeBase.OnAddReference()
    DisposeBase.OnReleaseReference()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation