Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    RendererBase Class

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

    Base implementation of IGraphicsRenderer

    System.Object → DisposeBase → ComponentBase → RendererCoreBase → RendererBase
    Derived from RendererBase: GraphicsCompositor DrawEffect

    [DataContract]
    public abstract class RendererBase : RendererCoreBase, IComponent, IReferencable, ICollectorHolder, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
    Name Description
    Constructors
    RendererBase()

    Initializes a new instance of the RendererBase class.

    RendererBase(String)

    Initializes a new instance of the ComponentBase class.

    Methods
    Draw(RenderDrawContext)

    Draws this renderer with the specified context.

    DrawCore(RenderDrawContext)

    Main drawing method for this renderer that must be implemented.

    | Improve this Doc View Source

    Constructors


    RendererBase()

    Initializes a new instance of the RendererBase class.

    protected RendererBase()

    RendererBase(String)

    Initializes a new instance of the ComponentBase class.

    protected RendererBase(string name)
    Parameters
    Type Name Description
    System.String name

    The name attached to this component

    | Improve this Doc View Source

    Methods


    Draw(RenderDrawContext)

    Draws this renderer with the specified context.

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

    The context.

    Exceptions
    Type Condition
    System.ArgumentNullException

    context

    System.InvalidOperationException

    Cannot use a different context between Load and Draw


    DrawCore(RenderDrawContext)

    Main drawing method for this renderer that must be implemented.

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

    The context.


    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