Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    SceneRendererBase Class

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

    Describes the code part of a .

    System.Object → DisposeBase → ComponentBase → RendererCoreBase → SceneRendererBase
    Derived from SceneRendererBase: ClearRenderer DebugRenderer DelegateSceneRenderer ForceAspectRatioSceneRenderer ForwardRenderer RenderTextureSceneRenderer SceneCameraRenderer SceneRendererCollection SingleStageRenderer

    [DataContract(Inherited = true)]
    public abstract class SceneRendererBase : RendererCoreBase, IComponent, IReferencable, ICollectorHolder, ISceneRenderer, IRenderCollector, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
    Name Description
    Constructors
    SceneRendererBase()
    Properties
    Id
    Methods
    Collect(RenderContext)

    Executed before extract. Should create views, update RenderStages, etc...

    CollectCore(RenderContext)

    Main collect method.

    Draw(RenderDrawContext)

    Draws this renderer with the specified context. See remarks.

    DrawCore(RenderContext, RenderDrawContext)

    Main drawing method for this renderer that must be implemented.

    | Improve this Doc View Source

    Constructors


    SceneRendererBase()

    protected SceneRendererBase()
    | Improve this Doc View Source

    Properties


    Id

    [DataMember(-100)]
    [Display(null, null, Browsable = false)]
    public Guid Id { get; set; }
    Property Value
    Type Description
    System.Guid
    | Improve this Doc View Source

    Methods


    Collect(RenderContext)

    Executed before extract. Should create views, update RenderStages, etc...

    public void Collect(RenderContext context)
    Parameters
    Type Name Description
    RenderContext context

    CollectCore(RenderContext)

    Main collect method.

    protected virtual void CollectCore(RenderContext context)
    Parameters
    Type Name Description
    RenderContext context

    Draw(RenderDrawContext)

    Draws this renderer with the specified context. See remarks.

    public void Draw(RenderDrawContext context)
    Parameters
    Type Name Description
    RenderDrawContext context

    The context.

    Remarks

    The method Initialize(RenderContext) should be called automatically by the implementation if it was not done before the first draw.


    DrawCore(RenderContext, RenderDrawContext)

    Main drawing method for this renderer that must be implemented.

    protected abstract void DrawCore(RenderContext context, RenderDrawContext drawContext)
    Parameters
    Type Name Description
    RenderContext context
    RenderDrawContext drawContext

    Inherited Members

    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